Uso do calculo simbólico na Matlab
Ir para navegação
Ir para pesquisar
Funções importantes para o uso do cálculo simbólico
- vpa(x) Variable-precision arithmetic: evaluate each element of the symbolic input x to at least d significant digits, where d is the value of the digits function. The default value of digits is 32.
- digits(d) Change variable precision used: sets the precision used by vpa to d significant decimal digits. The default is 32 digits.
- double(s) Convert symbolic values to MATLAB double precision: converts the symbolic value s to double precision. Converting symbolic values to double precision is useful when a MATLAB® function does not accept symbolic values.
- x = sym('x') creates symbolic variable x
- syms x Create symbolic variables and functions: Create symbolic variable x.
- S = solve(eqn,var) Equations and systems solver:
- g = matlabFunction(f) Convert symbolic expression to function handle or file.
- simplify(S) Algebraic simplification
- expand(S) Symbolic expansion of polynomials and elementary functions
- F = factor(x) Factorization
- numden(A) Extract numerator and denominator
- partfrac(expr,var) Partial fraction decomposition
- latex(S) LaTeX form of symbolic expression
Algumas dicas sobre o cálculo simbólico
- Choose Symbolic or Numeric Arithmetic
- Perform Symbolic Computations
- Create Symbolic Numbers, Variables, and Expressions
- Create Symbolic Functions
syms x y
f = sin(x)^2 + cos(y)^2;
diff(f)
ans = 2*cos(x)*sin(x)