3D curvefitting

To fit a curve onto a set of points, we can use ordinary least-squares regression. There is a solution page by MathWorks describing the process. As an example, let’s start with some random data: % some 3d points data = mvnrnd([0 0 0], [1 -0.5 0.8; -0.5 1.1 0; 0.8 0 1], 50); As @BasSwinckels … Read more

What is the fastest integer factorization algorithm?

Pulled directly from my answer to this other question. The method will work, but will be slow. “How big are your numbers?” determines the method to use: Less than 2^16 or so: Lookup table. Less than 2^70 or so: Richard Brent’s modification of Pollard’s rho algorithm. Less than 10^50: Lenstra elliptic curve factorization Less than … Read more