Anonymous | Login | 12-16-2019 10:25 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0003311 | [Squeak] Kernel | feature | always | 03-15-06 18:36 | 07-15-06 11:57 | |||||||
Reporter | KenD | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | |||||||||
Status | new | Product Version | ||||||||||
Summary | 0003311: Complex Numbers are Wacky | |||||||||||
Description |
Examples 2i isNumber. "false" -4 ln. "NaN" -4 sqrt. "exception" [I did another implementation which fixes these problems and adds hyperbolic math functions (see below)] |
|||||||||||
Additional Information |
Current: 2i isNumber. "false" -4 ln. "NaN" -4 sqrt. "exception" After Fix: 2i isNumber. "true" -4 ln. "(1.38629436111989 +3.141592653589793i)" -4 sqrt. "2.0i" TESTED IN: Squeak image versions 3.8-6665 and 3.9a-7008. INSTRUCTIONS: [1] Open a browser and remove class Complex. [2] File in the attached change set. [3] (optional) Run the KernelTests-Numbers>>Complex unit tests. NOTE: One test fails in 3.9alpha (but not in 3.8). ((1/2) + 2.1i) tanH arcTanH yields a different result. [KernelTests-Numbers>>Complex>>testMath] I suspect this is caused by some change elsewhere in Kernel-Numbers. The old result matched the complex hyperbolic implementation in Chez Scheme. Enjoy! -KenD [Ken Dickey] |
|||||||||||
Attached Files |
![]() |
|||||||||||
|
![]() |
|||||||||||||||||||||
SYSTEM WARNING: Creating default object from empty value SYSTEM WARNING: Creating default object from empty value SYSTEM WARNING: Creating default object from empty value SYSTEM WARNING: Creating default object from empty value SYSTEM WARNING: Creating default object from empty value SYSTEM WARNING: Creating default object from empty value
|
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
53 total queries executed. 35 unique queries executed. |