1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-03-02 03:49:24 +00:00

#217 Compute acos with less cancellation near x=1

This commit is contained in:
Alden
2023-02-12 23:02:53 -05:00
committed by Michael Mclaughlin
parent 7f01abd83d
commit 08e5a381d2
8 changed files with 141 additions and 7 deletions

View File

@@ -68,6 +68,10 @@ T('acos', function () {
t('0.41923186648524998285699814886092351368793359300547574', 42, 3, '1.13819724675000902666504291062053681280681');
t('-0.19508761025300975791021816036', 27, 1, '1.76714310275532020878366926');
t('0.0623252416', 19, 0, '1.508430664767542249');
t('0.9999999297625', 14, 4, '0.00037479994883195');
t('0.99999999467518', 14, 4, '0.0001031970930281');
t('0.9999999999999999995', 25, 4, '0.000000001000000000000000000041667');
t('0.99999999999999999999995', 30, 4, '0.0000000000100000000000000000000000416667');
/*
t('0.95', 6, 5, '0.31756');

View File

@@ -119,4 +119,5 @@ T('sin', function () {
t('22011131111011111.111111611113111111111151111111', 143, 2, '0.82582504036277799386306063085803210583251158969990606609364360685569588545519071481543672724620118406694191888115120286393881609546697317692404');
t('996270725099515169352424536636186062915113219400094989.8763797268889422850038402633796294758036260533902551191769915343780424028900449342752548782035', 46, 2, '0.6613706114081017074779805460666900787572253475');
t('0.780360750628373', 37, 5, '0.7035358359376557390803090830882458906');
t('5900', 14, 4, '0.088879123681079');
});