Package: yoshi-otter
Otter - Numeric CalculusThis python package is made for applied Numeric Calculus of Algebra Functions. It is made with the following objectives in mind:Receive one variable function from user inputReceive two variable function from user inputPerforme derivatives with one variable functionsPerforme integral with received functionsFind root of functions throw method of bissection and method of newtonSolve Diferential Equations throw method of euler and rungePerforme Minimus Interpolation and Polinomial InterpolationSyntaxTo initialize a Otter instance linked to functions use the following syntaxotr = Otter.algebra(f), whereotrwill be a arbitrary name for the instance andfis a function ofone variable.To initialize a Otter instance linked to data and interpolation use the following syntaxotr = Otter.interpolation(data), whereotrwill be a arbitrary name for the instance and data will be anumpymatrix where the first columns has to contain the values forxand the second column contains the values fory.AlgebraAlgebra is a Python Class where some of the features described previously are defined as Classes as well, like:Integral,Roots,EDO(diferential equations).IntegralTo call the classIntegralappend the sufix with lower case in front of the instance like:otr.integral. The Integral class has two other class defined inside,SimpleandDouble, to call them append the sufix with lower case in front asotr.integral.simpleorotr.integral.double. Then pick between Riemann's Method or Simpson's Method by appending the sufixriemannorsimpsonas well.After that the syntax will be something likeotr.integral.double.riemann(a,b,c,d,n,m), whereaandcwill be the first value of the interval of integration respectively in x and y,banddwill be the last,nandmwill be the number of partitions.The syntax for one variable integrations will beotr.integral.simple.riemann(a,b,n).Ifnis not defined the standart value in 10^6 partitions for one variable and 10^4 for double. And ifmis not defined the standart value will be equal ton.RootsTo call the classRootappend the sufix with lower case in front of the instance like:otr.roots. The Roots class has three methods defined inside,bissec,newtonandbissec_newton, to call them append the sufix with lower case in front asotr.roots.bissecorotr.roots.newtonor evenotr.roots.bissecnewton.The syntax for the bissection method and bissec_newton is equal tootr.roots.bissec(a,b,e)andotr.roots.bissec_newton(a,b,e), whereais the first element of the interval containing the root andbis the last,ebeing the precision.The syntax for the newton method is equal tootr.roots.newton(a,e), whereais the element closest to the root andeis the precision.Ifeis not defined the standart value is 10^(-6).Diferential EquationsTo call the classEDO(EquaçõesDiferenciaisOrdinárias) append the sufix with lower case in front of the instance like:otr.edo. TheEDOclass has two methods defined inside:eulerandrunge, to call them append the sufix with lower case in front asotr.edo.eulerorotr.edo.runge.The syntax for the diferential equations method is equal tootr.edo.euler(a,y,b,n)orotr.edo.runge(a,y,b,n), whereaandywill be the inintial point  andbis the value inxwhich you want to know the corresponding value inyandnis the number of operations.Ifnis not defined the standart value is 10^7.InterpolationThe python classInterpolationis divided in one method, minimus interpolation, and one class, polinomial interpolation.To call the methodminimususe a syntax likeotr = Otter.interpolation(data), wheredatais a data frame containing values forxandy,otris an instance and append the method in front of the instance like:otr.minimus(x), wherexis value off(x)you want to estimate.To call the classPolinomialappend the sufix with lower case in front of the instance like:otr.polinomial. ThePolinomialclass has four methods defined inside:vandermonde,lagrange,newtonandgregory, to call them append the sufix with lower case in front likeotr.edo.gregory(x)wherexis value off(x)you want to estimate.InstallationTo install the package from sourcecdinto the directory and run:pip install .or runpip install yoshi-otter