Lab 3: MATLAB Symbolic Math Toolbox

 

MATLAB code 

Lab 3: MATLAB Symbolic Math Toolbox
 

Introduction
 

The following lab is performed in MATLAB and deals with how to solve problems with ease.
Specifically, this lab explores the symbolic math toolbox within MATLAB. The Symbolic Math
Toolbox in MATLAB is a powerful computational tool that provides functionality for performing
symbolic mathematics and algebraic computations. It enables users to work with symbolic
expressions, equations, and variables, allowing for exact mathematical operations and symbolic
manipulation. With this toolbox, you can perform tasks such as solving equations symbolically,
differentiating and integrating functions, simplifying algebraic expressions, and generating
symbolic results for mathematical problems, making it a valuable resource where precision and
symbolic representation are essential.
 

Procedures
 

4. Find the two solutions of the second order equation.
    · 1
    · 6
 

5. Solve the system of equations.
    · 51/16
    · 3/2
    · 39/16
 

6. Find the centers of the circles.
    · (5, -4.916079783099616042567328291561617048415501230794340322879719669)
    · (5, 4.916079783099616042567328291561617048415501230794340322879719669)
 

7. Solve the equation using both methods in example 2.3. Turn in code for both approaches but
put the answer here once.
    · -2.3081709562982061315028462760179
    · 2.3081709562982061315028462760179


Figure 1: plot of cos(x)=x^2 -6

 

8. How many solutions does the equation have? What are the first three solutions?
    · Infinitely many solutions
    · (pi/4,0.707)
    · (5pi/4,-0.707
    · (9pi/4,0.707)
 

9. Write an equation of the form, plot both functions on the same figure, and solve them using
both methods described in example 2.3. Include code for both approaches. (Either insert the
figure into this word document or submit it as a separate file on Canvas.)
    · (-1.736,-.986)
    · (2.194,0.812)
    · Using following equation: sin(x)=(x^2)-4

 

Figure 2: plot of sin(x)=x^2 -4

 

Conclusions:


I enjoyed the matlab practice as always because matlab is a valuable resource for electrical engineers. I
did struggle with 4.3 which was unfortunate as I do not believe I learned much from this. Overall, the
resources provided were helpful to an extent until we were expected to solve certain problems on our
own. I am not familiar with my past learning to effectively find the center of two circles given their
intersection points and radius. For future reference I believe students should be given more guidance on
this step in particular as the other steps were rather simple. This assignment did cause confusion and
stress.

Comments

Popular Posts