[thelist] PHP: What does #IND mean?
jon steele
jjsteele22 at yahoo.com
Wed Oct 17 18:55:50 CDT 2001
Thanks Joshua,
Would this work?
pow(pow(5.8,2),1/3);
So manually telling it: square then cube root...or is the problem
fractional exponents?
Are there any other math limitations in php?
This is kinda frustrating... :(
Jon
--- Joshua Olson <joshua at alphashop.com> wrote:
> It's crashing on pow((-5.8-4),(2/3))
>
> This means you cannot take the 2/3 power of a negative number. We
> all know
> from basic math that you can do it, simply square the number first
> and take
> the cubic root. But, the processing engine is failing, unfortunately
> because of the way it validates the POW statement.
>
> Excel fails on this too, only you write it (-5.8-4)^(2/3) in excel,
> and it
> gives #NUM, which is the same error, essentially.
>
> Good luck,
> -joshua
>
> ----- Original Message -----
> From: "jon steele" <jjsteele22 at yahoo.com>
> Subject: [thelist] PHP: What does #IND mean?
>
>
> : Hi,
> :
> : I am performing some math with php, and I am getting #IND in a
> result
> : which should be a real number.
> :
> : For example:
> :
> : pow(-5.8,(1/3)) * pow((-5.8-4),(2/3)) = -1.#IND
> :
> : What is this?
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
More information about the thelist
mailing list