A math software that can solve equations, find derivatives, and more.
I created this so that I could learn how systems like Matlab and Mathematica solve equations. However, I continued to add more features after reaching my initial goal.
Note that commands are NOT case-sensitive.
SOLVE
: solve linear, quadratic, and exponential equations. Exponential equations must be in simplest for this to workDIFF
: Differentiate a functionSCALE
: Scale a vectorDOTPR
: Find the dot product of 2 vectorsADDVEC
: Find the sum of 2 vectorsEIGVAL
: Find the eigenvalues of a matrixTRANSP
: Transpose a matrixFFT
: Run a Discrete Fourier Transform on a signalIFFT
: Run an Inverse Fourier Transform on a signalINTEGRATE
: Integrate a functionSUM
: The sum of a vectorAVG
: The average of a vectorWORD
: Define a word(similar to Wolfram|Alpha)EXP
: Calculate e^x where x is an expression, vector, matrix, or numberSQRT
: Calculate the square root of an expression, vector, matrix, or numberSIN
: Calculate the sine of an expression, vector, matrix, or numberCOS
: Calculate the cosine of an expression, vector, matrix, or numberTAN
: Calculate the tangent of an expression, vector, matrix, or numberATAN
: Calculate the arc tangent of an expression, vector, matrix, or numberASIN
: Calculate the arc sine of an expression, vector, matrix, or numberACOS
: Calculate the arc cosine of an expression, vector, matrix, or numberTANH
: Calculate the hyperbolic tangent of an expression, vector, matrix, or numberSINH
: Calculate the hyperbolic sine of an expression, vector, matrix, or numberCOSH
: Calculate the hyperbolic cosine of an expression, vector, matrix, or numberATANH
: Calculate the inverse hyperbolic tangent of an expression, vector, matrix, or numberASINH
: Calculate the inverse hyperbolic sine of an expression, vector, matrix, or numberACOSH
: Calculate the inverse hyperbolic cosine of an expression, vector, matrix, or numberSEC
: Calculate the secant of an expression, vector, matrix, or numberSECH
: Calculate the hyperbolic secant of an expression, vector, matrix, or numberCSC
: Calculate the cosecant of an expression, vector, matrix, or numberCSCH
: Calculate the hyperbolic cosecant of an expression, vector, matrix, or numberLOG
: Calculate the natural logarithm of an expression, vector, matrix, or numberABS
: Calculate the absolute value of an expression, vector, matrix, or numberDETR
: Calculate the determinant of a 2x2 or 3x3 matrixCONJ
: Conjugate a matrixROUND
: Round a number to the nearest whole numberEYE
: Create an identity matrix(a matrix with ones going diagonally and zero everywhere else)EVAL
: Evaluate an expressionPROD
: Product of all elements in an arrayELEMENT
: Get info about an element in the periodic table(by atomic number)MOVIE
: Get info about a movie(the data source I used had not been updated since 2013)INV
: Compute the inverse of a square matrixMXV
: Matrix-vector multiplicationONES
: An NxM matrix of all onesZEROES
: An NxM matrix of all zeroesLTRI
: Isolate the lower triangular portion of a square matrix and set the upper part to zeroesUTRI
: Isolate the upper triangular portion of a square matrix and set the lower part to zeroesFAC
: Factorial of a numberRAT
: Approximate the rational form of a numberDIST
: Find the distance between 2 points in a 2d or 3d planePATH
: Find the distance taken of a path that traverses user-specified points on a 2d or 3d planeTRANS
: Translate a 2d or 3d shapePTOL
: Distance from a point to a lineSYST
: Solve a system of linear equationsDILA
: Dilate a shape about point p by scale factor kHILB
: An NxN Hilbert matrixMAGIC
: Generate NxN magic matricies when N is oddRCOND
: Reciprocal condition number of a matrixFACTOR
: Factor a quadraticRANDM
: Generate an NxM matrix of random integers in a user defined rangeKRON
: Kronecker product of 2 matriciesCOT
: Calculate the cotangent of an expression, vector, matrix, or numberLINSP
: Generate a linearly spaced vectorCSUM
: Cumulative sum of a vectorCPROD
: Cumulative product of a vectorLOG2
: Calculate the base 2 logarithm of an expression, vector, matrix, or numberLOG10
: Calculate the base 10 logarithm of an expression, vector, matrix, or numberATAN2
: Calculate the 4 quadrant arc tangent of an expression, vector, matrix, or numberTRI
: Calculate the angles and sides of a triangle given 3 pointsEPS
: Change the floating point precisionCENTR
: Calculate the centroid of a triangleINTANG
: Calculate the measure of an interior angle in a regular polygonEXPA
: Expand a factored expression
Matrices are written in the following format:
[1, 2, 3;4, 5, 6]
The comma separates elements in the matrix, and the semicolon seperates rows. Matrix elements can be imaginary, complex, or real numbers. They can also be expressions, which will be simplified at runtime.
Similar to a calculator, we provide the constants ANS and ANS2. ANS stores the result of all mathematical operations, and ANS2 stores secondary answers(such as when solving a quadratic or system of equations). Just make your input to a command ANS or ANS2 to include the result of the previous operation.