Functions for Solving and Optimization

These functions solve linear and nonlinear equations and systems of equations. The Find, Maximize, Minimize, and Minerr functions are used primarily within solve blocks, allowing for natural notation. The command line functions can be used within programs for iterative calculations or on their own in a single expression.

Root Finding

polyroots Solves for the roots of the polynomial whose coefficients are in v.

root Solves one equation in one unknown.

Systems of Linear and Nonlinear Equations

lsolve Solves a linear system of equations set in matrix notation.

Find Solves linear or nonlinear systems of equations.

Maximize, Minimize Maximizes or minimizes the value of a function, including linear programming.

Minerr Minimizes the least-squares error when solving a system of equations, solving the system approximately.

Differential Equation Solving

See the section on differential equation solvers available from the command line and from Solve Blocks.