Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I am looking for a function that is the reverse of POWER - in that I can
calculate the root of a number, but specify the root - cube, 4th, 5th etc. We have a SQRT function, but I don't see anything boynd that. |
#2
![]() |
|||
|
|||
![]()
You have to construct it as such:
=value^(1/n) where n = root. For example, to get the cube root of A1, use: =A1^(1/3) HTH Jason Atlanta, GA -----Original Message----- I am looking for a function that is the reverse of POWER - in that I can calculate the root of a number, but specify the root - cube, 4th, 5th etc. We have a SQRT function, but I don't see anything boynd that. . |
#3
![]() |
|||
|
|||
![]()
Try =Your number^(1/n), n being your root
Ilan |
#4
![]() |
|||
|
|||
![]()
In addition to the formulas given by others, you can also use POWER here. The
2nd argument to POWER does not need to be a positive integer. For the 5th root =POWER(A1,1/5) On Wed, 2 Mar 2005 09:17:08 -0800, ACC wrote: I am looking for a function that is the reverse of POWER - in that I can calculate the root of a number, but specify the root - cube, 4th, 5th etc. We have a SQRT function, but I don't see anything boynd that. |
#5
![]() |
|||
|
|||
![]()
Myrna Larson wrote...
In addition to the formulas given by others, you can also use POWER here. The 2nd argument to POWER does not need to be a positive integer. For the 5th root =POWER(A1,1/5) .... Are there any cases in which POWER(x,y) gives a different answer than X^(y) other than perhaps error values when both would return errors? POWER is in the same class as CONCATENATE: both are pointless since there's an operator that does the same thing using fewer characters and no function calls, which can become an issue in nested expressions. |
#6
![]() |
|||
|
|||
![]()
For me, sometimes the Power function can make it a little easier to read.
ie. =-(16)^(1/4) returns #NUM! which we all know to be a "issue" with Excel. (we don't want to go there again :) ) but =-POWER(16,1/4) returns -2 as one would expect. Just my opinion. -- Dana DeLouis Win XP & Office 2003 "Harlan Grove" wrote in message oups.com... Myrna Larson wrote... In addition to the formulas given by others, you can also use POWER here. The 2nd argument to POWER does not need to be a positive integer. For the 5th root =POWER(A1,1/5) ... Are there any cases in which POWER(x,y) gives a different answer than X^(y) other than perhaps error values when both would return errors? POWER is in the same class as CONCATENATE: both are pointless since there's an operator that does the same thing using fewer characters and no function calls, which can become an issue in nested expressions. |
#7
![]() |
|||
|
|||
![]()
Dana DeLouis wrote...
For me, sometimes the Power function can make it a little easier to read. ie. =-(16)^(1/4) returns #NUM! which we all know to be a "issue" with Excel. (we don't want to go there again :) ) Well, 'we' may not if it's a rhetorical ploy in 'our' favor. but =-POWER(16,1/4) returns -2 as one would expect. Just my opinion. However, the equivalent POWER call would be POWER(-(16),1/4) which would return the same #NUM! error. The equivalent operator call for your POWER call would be -(16^(1/4)) which returns -2. If you mean POWER eliminates some ambiguity and/or unexpected functionality from the ^ operator due to Excel's unusual operator precedence, then fine, but IMO it'd be more useful to learn that -(16)^(1/4) is a mistake in waiting [and only FORTRAN, AFAIK, distinguishes X from (X) when X is a single variable token or a numeric constant, and then only in function calls] which should be rewritten as -(16^(1/4)) That is, the whole point to using the extra set of parentheses is to overcome Excel's unhelpful operator precedence. It should be obvious that wrapping 16 in parentheses does nothing useful. |
#8
![]() |
|||
|
|||
![]()
ACC wrote...
.... We have a SQRT function, but I don't see anything boynd that. Tangential! SQRT is a hold-over from the bad old days when floating point math was done is software rather than in dedicated hardware. Prior to 1990 or so most computers didn't have floating point units/numeric data processors/math coprocessors, so math libraries included detailed functions to calculate logarithms and antilogarithms in order to calculate arbitrary powers. SQRT was so frequently used in physical and statistical algorithms that it was expedient to make it a separate function using an algorithm specific to square roots, and therefore much more efficient in software than the general approach. These days when almost all computers have IEEE hardware floating point units, there's nothing gained by having the SQRT function because SQRT(x) and x^0.5 will make the same call to the FPU and receive the same result from it. In fact, the SQRT call would require setting up a call stack unless the compiler were optimized to convert SQRT(x) into inline ((x)^0.5). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conversion | Excel Worksheet Functions | |||
Trim function doesn't clean out ASCII Code 160 (Space) | Excel Worksheet Functions | |||
Formula to list unique values | Excel Worksheet Functions | |||
I cant use englisch function names in a swedich version of excel | Excel Discussion (Misc queries) | |||
Find a Function to use accross different worksheets | Excel Worksheet Functions |