Repository navigation
Commit ca785d3
The imaginary part of a value that does not exist has none (#2257)
Im(1/0) was 0, and so was Im(arccos(pi) provided pi < 3), where Re,
conj, arg, abs and floor of the same values are NaN. Imf.ImaginaryPart
answered any Complex with its imaginary part, and NaN is a Real, whose
imaginary part is 0. A NaN argument is now NaN, before that arm.
ImaginaryPartOfNaNTest takes Im of three values that do not exist,
evaluated, simplified and substituted, and four of them fail on master.
Re(1/0) and the imaginary parts of 2 + 3i, 5 and -oo pin what has not
changed. Im is new since 2.6.0 (#2145), where im(1/0) was the product
im * (1/0), so no answer changes against it.
Found by work/domaincheck.
Fixes #2253.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 2eec9d4 commit ca785d3
3 files changed
Lines changed: 50 additions & 0 deletions
File tree
- Sources
- AngouriMath/Functions/Evaluation/Evaluation.Continuous
- Tests/UnitTests/Convenience
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
944 | 947 | | |
945 | 948 | | |
946 | 949 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
829 | 832 | | |
830 | 833 | | |
831 | 834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments