//1. Linear algebra example. We start with a matrix. A = [[1,2,3], [4,5,6], [7,3,9]] //2. Let's also make a vector. x = [3,1,2]; //3. Matrix-vector product. b = numeric.dot(A,x); //4. Matrix inverse. Ainv = numeric.inv(A); //5. Let's check it: numeric.dot(Ainv,b); //6. Determinant numeric.det(A); //7. Eigenvalues. ev = numeric.eig(A) //8. In this case, the eigenvalues are real. ev.lambda.x //9. Singular value decomposition. numeric.svd(A)