Repository navigation
Keep every part of a complex value past 10^50 (#2675) - #2676
Merged
Merged
Conversation
The complex paths of the exponential, the trigonometric functions and the exponential and trigonometric integrals measured a sine's or a cosine's residual against the size of its argument, which past 10^50 took every one of them for a residual. They measure it against |t| up to 1, sqrt|t| past it for a decimal, and 1 for an exact rational, which is now reduced exactly on the complex paths and in Ei, Si and Ci too. arcsin and arccos of a non-real argument are written as Hull, Fairgrieve and Tang write them: the real part from alpha - |x| and v from alpha - 1, each a sum of like signs, so that nothing cancels at any size and neither part is a residual. An infinite argument goes off along its direction. A root of an exact non-real number is not searched for among the reals. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2676 +/- ##
=======================================
Coverage 86.63% 86.64%
=======================================
Files 346 346
Lines 76133 76166 +33
Branches 22314 22329 +15
=======================================
+ Hits 65961 65993 +32
+ Misses 5503 5502 -1
- Partials 4669 4671 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2675
What was wrong
On master (4674e66), past an argument of about 10^50 the complex paths dropped a part of the answer or kept noise as one:
arcsin(10^100)was1.5707…where it is1.5707… - 230.95i,arcsin(10^200)andarcsin(10^500)were 0,arccos(10^500)was1.5707…where it is1151.99i,tanh(10^60 i)was-2.2211 - 1.4903iwhere it is-1.4903i, andCi(10^50)was 0 where it is-7.8967E-51.The cause
Two things, both confirmed by measurement.
Complex.Create(Entity.Continuous.Complex.Definition.cs:141) drops an imaginary part belowDowncastingTolerance × imaginaryScale, which is 1e-50 × the scale at 100 digits. The complex paths passed|t|, the size of the sine's argument, as that scale:Exp(Operators.cs:576on master,scale = expReal × |imaginary|),SinandCos(reScale = |re|),Tan(|2 re| / |D|),Cotan, andEiByTheAsymptoticSeries(ExponentialIntegrals.cs:194,trigonometric = |im| (|re| + |im|)). A sine is at most 1, so once|t|passes 10^50 every sine and cosine is under the threshold. Soe^(10^60 i)kept onlycos(10^60), andtanh(10^60 i) = (e^(2·10^60 i) - 1)/(e^(2·10^60 i) + 1)came out with a real part.Ci(10^50)issin x/x, about 1e-50, measured against about 1, so it was dropped too.beta = (rho - sigma)/2(ArcSinCosInner,Operators.cs:1216on master). That is a difference of two moduli the size of the argument, so past 10^110 (the working digits) it cancels completely:beta = 0, andarcsin(10^200) = 0. Both parts were also made againstscale = alpha × 10^-10(ArcSinOrCos,Operators.cs:1294), so the imaginary part 230.95 was dropped againstalpha = 10^100.sqrt(10^50 + i)hit a third path.FindGoodRootscaled the base to1 + 10^-50 i.GetAllRootsthen rounded the root's phase, 5e-51, onto 0, so the search returned the real root10^25.The fix
PeriodicResidualScale(t, exact)is the size a sine or cosine residual is measured against:|t|up to 1, unchanged;sqrt|t|past 1 for a decimal, i.e. half the digits its reduction by 2π leaves, matching the library's half-digit convention;Exp,Sin,Cos,Tan,Cotan,ByThePolarForm,Complex.CreatePolarand the asymptotic series ofEiuse it.An exact rational argument is now reduced exactly on the complex paths too (
SinAndCosOfAReal, from Keep evaluation's digits from 1e-100000 to 1e100000 #2674). The same goes inEi,Si,Ci,ShiandChi, which carry an "exact" flag down to the asymptotic series. SoCi(10^500)andSi(10^500), which wereNaN, have values.arcsinandarccosof a non-real number are rewritten after Hull, Fairgrieve and Tang. The real part isarctan(|x| / sqrt((alpha - |x|)(alpha + |x|))), andv = ln(1 + (alpha - 1) + sqrt((alpha - 1)(alpha + 1))).alpha - |x|andalpha - 1are written as sums of like signs. Nothing cancels except the logarithm near 1, which keeps its existing working digits. Neither part is a residual. The branch conventions are master's: a real past 1 is taken from below the axis. With nothing growing with the digits,WithinTheSpecialFunctionsReachis no longer needed, soarcsin(10^1500)is1.5707… - 3454.57iwhere it was1.5707… - oo i. An infinite argument goes off along its direction:arcsin(-oo)is-pi/2 - oo i, notpi/2 - oo i, andarcsin(+oo i)is+oo i, notpi/2 + oo i.FindGoodRootdoes not look for a real root of a base whose imaginary part is an exact nonzero rational.Sweep
Each row is
.Evaledon master and on this branch, against mpmath atdps = max(300, k + 200). "ok" means within a relative 1e-10 of mpmath and each part within a relative 1e-10 of its own true value; a part that is 0 to within 1e-80 of the modulus counts as 0. On a branch cut both sides are listed, and either one passes. "past range" means the true value is beyond the 1e100000 exponent range, which #2674 left at its infinity.Totals out of 176 rows:
The NaN rows left on the branch are all of one kind.
10^k * ievaluates its imaginary part to a decimal oncekpasses 50 (Complex multiplication does not keep it an integer), and #2674 makes the sine of a decimal past10^(precision - 16)NaN. That coverssinh,cosh,tanhandcoth(10^k i)fork ≥ 100andEi(10^100 i); each is a decimal's sine with no digits, so NaN rather than a number.The 7 wrong rows and the 1 dropped part are not changed by this PR.
arcoth(10^k)andarcsch(10^k)lose their whole value toln(1 + 10^-k)in their defining formulas, andarsech(10^50 i)drops its real part1e-50againstln|w|near 1. That is cancellation on the real line in formulas the parser expands to, not this class.Full table
.Evaledarcsin(10^50)1.5708 - 115.822iok1.5708 - 115.822iok1.5708 + 115.822i / 1.5708 - 115.822i (cut)arcsin(10^50 * i)115.822iok115.822iok115.822iarcsin(10^100)1.5708WRONG1.5708 - 230.952iok1.5708 + 230.952i / 1.5708 - 230.952i (cut)arcsin(10^100 * i)0WRONG230.952iok230.952iarcsin(10^500)0WRONG1.5708 - 1151.99iok1.5708 + 1151.99i / 1.5708 - 1151.99i (cut)arcsin(10^500 * i)0WRONG1151.99iok1151.99iarcsin(10^999)0WRONG1.5708 - 2300.98iok1.5708 + 2300.98i / 1.5708 - 2300.98i (cut)arcsin(10^999 * i)0WRONG2300.98iok2300.98iarccos(10^50)115.822iok115.822iok1.0e-260 - 115.822i / 1.0e-260 + 115.822i (cut)arccos(10^50 * i)1.5708 - 115.822iok1.5708 - 115.822iok1.5708 - 115.822iarccos(10^100)0WRONG230.952iok1.0e-260 - 230.952i / 1.0e-260 + 230.952i (cut)arccos(10^100 * i)1.5708WRONG1.5708 - 230.952iok1.5708 - 230.952iarccos(10^500)1.5708WRONG1151.99iok1.0e-660 - 1151.99i / 1.0e-660 + 1151.99i (cut)arccos(10^500 * i)1.5708WRONG1.5708 - 1151.99iok1.5708 - 1151.99iarccos(10^999)1.5708WRONG2300.98iok1.0e-1159 - 2300.98i / 1.0e-1159 + 2300.98i (cut)arccos(10^999 * i)1.5708WRONG1.5708 - 2300.98iok1.5708 - 2300.98iarctan(10^50)1.5708ok1.5708ok1.5708arctan(10^50 * i)1.5708 + 1.0e-50iok1.5708 + 1.0e-50iok-1.5708 + 1.0e-50i / 1.5708 + 1.0e-50i (cut)arctan(10^100)1.5708ok1.5708ok1.5708arctan(10^100 * i)1.5708ok1.5708ok-1.5708 + 1.0e-100i / 1.5708 + 1.0e-100i (cut)arctan(10^500)1.5708ok1.5708ok1.5708arctan(10^500 * i)1.5708ok1.5708ok-1.5708 + 1.0e-500i / 1.5708 + 1.0e-500i (cut)arctan(10^999)1.5708ok1.5708ok1.5708arctan(10^999 * i)1.5708ok1.5708ok-1.5708 + 1.0e-999i / 1.5708 + 1.0e-999i (cut)arccot(10^50)1.0e-50ok1.0e-50ok1.0e-50arccot(10^50 * i)-1.0e-50iok-1.0e-50iok-1.0e-50iarccot(10^100)1.0e-100ok1.0e-100ok1.0e-100arccot(10^100 * i)-1.0e-100iok-1.0e-100iok-1.0e-100iarccot(10^500)1.0e-500ok1.0e-500ok1.0e-500arccot(10^500 * i)-1.0e-500iok-1.0e-500iok-1.0e-500iarccot(10^999)1.0e-999ok1.0e-999ok1.0e-999arccot(10^999 * i)-1.0e-999iok-1.0e-999iok-1.0e-999iarcsec(10^50)1.5708ok1.5708ok1.5708arcsec(10^50 * i)1.5708 + 1.0e-50iok1.5708 + 1.0e-50iok1.5708 + 1.0e-50iarcsec(10^100)1.5708ok1.5708ok1.5708arcsec(10^100 * i)1.5708 + 1.0e-100iok1.5708 + 1.0e-100iok1.5708 + 1.0e-100iarcsec(10^500)1.5708ok1.5708ok1.5708arcsec(10^500 * i)1.5708 + 1.0e-500iok1.5708 + 1.0e-500iok1.5708 + 1.0e-500iarcsec(10^999)1.5708ok1.5708ok1.5708arcsec(10^999 * i)1.5708 + 1.0e-999iok1.5708 + 1.0e-999iok1.5708 + 1.0e-999iarccsc(10^50)1.0e-50ok1.0e-50ok1.0e-50arccsc(10^50 * i)-1.0e-50iok-1.0e-50iok-1.0e-50iarccsc(10^100)1.0e-100ok1.0e-100ok1.0e-100arccsc(10^100 * i)-1.0e-100iok-1.0e-100iok-1.0e-100iarccsc(10^500)1.0e-500ok1.0e-500ok1.0e-500arccsc(10^500 * i)-1.0e-500iok-1.0e-500iok-1.0e-500iarccsc(10^999)1.0e-999ok1.0e-999ok1.0e-999arccsc(10^999 * i)-1.0e-999iok-1.0e-999iok-1.0e-999iarsinh(10^50)115.822ok115.822ok115.822arsinh(10^50 * i)115.822 + 1.5708iok115.822 + 1.5708iok-115.822 + 1.5708i / 115.822 + 1.5708i (cut)arsinh(10^100)230.952ok230.952ok230.952arsinh(10^100 * i)230.952 + 1.5708iok230.952 + 1.5708iok-230.952 + 1.5708i / 230.952 + 1.5708i (cut)arsinh(10^500)1151.99ok1151.99ok1151.99arsinh(10^500 * i)1151.99 + 1.5708iok1151.99 + 1.5708iok-1151.99 + 1.5708i / 1151.99 + 1.5708i (cut)arsinh(10^999)2300.98ok2300.98ok2300.98arsinh(10^999 * i)2300.98 + 1.5708iok2300.98 + 1.5708iok-2300.98 + 1.5708i / 2300.98 + 1.5708i (cut)arcosh(10^50)115.822ok115.822ok115.822arcosh(10^50 * i)115.822 + 1.5708iok115.822 + 1.5708iok115.822 + 1.5708iarcosh(10^100)230.952ok230.952ok230.952arcosh(10^100 * i)230.952 + 1.5708iok230.952 + 1.5708iok230.952 + 1.5708iarcosh(10^500)1151.99ok1151.99ok1151.99arcosh(10^500 * i)1151.99 + 1.5708iok1151.99 + 1.5708iok1151.99 + 1.5708iarcosh(10^999)2300.98ok2300.98ok2300.98arcosh(10^999 * i)2300.98 + 1.5708iok2300.98 + 1.5708iok2300.98 + 1.5708iartanh(10^50)1.0e-50 + 1.5708iok1.0e-50 + 1.5708iok1.0e-50 + 1.5708i / 1.0e-50 - 1.5708i (cut)artanh(10^50 * i)1.5708iok1.5708iok1.5708iartanh(10^100)1.5708iok1.5708iok1.0e-100 + 1.5708i / 1.0e-100 - 1.5708i (cut)artanh(10^100 * i)1.5708iok1.5708iok1.5708iartanh(10^500)1.5708iok1.5708iok1.0e-500 + 1.5708i / 1.0e-500 - 1.5708i (cut)artanh(10^500 * i)1.5708iok1.5708iok1.5708iartanh(10^999)1.5708iok1.5708iok1.0e-999 + 1.5708i / 1.0e-999 - 1.5708i (cut)artanh(10^999 * i)1.5708iok1.5708iok1.5708iarcoth(10^50)1.0e-50ok1.0e-50ok1.0e-50arcoth(10^50 * i)-1.0e-50iok-1.0e-50iok-1.0e-50iarcoth(10^100)0WRONG0WRONG1.0e-100arcoth(10^100 * i)-1.0e-100iok-1.0e-100iok-1.0e-100iarcoth(10^500)0WRONG0WRONG1.0e-500arcoth(10^500 * i)-1.0e-500iok-1.0e-500iok-1.0e-500iarcoth(10^999)0WRONG0WRONG1.0e-999arcoth(10^999 * i)-1.0e-999iok-1.0e-999iok-1.0e-999iarsech(10^50)1.5708iok1.5708iok1.5708iarsech(10^50 * i)-1.5708iparts-1.5708iparts1.0e-50 - 1.5708iarsech(10^100)1.5708iok1.5708iok1.5708iarsech(10^100 * i)-1.5708iok-1.5708iok1.0e-100 - 1.5708iarsech(10^500)1.5708iok1.5708iok1.5708iarsech(10^500 * i)-1.5708iok-1.5708iok1.0e-500 - 1.5708iarsech(10^999)1.5708iok1.5708iok1.5708iarsech(10^999 * i)-1.5708iok-1.5708iok1.0e-999 - 1.5708iarcsch(10^50)0WRONG0WRONG1.0e-50arcsch(10^50 * i)-1.0e-50iok-1.0e-50iok-1.0e-50iarcsch(10^100)0WRONG0WRONG1.0e-100arcsch(10^100 * i)-1.0e-100iok-1.0e-100iok-1.0e-100iarcsch(10^500)0WRONG0WRONG1.0e-500arcsch(10^500 * i)-1.0e-500iok-1.0e-500iok-1.0e-500iarcsch(10^999)0WRONG0WRONG1.0e-999arcsch(10^999 * i)-1.0e-999iok-1.0e-999iok-1.0e-999iCi(10^50)0WRONG-7.89672e-51ok-7.89672e-51Ci(10^50 * i)+oo + 1.5708ipast range+oo + 1.5708ipast range~1e+434294… + 1.5708iCi(10^100)0WRONG-3.72376e-101ok-3.72376e-101Ci(10^100 * i)+oo + 1.5708ipast range+oo + 1.5708ipast range~1e+434294… + 1.5708iCi(10^500)NaNNaN3.11027e-501ok3.11027e-501Ci(10^500 * i)+oo + 1.5708ipast range+oo + 1.5708ipast range~1e+434294… + 1.5708iCi(10^999)NaNNaN3.75893e-1000ok3.75893e-1000Ci(10^999 * i)+oo + 1.5708ipast range+oo + 1.5708ipast range~1e+434294… + 1.5708iSi(10^50)1.5708ok1.5708ok1.5708Si(10^50 * i)+ooipast range+ooipast range~1e+434294…iSi(10^100)1.5708ok1.5708ok1.5708Si(10^100 * i)+ooipast range+ooipast range~1e+434294…iSi(10^500)NaNNaN1.5708ok1.5708Si(10^500 * i)+ooipast range+ooipast range~1e+434294…iSi(10^999)NaNNaN1.5708ok1.5708Si(10^999 * i)+ooipast range+ooipast range~1e+434294…iEi(10^50)+oopast range+oopast range~1e+434294…Ei(10^50 * i)3.14159iparts-7.89672e-51 + 3.14159iok-7.89672e-51 + 3.14159iEi(10^100)+oopast range+oopast range~1e+434294…Ei(10^100 * i)NaNNaNNaNNaN-3.72376e-101 + 3.14159iEi(10^500)+oopast range+oopast range~1e+434294…Ei(10^500 * i)3.14159iok3.14159iok3.11027e-501 + 3.14159iEi(10^999)+oopast range+oopast range~1e+434294…Ei(10^999 * i)3.14159iok3.14159iok3.75893e-1000 + 3.14159ili(10^50)8.76268e+47ok8.76268e+47ok8.76268e+47li(10^50 * i)1.206e+46 + 8.76102e+47iok1.206e+46 + 8.76102e+47iok1.206e+46 + 8.76102e+47ili(10^100)4.36197e+97ok4.36197e+97ok4.36197e+97li(10^100 * i)2.98864e+95 + 4.36177e+97iok2.98864e+95 + 4.36177e+97iok2.98864e+95 + 4.36177e+97ili(10^500)8.69345e+496ok8.69345e+496ok8.69345e+496li(10^500 * i)1.18714e+494 + 8.69343e+496iok1.18714e+494 + 8.69343e+496iok1.18714e+494 + 8.69343e+496ili(10^999)4.34918e+995ok4.34918e+995ok4.34918e+995li(10^999 * i)2.97122e+992 + 4.34918e+995iok2.97122e+992 + 4.34918e+995iok2.97122e+992 + 4.34918e+995isinh(10^50 * i)-0.789672iok-0.789672iok-0.789672isinh(10^100 * i)NaNNaNNaNNaN-0.372376isinh(10^500 * i)NaNNaNNaNNaN0.311027isinh(10^999 * i)NaNNaNNaNNaN0.375893icosh(10^50 * i)-0.613529ok-0.613529ok-0.613529cosh(10^100 * i)NaNNaNNaNNaN-0.928082cosh(10^500 * i)NaNNaNNaNNaN-0.950401cosh(10^999 * i)NaNNaNNaNNaN-0.926663tanh(10^50 * i)-1.65663 + 1.2871iWRONG1.2871iok1.2871itanh(10^100 * i)NaNNaNNaNNaN0.401232itanh(10^500 * i)NaNNaNNaNNaN-0.327259itanh(10^999 * i)NaNNaNNaNNaN-0.405642icoth(10^50 * i)-0.376417 - 0.292454iWRONG-0.776941iok-0.776941icoth(10^100 * i)NaNNaNNaNNaN-2.49232icoth(10^500 * i)NaNNaNNaNNaN3.05569icoth(10^999 * i)NaNNaNNaNNaN2.46523iln(10^50 + 10^50 * i)115.476 + 0.785398iok115.476 + 0.785398iok115.476 + 0.785398iln(10^50 + i)115.129 + 1.0e-50iok115.129 + 1.0e-50iok115.129 + 1.0e-50iln(-10^50 + i)115.129 + 3.14159iok115.129 + 3.14159iok115.129 + 3.14159iln(10^50 * i)115.129 + 1.5708iok115.129 + 1.5708iok115.129 + 1.5708iln(10^100 + 10^100 * i)230.605 + 0.785398iok230.605 + 0.785398iok230.605 + 0.785398iln(10^100 + i)230.259 + 1.0e-100iok230.259 + 1.0e-100iok230.259 + 1.0e-100iln(-10^100 + i)230.259 + 3.14159iok230.259 + 3.14159iok230.259 + 3.14159iln(10^100 * i)230.259 + 1.5708iok230.259 + 1.5708iok230.259 + 1.5708iln(10^500 + 10^500 * i)1151.64 + 0.785398iok1151.64 + 0.785398iok1151.64 + 0.785398iln(10^500 + i)1151.29 + 1.0e-500iok1151.29 + 1.0e-500iok1151.29 + 1.0e-500iln(-10^500 + i)1151.29 + 3.14159iok1151.29 + 3.14159iok1151.29 + 3.14159iln(10^500 * i)1151.29 + 1.5708iok1151.29 + 1.5708iok1151.29 + 1.5708iln(10^999 + 10^999 * i)2300.63 + 0.785398iok2300.63 + 0.785398iok2300.63 + 0.785398iln(10^999 + i)2300.28 + 1.0e-999iok2300.28 + 1.0e-999iok2300.28 + 1.0e-999iln(-10^999 + i)2300.28 + 3.14159iok2300.28 + 3.14159iok2300.28 + 3.14159iln(10^999 * i)2300.28 + 1.5708iok2300.28 + 1.5708iok2300.28 + 1.5708isqrt(10^50 + 10^50 * i)1.09868e+25 + 4.5509e+24iok1.09868e+25 + 4.5509e+24iok1.09868e+25 + 4.5509e+24isqrt(10^50 + i)1.0e+25parts1.0e+25 + 5.0e-26iok1.0e+25 + 5.0e-26isqrt(-10^50 + i)5.0e-26 + 1.0e+25iok5.0e-26 + 1.0e+25iok5.0e-26 + 1.0e+25isqrt(10^50 * i)7.07107e+24 + 7.07107e+24iok7.07107e+24 + 7.07107e+24iok7.07107e+24 + 7.07107e+24isqrt(10^100 + 10^100 * i)1.09868e+50 + 4.5509e+49iok1.09868e+50 + 4.5509e+49iok1.09868e+50 + 4.5509e+49isqrt(10^100 + i)1.0e+50ok1.0e+50 + 5.0e-51iok1.0e+50 + 5.0e-51isqrt(-10^100 + i)1.0e+50iok1.0e+50iok5.0e-51 + 1.0e+50isqrt(10^100 * i)7.07107e+49 + 7.07107e+49iok7.07107e+49 + 7.07107e+49iok7.07107e+49 + 7.07107e+49isqrt(10^500 + 10^500 * i)1.09868e+250 + 4.5509e+249iok1.09868e+250 + 4.5509e+249iok1.09868e+250 + 4.5509e+249isqrt(10^500 + i)1.0e+250ok1.0e+250 + 5.0e-251iok1.0e+250 + 5.0e-251isqrt(-10^500 + i)-8.92595e+148 + 1.0e+250iok-8.92595e+148 + 1.0e+250iok5.0e-251 + 1.0e+250isqrt(10^500 * i)7.07107e+249 + 7.07107e+249iok7.07107e+249 + 7.07107e+249iok7.07107e+249 + 7.07107e+249isqrt(10^999 + 10^999 * i)3.47434e+499 + 1.43912e+499iok3.47434e+499 + 1.43912e+499iok3.47434e+499 + 1.43912e+499isqrt(10^999 + i)3.16228e+499ok3.16228e+499 + 1.58114e-500iok3.16228e+499 + 1.58114e-500isqrt(-10^999 + i)-2.82263e+398 + 3.16228e+499iok-2.82263e+398 + 3.16228e+499iok1.58114e-500 + 3.16228e+499isqrt(10^999 * i)2.23607e+499 + 2.23607e+499iok2.23607e+499 + 2.23607e+499iok2.23607e+499 + 2.23607e+499iNo new wrong answers
sin,cos,tan,cotan,sec,csc,exp,ln,sqrt,ShiandChi, at arguments from 10^-60 to 10^45, real and complex, plus fourteen powers. 22 answers changed, all of themarcsin,arccosorarcsec, and all in their last digits. Each is nearer mpmath (300 digits) than master was, in every part. The worst master case,arcsin(10^40 - 3/7 i), had a real part wrong from its 39th digit; it is now wrong from its 100th.arcsin(1 + 10^-60 i)andarcsin(10^-60 (1 + i))),arcsin(6 + pi)(arcsin and arccos of a real past 1 is NaN for one argument in ten: arcsin(6 + pi) #2244), branch sides, ande^(i pi)/e^(10^40 pi i)residuals. These are unchanged, except where master was wrong.BREAKING-CHANGES.md.Measurements
dotnet test Sources/Tests/UnitTests: 22022 passed, 0 failed, 13 skipped, before the new tests. The newIssue2675_*tests, together with theIssue2668_*andIssue1944_*tests: 74 passed.dotnet test Sources/Tests/FSharpWrapperUnitTests: 135 passed.The tests are
Issue2675_ALargeArgumentKeepsEveryPartOfItsValueandIssue2675_AnArcsineOfAnInfinityGoesOffAlongItsDirection, inNumericsRegressionTest.cs. They put each part within a relative 1e-10 of mpmath at 2000 digits, and require a part that is 0 to be exactly 0.🤖 Generated with Claude Code