|
|
|
|
|
by dxbydt
1036 days ago
|
|
I used it just the other day to work an aime problem for my middle schooler. scheme@(guile-user) [5]> (exp (* (atan 1) -2)) $9 = 0.20787957635076193 scheme@(guile-user) [5]> (expt 0+1i 0+1i) $10 = 0.20787957635076193+0.0i a problem c/c++/java/js/python/rust/go can't handle after decades of progress. even my favorite R can't work this problem. scheme ftw. |
|
>>> from math import atan, exp
>>> exp(atan(1)*-2)
0.20787957635076193
>>> 1j**1j
(0.20787957635076193+0j)