1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-25 21:35:50 +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');