nth-Root

Category: Python - Miscellaneous

I realised a lack of an nth root function within Python maths' modules, even though, you could fulfil the task by using the power function, and I wrote nth-Root program.
However, I used Newton’s method Xn+1 = Xn - f(Xn)/f’(Xn) , n = 1,2,3... and worked out myself the formula to solve the equation X^(b) - a for nth-root(a) as follows:
Xn+1 = 1/b((b-1)Xn + a/Xn^(b-1)). Though my program nth-Root uses a generator to generate each value approximation in the sequence from its predecessor, and it display the nth root value once two equal values are generated.
Nowadays Scientifics’ calculators display 9 digits to the right of a decimal point and my program nth-Root displays a 16 figures precision to the right of a decimal point. Date: 01 April, 2012


Mathematics

Homepage: http://code.activestate.com/recipes/576857-nth-root/?in=lang-python

Developer: Fouad Teniou

License: Freeware

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

3d Digital Clock is a multi-platform compatible digital clock in pseudo-3D drawn from scratch using grass-roots AWT methods.

developer Developer: RF
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


A4animation is a multi-platform compatible set of 4 applets illustrating, in the simplest terms, how sequential animation is acheived via loaded images.

developer Developer: Stirling.J.Penn
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


Sterlz Cut Applet is a multi-platform compatible lake applet that is an animated version of a scene local to the canal system of Wordsley, England.

developer Developer: www.sterlz-web
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


Another One Of Them Lake Applets is a multi-platform compatible mainstream lake applet with sequential image effects.

developer Developer: Stirling Penn
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


Advertiser is a multi-platform compatible suite of applets displaying scolling flag and pennant effects.

developer Developer: Stirling Penn
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


MathWriter is a java stand-alone program that allows for the production of, Mathematical, Scientific and Engineering equations and formulae.

developer Developer: Patrick OBrien
license License: Freeware
operating systems Operating System: Windows


RubyLab is a Ruby IDE intended for scientific and engineering programming.

developer Developer: rubyforge.org
license License: Freeware
operating systems Operating System: All


Applies python syntax highlighting to all the TextShapes (i.

developer Developer: Bryan Cole
license License: Freeware
operating systems Operating System: Windows


SPSS can output ASCII.

developer Developer: wouter
license License: Freeware
operating systems Operating System: Windows