@@ -125,22 +125,22 @@ foreign import abs :: Number -> Number
125
125
126
126
-- | Returns the inverse cosine in radians of the argument.
127
127
-- | ```purs
128
- -- | > acos 0.0 - pi / 2.0
129
- -- | 0.0
128
+ -- | > acos 0.0 == pi / 2.0
129
+ -- | true
130
130
-- | ```
131
131
foreign import acos :: Number -> Number
132
132
133
133
-- | Returns the inverse sine in radians of the argument.
134
134
-- | ```purs
135
- -- | > asin 0 .0
136
- -- | 0.0
135
+ -- | > asin 1.0 == pi / 2 .0
136
+ -- | true
137
137
-- | ```
138
138
foreign import asin :: Number -> Number
139
139
140
140
-- | Returns the inverse tangent in radians of the argument.
141
141
-- | ```purs
142
- -- | > atan 0 .0
143
- -- | 0.0
142
+ -- | > atan 1.0 == pi / 4 .0
143
+ -- | true
144
144
-- | ```
145
145
foreign import atan :: Number -> Number
146
146
@@ -152,6 +152,8 @@ foreign import atan :: Number -> Number
152
152
-- | ```purs
153
153
-- | > atan2 0.0 1.0
154
154
-- | 0.0
155
+ -- | > atan2 1.0 0.0 == pi / 2.0
156
+ -- | true
155
157
-- | ```
156
158
foreign import atan2 :: Number -> Number -> Number
157
159
@@ -164,8 +166,8 @@ foreign import ceil :: Number -> Number
164
166
165
167
-- | Returns the cosine of the argument, where the argument is in radians.
166
168
-- | ```purs
167
- -- | > cos 0 .0
168
- -- | 1.0
169
+ -- | > cos (pi / 4.0) == sqrt2 / 2 .0
170
+ -- | true
169
171
-- | ```
170
172
foreign import cos :: Number -> Number
171
173
@@ -235,8 +237,8 @@ foreign import sign :: Number -> Number
235
237
236
238
-- | Returns the sine of the argument, where the argument is in radians.
237
239
-- | ```purs
238
- -- | > sin 0.0
239
- -- | 0 .0
240
+ -- | > sin (pi / 2.0)
241
+ -- | 1 .0
240
242
-- | ```
241
243
foreign import sin :: Number -> Number
242
244
@@ -249,8 +251,8 @@ foreign import sqrt :: Number -> Number
249
251
250
252
-- | Returns the tangent of the argument, where the argument is in radians.
251
253
-- | ```
252
- -- | > tan 0.0
253
- -- | 0.0
254
+ -- | > tan (pi / 4.0)
255
+ -- | 0.9999999999999999
254
256
-- | ```
255
257
foreign import tan :: Number -> Number
256
258
0 commit comments