Repository navigation
Commit d5a279c
Read a compiled power's constant exponent for its value (#2339)
Both compilers take the real root of a negative real for a rational
exponent with an odd denominator below ten, as evaluation does, but only
where the exponent was written as a rational. Written otherwise it was the
principal power: x^(1/(1 + 2)), x^(3^(-1)) and x^((1/3) provided 2 > 1)
compiled to 1 + 1.73i at -8, and NaN over double, where evaluation reads the
exponent as 1/3 and is -2. An exponent with no variable is now read for its
value, through InnerSimplified, in both compilers.
Found by compilesweep at seed 13, on (sin(x))^(1/(3 provided 3 > 1)) at
-1.3; no issue was filed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 493b7ef commit d5a279c
5 files changed
Lines changed: 22 additions & 3 deletions
File tree
- Sources
- AngouriMath/Functions/Compilation
- IntoFE
- IntoLinq
- Tests/UnitTests/Common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
| 749 | + | |
| 750 | + | |
750 | 751 | | |
751 | 752 | | |
752 | 753 | | |
753 | 754 | | |
| 755 | + | |
754 | 756 | | |
755 | 757 | | |
756 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
109 | 120 | | |
110 | 121 | | |
111 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
0 commit comments