Board index » delphi » need help in finding cube root

need help in finding cube root

how do i get cube root of a variable "x" ?
pl help. need it ASAP.
Thx.
--
***************************************
Mallik Arjunan
Consultant
Smiths Industries
Aerospace & Defense Systems
4141 Eastern Ave SE, Mail Stop 127
Grand Rapids, MI 49518-8727

Phone: 616/241-7953; Fax: 616/241-8686
email: arju...@bones.si.com

***************************************

 

Re:need help in finding cube root


Quote
Mallik Arjunan wrote:

> how do i get cube root of a variable "x" ?
> pl help. need it ASAP.
> Thx.

QROOT := Exp(ln(x) / 3);

Re:need help in finding cube root


JRS:  In article <35647587.417A5...@eunet.at> of Thu, 21 May 1998
20:42:15 in comp.lang.pascal.borland, "Ing. Franz Glaser" <meg-

Quote
gla...@eunet.at> wrote:
>Mallik Arjunan wrote:

>> how do i get cube root of a variable "x" ?
>> pl help. need it ASAP.
>> Thx.

>QROOT := Exp(ln(x) / 3);

But not always.  This will not work if x is zero or negative.

--
John Stockton, Surrey, UK.    j...@merlyn.demon.co.uk    Turnpike v1.12    MIME.
  Web <URL: http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.

Other Threads