Assignment NO.01
Spring 2022
Total Marks: 10
Due Date: June 23, 2022
Instructions:
Write the code of the given problems in Script File and then copy the code on the LMS assignment module directly. Also copy the output of the program.
Question
Solve the system of linear Equations 3 4 5 2 2 3 7 1 6 3 x y z x y z x y z
After getting the solution of above system, use the values of x, y, and z in the following expression and plot the graph over the interval [-5,5]. 2 3 f u xu yu zu ( )
Solution:
Code:
- %Solve the system of linear Equationsclose allclear allclcsyms x y z uA=[3 4 5;2 -3 7;1 -6 1]B=[2;-1;3]C=sym(inv (A));X=(C*B)%After getting the solution of above system, use the values of x, y, and z in%the following expression and plot the graph over the interval [-5,5]f1=@(u) (x*u+y*u.^2+z*u.^3);f2=@(u) ((241/92)*u+(-21/92)*u.^2+(-91/92)*u.^3)ezplot (f2,[-5,5])
Output:
A =
3 4 5
2 -3 7
1 -6 1
B =
2
-1
3
X =
241/92
-21/92
-91/92
f2 =
@(u)((241/92)*u+(-21/92)*u.^2+(-91/92)*u.^3)
Graph:
Get Paid Services (Word Ready File)
Want more info, please press the below button
`
0 Comments
Please write us. Please write in detail that how may we help you