lecturenotes11_14 - Matlab Symbolic Mathematics November...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Matlab Symbolic Mathematics November 14 , 2008
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Symbolic Toolbox Linear Algebraic computations Derivatives Integrals Laplace and Fourier Tranforms
Background image of page 2
Creating Symbolic Variables Matlab needs to know you are entering a symbolic variable: >> x=sym(‘x’) or >> syms x >> syms x y z you can then create new symbolic variables from existing ones.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Creating new symbolic variables >> y=2*(x+3)^2/(x^2+6*x+9) now, y is also a symbolic variable and can be combined again… >> z=x*y z = 2*x*(x+3)^2/(x^2+6*x+9) >> D=sym(‘A=B+C+D’)
Background image of page 4
Creating Symbolic Equations >> D=sym(‘A+B+C’) or >> eqn=sym(‘A=B+C+D’) Note that there is a new variable type here: “sym” (see the workspace listing) The “poly” command is also useful. Consider, >>a= [1,4,-3]; >>b=poly2sym(a) b= x^2+*x-3
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Symbolic Manipulation Matlab has a number of commands designed specifically for manipulating symbolic expressions: numden , extracts the numerator and denominator expand , expands an expression factor , factors an expression collect , collects like terms in an expression See Table on Page 412 of text.
Background image of page 6
solve function can be used to find the roots of an equation,
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 21

lecturenotes11_14 - Matlab Symbolic Mathematics November...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online