@@ -221,3 +221,87 @@ describe("tan", () => {
221221 checkTan ( nsf . bounded ( Math . PI / 6 ) ) ;
222222 } ) ;
223223} ) ;
224+
225+ describe ( "acos" , ( ) => {
226+ assert . deepStrictEqual (
227+ nsf . acos ( nsf . single ( 0 ) ) ,
228+ nsf . single ( prev ( Math . acos ( 0 ) ) , next ( Math . acos ( 0 ) ) )
229+ ) ;
230+
231+ assert . deepStrictEqual (
232+ nsf . acos ( nsf . single ( - 0.1 ) ) ,
233+ nsf . single ( prev ( Math . acos ( - 0.1 ) ) , next ( Math . acos ( - 0.1 ) ) )
234+ ) ;
235+
236+ assert . deepStrictEqual (
237+ nsf . acos ( nsf . single ( 0.2 ) ) ,
238+ nsf . single ( prev ( Math . acos ( 0.2 ) ) , next ( Math . acos ( 0.2 ) ) )
239+ ) ;
240+
241+ assert . deepStrictEqual (
242+ nsf . acos ( nsf . single ( 0.2 , 0.5 ) ) ,
243+ nsf . single ( prev ( Math . acos ( 0.5 ) ) , next ( Math . acos ( 0.2 ) ) )
244+ ) ;
245+
246+ assert . deepStrictEqual (
247+ nsf . acos ( nsf . single ( - 0.2 , 0.5 ) ) ,
248+ nsf . single ( prev ( Math . acos ( 0.5 ) ) , next ( Math . acos ( - 0.2 ) ) )
249+ ) ;
250+
251+ assert . deepStrictEqual ( nsf . acos ( nsf . single ( - 1.1 , 1.1 ) ) , nsf . single ( 0 , next ( Math . acos ( - 1 ) ) ) ) ;
252+
253+ assert . deepStrictEqual (
254+ nsf . acos ( nsf . single ( - 1.1 , - 0.5 ) ) ,
255+ nsf . single ( prev ( Math . acos ( - 0.5 ) ) , next ( Math . acos ( - 1 ) ) )
256+ ) ;
257+
258+ assert . deepStrictEqual ( nsf . acos ( nsf . single ( 0.5 , 1.5 ) ) , nsf . single ( 0 , next ( Math . acos ( 0.5 ) ) ) ) ;
259+
260+ assert . deepStrictEqual ( nsf . acos ( nsf . single ( - 1.2 , - 1.1 ) ) , nsf . EMPTY ) ;
261+ assert . deepStrictEqual ( nsf . acos ( nsf . single ( 1.1 , 1.2 ) ) , nsf . EMPTY ) ;
262+ } ) ;
263+
264+ describe ( "asin" , ( ) => {
265+ assert . deepStrictEqual (
266+ nsf . asin ( nsf . single ( 0 ) ) ,
267+ nsf . single ( prev ( Math . asin ( 0 ) ) , next ( Math . asin ( 0 ) ) )
268+ ) ;
269+
270+ assert . deepStrictEqual (
271+ nsf . asin ( nsf . single ( - 0.1 ) ) ,
272+ nsf . single ( prev ( Math . asin ( - 0.1 ) ) , next ( Math . asin ( - 0.1 ) ) )
273+ ) ;
274+
275+ assert . deepStrictEqual (
276+ nsf . asin ( nsf . single ( 0.2 ) ) ,
277+ nsf . single ( prev ( Math . asin ( 0.2 ) ) , next ( Math . asin ( 0.2 ) ) )
278+ ) ;
279+
280+ assert . deepStrictEqual (
281+ nsf . asin ( nsf . single ( 0.2 , 0.5 ) ) ,
282+ nsf . single ( prev ( Math . asin ( 0.2 ) ) , next ( Math . asin ( 0.5 ) ) )
283+ ) ;
284+
285+ assert . deepStrictEqual (
286+ nsf . asin ( nsf . single ( - 0.2 , 0.5 ) ) ,
287+ nsf . single ( prev ( Math . asin ( - 0.2 ) ) , next ( Math . asin ( 0.5 ) ) )
288+ ) ;
289+
290+ assert . deepStrictEqual (
291+ nsf . asin ( nsf . single ( - 1.1 , 1.1 ) ) ,
292+ nsf . single ( prev ( Math . asin ( - 1 ) ) , next ( Math . asin ( 1 ) ) )
293+ ) ;
294+
295+ assert . deepStrictEqual (
296+ nsf . asin ( nsf . single ( - 1.1 , - 0.5 ) ) ,
297+ nsf . single ( prev ( Math . asin ( - 1 ) ) , next ( Math . asin ( - 0.5 ) ) )
298+ ) ;
299+
300+ assert . deepStrictEqual (
301+ nsf . asin ( nsf . single ( 0.5 , 1.5 ) ) ,
302+ nsf . single ( prev ( Math . asin ( 0.5 ) ) , next ( Math . asin ( 1 ) ) )
303+ ) ;
304+
305+ assert . deepStrictEqual ( nsf . asin ( nsf . single ( - 1.2 , - 1.1 ) ) , nsf . EMPTY ) ;
306+ assert . deepStrictEqual ( nsf . asin ( nsf . single ( 1.1 , 1.2 ) ) , nsf . EMPTY ) ;
307+ } ) ;
0 commit comments