Repository navigation
Commit 97596b8
A number's conjugate is made under the setting in force
Complex.Conjugate was kept on the instance, made by Complex.Create under whatever downcasting
setting its first caller had. A division by a complex number conjugates the divisor, so a division
by i with the downcasting off left 0 - 1i, in decimals, as the conjugate of Complex.ImaginaryOne,
the one instance every i is. conj(i) was that for every caller after it, in every thread.
Two tests on #2190's branch failed in the full suite and passed alone: conj(i) against -i, and
MathS.Conjugate's documented example. Which ran first decided it.
The conjugate is now made each time it is asked for, under the setting in force, as every other
number is: the division that asks for it reads the modulus the same way (#1615). A regression test
divides by i with the downcasting off first; it fails without the change, with 0 - 1i.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura1 parent 3f6c444 commit 97596b8
3 files changed
Lines changed: 32 additions & 2 deletions
File tree
- Sources
- AngouriMath/Core/Entity/Continuous
- Tests/UnitTests/Core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
322 | 332 | | |
323 | 333 | | |
324 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
461 | 476 | | |
462 | 477 | | |
0 commit comments