note 17298 added to function.pow
| From: | davidheberer at hotmail dot com | Date: | Mon, 03 Dec 2001 20:02:12 +0000 |
| Subject: | note 17298 added to function.pow | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21573@lists.php.net to get a copy of this message | ||
I would just like to comment on the first note for this function. Technically speaking, there is no
answer to a negative number taken to a fractional power. I don't know exactly what you were
using the pow function for, but the solution you came up with is mathmatically incorrect. You could
return the answer of the absolute value taken to the same fractional root and append an
'i' to the end of it (root of -1 is i for imaginary).
--
http://www.php.net/manual/en/function.pow.php
http://master.php.net/manage/user-notes.php?action=edit+17298
http://master.php.net/manage/user-notes.php?action=delete+17298
http://master.php.net/manage/user-notes.php?action=reject+17298