Math module w bezier/spline surfacing spherical interp, and permutation choosing

all the functions and constants:

Math.bezier(controlPoints, t)
Math.beziersurface(controlPoints, u, v)
Math.spline(controlPoints, x)
Math.splinesurface(controlPoints, x, y)
Math.catmullrom(controlPoints, t)
Math.lerp(a, b, t)
Math.bilinearinterp(controlPoints, x, y)
Math.trilinearinterp(controlPoints, x, y, z)
Math.cubicinterp(controlPoints, x)
Math.bicubicinterp(controlPoints, x, y)
Math.tricubicinterp(controlPoints, x, y, z)
Math.tlerp(a, b, c, t)
Math.slerp(a, b, t)
Math.lcf(a, b)
Math.gcf(a, b)
Math.riemannzeta(s)
Math.factorial(n)
Math.multiples(n, m)
Math.factors(n)
Math.stddev(r)
Math.convolve(a, b)
Math.binomialpmf(p, n, k)
Math.determinant(matrix)
Math.choosepermutation(n, k)
Math.phi
Math.e
Math.pi

i’m open to suggestions or corrections currently i’m looking for more functions to add

4 Likes