/[escript]/branches/RW_WIN32/win32/win32_utils/ext_math.c
ViewVC logotype

Contents of /branches/RW_WIN32/win32/win32_utils/ext_math.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186 - (show annotations)
Sun Nov 20 10:51:16 2005 UTC (16 years ago) by robwdcock
File MIME type: text/plain
File size: 237 byte(s)
PARTIAL WIN32 PORT
+ Paso, ext_math and mmio libraries build using scons in top level directory
+ Scons build system currently hard coded against RW's third-party library paths.
+ Still lots TODO to complete port and build system 
1 #include <math.h>
2
3 #include "ext_math.h"
4
5 double acosh(double x)
6 {
7 return log(x+sqrt(x*x-1.0));
8 }
9
10 double asinh(double x)
11 {
12 return log(x+sqrt(x*x+1.0));
13 }
14
15 double atanh(double x)
16 {
17 return log((1.0+x)/(1.0-x))/2.0;
18 }

  ViewVC Help
Powered by ViewVC 1.1.26