Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: root (cube, 4th, nth)
Date: Thu, 18 Feb 2010 15:15:09 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 38
Message-ID: <hljlht$jc8$1@fred.mathworks.com>
References: <hljkjs$i04$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1266506109 19848 172.30.248.35 (18 Feb 2010 15:15:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 18 Feb 2010 15:15:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:609300

"Riyman " <r_iman_2008@hotmail.com> wrote in message <hljkjs$i04$1@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