Message-ID: <8D4BFD12-0D62-4FC3-A2CF-7A184F6B72DC@comcast.net>
Date: 2009-03-19T19:43:02Z
From: David Winsemius
Subject: nth root
In-Reply-To: <5A9DE79F4DF0EA4BA86478B0D88DA44E5CAA01@louise.nett.npolar>
x^(1/n) # ?
exp(log(x)/n) # ?
Either of those could be rolled into a function with the desired name:
On Mar 19, 2009, at 11:21 AM, Martin Biuw wrote:
> Hi,
> Is there a function in R to calculate the nth root, similar to the
> MATLAB function NTHROOT()?
> Thanks,
> Martin Biuw
David Winsemius, MD
Heritage Laboratories
West Hartford, CT