Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i cube root

Status
Not open for further replies.

S11

Vendor
Apr 7, 2004
2
CH
How do I program the calculation for a cube root? Can anyone help?
 
Hi,

The nth root of any number is that number raised to the 1/n power.

So the cube root of 27 can be expressed as 27 ^ (1/3)

Therefore you can use...

n := Power(27,1/3);



There are two ways to write error-free programs; only the third one works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top