shamrock.math#
Shamrock math library.
Functions
Estim the correct step to use for a given order when using derivatives |
|
Solve ODE with Euler method start : Lower bound of integration end : Higher bound of integration step : Step of integration ode : Ode function x0 : Initial coordinate u0 : Initial value |
|
Get the smallest periodic box of a true FCC lattice (ABC stacking) containing the given box |
|
Get the periodic box of a true FCC lattice (ABC stacking) corresponding to integer lattice coordinates. |
|
Get the periodic box corresponding to integer lattice coordinates this function will throw if the coordinates asked cannot make a periodic lattice |
|
Fit data with a given function by least squares method f: Function (1d values) X: $x$ Data to fit Y: $y$ Data to fit p0: Initial parameters estimated |
|
Classes
Perspective camera following the OpenGL conventions (gluLookAt + gluPerspective). |
|