justinethier / cyclone

:cyclone: A brand-new compiler that allows practical application development using R7RS Scheme. We provide modern features and a stable system capable of generating fast native binaries.
http://justinethier.github.io/cyclone/
MIT License
823 stars 42 forks source link

Trigonometric functions do not generate complex results #531

Open justinethier opened 5 months ago

justinethier commented 5 months ago

For example, the following return nan in cyclone:

> (asin 2.0)
1.5707963267948966-1.3169578969248166i
> (acos 2.0)
0.0+1.3169578969248166i