lipschultz / diabicus

A disco calculator (and surprise data science project)
GNU General Public License v3.0
0 stars 0 forks source link

TypeErrors from (8.0 + 6.0i)^0.5 #10

Closed lipschultz closed 7 years ago

lipschultz commented 8 years ago

Why do these TypeErrors occur? Fix them. The errors are:

[WARNING] [Funny Fractions and Ford Circles threw exception TypeError('argument should be a string or a Rational instance',)] formula = "(Ans)^.5", result = "(3+1j), context = {output : <['3', '1.0i', '3.0 + 1.0i', '8.0 + 6.0i', '3.0 + 1.0i']>, formula : <['+3', '1i', 'Ans+3', 'Ans^2', '(Ans)^.5']>, result : <[3, 1j, (3+1j), (8+6j), (3+1j)]>}
[WARNING] [Math Jokes Explained threw exception TypeError("can't take floor of complex number.",)] formula = "(Ans)^.5", result = "(3+1j), context = {output : <['3', '1.0i', '3.0 + 1.0i', '8.0 + 6.0i', '3.0 + 1.0i']>, formula : <['+3', '1i', 'Ans+3', 'Ans^2', '(Ans)^.5']>, result : <[3, 1j, (3+1j), (8+6j), (3+1j)]>}
lipschultz commented 7 years ago

Closed by 8a0c14b036038ce39ebec67869b380ce45486088