summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/acosh/dacoshs.c
diff options
context:
space:
mode:
authorcornet2009-04-22 05:54:43 +0000
committercornet2009-04-22 05:54:43 +0000
commit879e2ac0a540fa1b199e20d47830aa5eea484a4c (patch)
tree69ef4242aa8ce27332dec2a27f4e7f10a6f9e8fb /src/elementaryFunctions/acosh/dacoshs.c
parent1811fe5588d0cfbb788ab8f477800af3f45dd710 (diff)
downloadscilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.tar.gz
scilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.tar.bz2
scilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.zip
build with visual studio (dynamic libraries)
Diffstat (limited to 'src/elementaryFunctions/acosh/dacoshs.c')
-rw-r--r--src/elementaryFunctions/acosh/dacoshs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/elementaryFunctions/acosh/dacoshs.c b/src/elementaryFunctions/acosh/dacoshs.c
index 978a0b59..a5c13c8b 100644
--- a/src/elementaryFunctions/acosh/dacoshs.c
+++ b/src/elementaryFunctions/acosh/dacoshs.c
@@ -13,6 +13,13 @@
#include <math.h>
#include "acosh.h"
+#ifdef _MSC_VER
+double acosh(double x)
+{
+ return log(x + sqrt(x * x - 1));
+}
+#endif
+
double dacoshs(double x) {
return (acosh(x));
}