@@ -5,7 +5,6 @@ module Data.Number
55 , isNaN
66 , infinity
77 , isFinite
8- , Radians
98 , abs
109 , acos
1110 , asin
@@ -85,33 +84,30 @@ fromString str = runFn4 fromStringImpl str isFinite Just Nothing
8584
8685foreign import fromStringImpl :: Fn4 String (Number -> Boolean ) (forall a . a -> Maybe a ) (forall a . Maybe a ) (Maybe Number )
8786
88- -- | An alias to make types in this module more explicit.
89- type Radians = Number
90-
9187-- | Returns the absolute value of the argument.
9288foreign import abs :: Number -> Number
9389
94- -- | Returns the inverse cosine of the argument.
95- foreign import acos :: Number -> Radians
90+ -- | Returns the inverse cosine in radians of the argument.
91+ foreign import acos :: Number -> Number
9692
97- -- | Returns the inverse sine of the argument.
98- foreign import asin :: Number -> Radians
93+ -- | Returns the inverse sine in radians of the argument.
94+ foreign import asin :: Number -> Number
9995
100- -- | Returns the inverse tangent of the argument.
101- foreign import atan :: Number -> Radians
96+ -- | Returns the inverse tangent in radians of the argument.
97+ foreign import atan :: Number -> Number
10298
10399-- | Four-quadrant tangent inverse. Given the arguments `y` and `x`, returns
104100-- | the inverse tangent of `y / x`, where the signs of both arguments are used
105101-- | to determine the sign of the result.
106102-- | If the first argument is negative, the result will be negative.
107103-- | The result is the angle between the positive x axis and a point `(x, y)`.
108- foreign import atan2 :: Number -> Number -> Radians
104+ foreign import atan2 :: Number -> Number -> Number
109105
110106-- | Returns the smallest integer not smaller than the argument.
111107foreign import ceil :: Number -> Number
112108
113- -- | Returns the cosine of the argument.
114- foreign import cos :: Radians -> Number
109+ -- | Returns the cosine of the argument, where the argument is in radians .
110+ foreign import cos :: Number -> Number
115111
116112-- | Returns `e` exponentiated to the power of the argument.
117113foreign import exp :: Number -> Number
@@ -146,14 +142,14 @@ foreign import round :: Number -> Number
146142-- | NaN it will return NaN.
147143foreign import sign :: Number -> Number
148144
149- -- | Returns the sine of the argument.
150- foreign import sin :: Radians -> Number
145+ -- | Returns the sine of the argument, where the argument is in radians .
146+ foreign import sin :: Number -> Number
151147
152148-- | Returns the square root of the argument.
153149foreign import sqrt :: Number -> Number
154150
155- -- | Returns the tangent of the argument.
156- foreign import tan :: Radians -> Number
151+ -- | Returns the tangent of the argument, where the argument is in radians .
152+ foreign import tan :: Number -> Number
157153
158154-- | Truncates the decimal portion of a number. Equivalent to `floor` if the
159155-- | number is positive, and `ceil` if the number is negative.
0 commit comments