fix remapping behavior. Remapping is only necessary if we are rendering on the workbe...
[AROS-Contrib.git] / rexx / lstring / lmath.c
blob2d3f2233e19b8804f7507789ea9b3e4fc45c213f
1 /*
2 * $Header$
3 * $Log$
4 * Revision 1.1 2001/04/04 05:43:37 wang
5 * First commit: compiles on Linux, Amiga, Windows, Windows CE, generic gcc
7 * Revision 1.1 1998/07/02 17:18:00 bnv
8 * Initial Version
12 #include <math.h>
13 #include <lstring.h>
15 /* ------------------ pow10 ------------------- */
16 static double
17 pow10d( double num )
19 return pow(10.0,num);
20 } /* pow10d */
22 #define MATH(func) \
23 void L##func(const PLstr to, const PLstr num) \
24 {Lrcpy(to, func(Lrdreal(num)));}
26 MATH( acos )
27 MATH( asin )
28 MATH( atan )
29 MATH( cos )
30 MATH( cosh )
31 MATH( exp )
32 MATH( log )
33 MATH( log10)
34 MATH( pow10d)
35 MATH( sin )
36 MATH( sinh )
37 MATH( sqrt )
38 MATH( tan )
39 MATH( tanh )
40 #undef MATH