| sym(‘x’) or syms x |
Creates a symbolic variable ![x x]() |
| sym(1/4) |
Creates symbolic number 1/4 |
| double(1/4) |
Converts symbolic number 1/4 to standard 0.25 |
| subs(f,x,a) |
Substitutes a variable x in with value and finds ![f(x) f(x)]() |
|
x=a
eval(f)
|
Finds value of at by assigning to first. |
| ezplot(f,a,b) |
Plots the symbolic function over the interval ![[a,b] [a,b]]() |
| pretty |
Formats output to look like type-set mathematics |
| simplify |
Performs algebraic and other function simplifications |
| simple |
Tries a number of simplification techniques including trigonometric identities. Running this command twice can further simplify complex expression. |
| collect |
Collects like terms |
| factor |
Attempts to factor the expression |
| expand |
Expands all terms |
| poly2sym |
Converts an array of polynomial coefficients into a symbolic expression with as the variable |
| sym2poly |
Converts symbolic polynomial into its coefficient array |
| diff(f,x) |
Finds 1st derivative of with respect to ![x x]() |
| diff(f,x,n) |
Finds nth derivative of with respect to ![x x]() |
| int(f,x) |
Indefinite integral of ![f(x) f(x)]() |
| int(f,x,a,b) |
Definite integral of with endpoints , ![b b]()
|