Math.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2012 SCHUNK GmbH & Co. KG
00003  * Copyright (c) 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *   http://www.apache.org/licenses/LICENSE-2.0
00010 
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef UTIL_MATH_H
00019 #define UTIL_MATH_H
00020 
00021 
00022 // ---- local includes ------------------------------------------------------ ;
00023 
00024 // ---- global includes ----------------------------------------------------- ;
00025 
00026 #include <math.h>
00027 
00028 #if defined(__QNX__) || defined(_WIN32)
00029 
00030 #ifdef  __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 #define M_E                     2.7182818284590452354
00035 #define M_LOG2E         1.4426950408889634074
00036 #define M_LOG10E        0.43429448190325182765
00037 #define M_LN2       0.69314718055994530942
00038 #define M_LN10      2.30258509299404568402
00039 #define M_PI        3.14159265358979323846
00040 #define M_PI_2      1.57079632679489661923
00041 #define M_PI_4      0.78539816339744830962
00042 #define M_1_PI      0.31830988618379067154
00043 #define M_2_PI      0.63661977236758134308
00044 #define M_2_SQRTPI  1.12837916709551257390
00045 #define M_SQRT2     1.41421356237309504880
00046 #define M_SQRT1_2   0.70710678118654752440
00047 
00048 
00049 #ifdef  __cplusplus
00050 }
00051 #endif
00052 #endif
00053 
00054 
00055 #define M_1_2PI         (0.5*M_1_PI)
00056 
00057 #endif // UTIL_MATH_H
00058 
00059 
00060 
00061 
00062 
00063 
00064 
00065 
00066 


schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Sat Jun 8 2019 20:25:13