From: Riyman on
Hi,

what are the commands to find:
cube root,
4th root
nth root

Thanks for your help,
R.
From: James Allison on
x^(1/n)

Riyman wrote:
> Hi,
>
> what are the commands to find:
> cube root,
> 4th root
> nth root
>
> Thanks for your help,
> R.
From: Sadik on
How about x.^(1/n) ?

Best.

"Riyman " <r_iman_2008(a)hotmail.com> wrote in message <hljkjs$i04$1(a)fred.mathworks.com>...
> Hi,
>
> what are the commands to find:
> cube root,
> 4th root
> nth root
>
> Thanks for your help,
> R.
From: John D'Errico on
"Riyman " <r_iman_2008(a)hotmail.com> wrote in message <hljkjs$i04$1(a)fred.mathworks.com>...
> Hi,
>
> what are the commands to find:
> cube root,
> 4th root
> nth root
>
> Thanks for your help,
> R.

The trick here is to use the capabilities of matlab.
The lookfor function helps you to find the name
of a function that you know must exist, but you
simply don't know what it might be called.

You want to compute some root of a number. So
why not try this:

lookfor root

If you did that, you would have found a few
functions that compute roots.

Next, you might benefit from looking at some of
the elementary functions in matlab. So try this:

help elfun

Look there. You will find a few functions to
compute roots. Finally, you should recognize that
a root is simply a power. So

lookfor power

might give something interesting.

John