google.com, pub-3534375712831849, DIRECT, f08c47fec0942fa0 MTH643 Assignment 1 Spring 2022 Solution Download Solution with full concept
Latest Updates
Loading...

MTH643 Assignment 1 Spring 2022 Solution Download Solution with full concept








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 ( )   



  1. Solution:




  1. Code:

  2. %Solve the system of linear Equations
    close all
    clear all
    clc
    syms x y z u
    A=[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 =

function_handle with value:

@(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




`



Post a Comment

0 Comments