HyperCard Mailing List

[HC] Root function
(Msg 1 of 3)
Tony McCoy O'Grady <maxiogee@[redacted].ie>
Friday, 22-Apr-2011 12:45 GMT
Hi,

HyperCard has an embedded square-root function.
Has anybody developed, or come across, a root function for values other than 2?
I'm looking for one where the user would enter (number) and (n) - and a function would then calculate the nth root of "number"


Tony McCoy O'Grady
-----------------------------
It's a little fit bunny, this feeling inside!
[HC] Root function
(Msg 2 of 3)
Mark Schonewille <m.schonewille@[redacted].com>
Friday, 22-Apr-2011 12:51 GMT
Tony,

put x^(1/n) into rootN

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce

On 22 apr 2011, at 14:45, Tony McCoy O'Grady wrote:

> Hi,
>
> HyperCard has an embedded square-root function.
> Has anybody developed, or come across, a root function for values other than 2?
> I'm looking for one where the user would enter (number) and (n) - and a function would then calculate the nth root of "number"
[HC] Root function
(Msg 3 of 3)
Tony McCoy O'Grady <maxiogee@[redacted].ie>
Friday, 22-Apr-2011 19:41 GMT

On 22 Apr 2011, at 13:51, Mark Schonewille wrote:

> put x^(1/n) into rootN



That's so simple I'd never have thought of it. I was scratching around for ages trying to come up with a starting point, let alone a solution.

Thanks Mark.

Tony McCoy O'Grady
-=-=-=-=-=-=-=-=-=-=-=-=-=
If I had stopped to listen once or twice
If I had closed my mouth and opened my eyes
If I had cooled my head and warmed my heart
I'd not be on this road tonight
HyperCard® and HyperTalk™ remain trademarks of Apple, Inc.; other trademarked products and terms mentioned in this archive are the property of their respective trademark holders. Individual messages remain the intellectual property of their respective authors.