Roadmap proposal for 3.10/4.0
Damien Cassou
damien.cassou at laposte.net
Tue Oct 17 19:07:56 UTC 2006
Ken Dickey a écrit :
> -4 sqrt. "2.0i"
If I remember correctly what my math teacher taught me, this is incorrect.
Rule of square roots:
---------------------
a sqrt * b sqrt = (a*b) sqrt
Applied to -4:
--------------
(-4) sqrt * (-4) sqrt = 16 sqrt = 4
With your equality:
-------------------
(-4) sqrt * (-4) sqrt = 2i * 2i = -4
We then have the same expression returning two different values. My
teacher concluded saying "sqrt is a function only valid for positive
numbers"
Bye
--
Damien Cassou
More information about the Squeak-dev
mailing list
|