Page 1 of 1

Roots

Posted: Tue Jan 20, 2004 6:53 pm
by merendo
Code updated For 5.20+

This is a very simple but accurate and effective way to calculate any types of roots. Wether it is a square-root, a cube-root or anything else... This function can do it.

Code: Select all

    Procedure.f Root(index.f,root.f)
    ProcedureReturn Pow(index,1/root)
    EndProcedure
Simple, isn't it?

Posted: Tue Jan 20, 2004 9:25 pm
by tinman
Some discussion about this and rounding errors: viewtopic.php?t=8484&highlight=root