Repository navigation
Commit 806f5f6
Compiled real and imaginary parts of a value that is not there are not there (#2312)
Both compilers take Re and Im of a System.Numerics.Complex as the one part alone, so a NaN
in the other part was dropped. x / x at 0 compiles to NaN + NaN i, its imaginary part to
NaN with an imaginary part of 0, and the imaginary part of that to 0: Im(Im(x / x)) and
Im(Re(x / x)) compiled to 0 at 0, where the interpreter, and the compiled x / x, have no
value. A NaN in either part is now the whole number's, as Im of a NaN double already was.
Found among work/compilesweep's findings, as Im(Im(min(x, x))) off the real line. No
issue was filed.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 3fc4022 commit 806f5f6
2 files changed
Lines changed: 36 additions & 2 deletions
File tree
- Sources
- AngouriMath/Numerics
- Tests/UnitTests/Convenience
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | | - | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
62 | 90 | | |
63 | 91 | | |
64 | 92 | | |
| |||
0 commit comments