converted double to float64
SVN=126446
diff --git a/src/lib/math/sinh.go b/src/lib/math/sinh.go
index a475171..fd3b50a 100644
--- a/src/lib/math/sinh.go
+++ b/src/lib/math/sinh.go
@@ -8,17 +8,17 @@
export sinh, cosh
/*
- sinh(arg) returns the hyperbolic sine of its floating-
- point argument.
-
- The exponential func is called for arguments
- greater in magnitude than 0.5.
-
- A series is used for arguments smaller in magnitude than 0.5.
- The coefficients are #2029 from Hart & Cheney. (20.36D)
-
- cosh(arg) is computed from the exponential func for
- all arguments.
+ * sinh(arg) returns the hyperbolic sine of its floating-
+ * point argument.
+ *
+ * The exponential func is called for arguments
+ * greater in magnitude than 0.5.
+ *
+ * A series is used for arguments smaller in magnitude than 0.5.
+ * The coefficients are #2029 from Hart & Cheney. (20.36D)
+ *
+ * cosh(arg) is computed from the exponential func for
+ * all arguments.
*/
const
@@ -33,9 +33,9 @@
)
func
-sinh(arg double) double
+sinh(arg float64) float64
{
- var temp, argsq double;
+ var temp, argsq float64;
var sign bool;
sign = false;
@@ -43,6 +43,7 @@
arg = -arg;
sign = true;
}
+
switch true {
case arg > 21:
temp = exp(arg)/2;
@@ -63,7 +64,7 @@
}
func
-cosh(arg double) double
+cosh(arg float64) float64
{
if arg < 0 {
arg = - arg;