smpl.functions.cube

smpl.functions.cube(x, a, b, c, d)[source]

cube(x,a,b,c,d) = \(a x^{3} + b x^{2} + c x + d\)

>>> from smpl.functions import cube
>>> from smpl import plot
>>> plot.function(cube,1,5,0,-2,xmin=-5,xmax=5)

(Source code, png, hires.png, pdf)

../_images/smpl-functions-cube-1.png