source: CIVL/text/include/math.cvl@ dfb0fef

1.23 2.0 main test-branch
Last change on this file since dfb0fef was 9e6785d, checked in by Manchun Zheng <zmanchun@…>, 12 years ago

added more functions in math.h.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1403 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 643 bytes
Line 
1/* CIVL model of math.h */
2
3#ifdef __MATH_CIVL__
4#else
5#define __MATH_CIVL__
6
7$abstract double sin(double x);
8
9$abstract float sinf(float x);
10
11$abstract double cos(double x);
12
13$abstract long double sinl(long double x);
14
15$abstract double sqrt(double x);
16
17$abstract double ceil(double x);
18
19$abstract double exp(double x);
20
21$abstract double tan(double x);
22
23$abstract float tanf(float x);
24
25$abstract long double tanl(long double x);
26
27$abstract double pow(double x, double y);
28
29$abstract double fmod(double x, double y);
30
31double fabs(double x){
32 if(x>=0)
33 return x;
34 else return (-x);
35}
36
37$abstract double log(double x);
38
39#endif
Note: See TracBrowser for help on using the repository browser.