You are on page 1of 7

MYANMAR AEROSPACE ENGINEERING UNIIVERSITY

Department of Electrical Systems and Instrumentation

Code – EI-4001
Title – Symbolic Mathematics (W9)

1
Outline of presentation
 Types of Computer Codes
 Objectives
 Eg & Ex
 Ref

2
Objectives
At the end of this lesson, the student will be able to-
Solve the symbolic expressions
Solve system of equations

3
Creating Symbolic Variables or Funs
syms Ref - 1
Pg – 429
Create symbolic variables and functions
Num – PE12.1

Syntax
syms v1 v2
eg
syms x y z
eq1=x^2+y^2==2

4
Manipulating Sym Exps and Sym Eqns
numden Ref - 1
extract numerator and denominator Pg – 434
Num – PE12.2

Syntax Ref - 1
[N,D]=numden(eq1) Pg – 474
Num – ex12.3
factor
prime factor
Syntax
factor(eq1)

5
Solving Exps and Eqns
solve
Ref - 1 Ref - 1
equations and systems solver Pg – 438 Pg – 443
Syntax Num – eg 12.1 Num – pe 12.5
solve(eq,var)
[x,y,z]=solve(eq1,eq2,eq3) Ref - 1 Ref - 1
Pg – 441 Pg – 444
Eg
Num – pe12.4 Num – eg12.2
syms x y z
eq1=x^2+y^2==1 Ref - 1
solve(eq1,’y’) Pg – 475-477
Num – eg12.9-12.16
subs
symbolic substituions
Syntax
subs(eq,var,val)
Eg
subs(eq1,’x’,2)
6
Ref
1. Title – MATLAB for Engineers
ISBN - 978-0-13-210325-1
2. Title – MATLAB An Introduction with Applications
ISBN - 978-0-470-76785-6
3. Title – MATLAB- A Practical Introduction to Programming
and Problem Solving
ISBN - 978-0-12-804525-1

You might also like