Contents
close all clc clear all %
Questuion 1
syms c % C as a constant A = [ c -5 -2; 6 3 c; 7 3 -5 ]; B = [11; 13; 13]; X = linsolve(A,B) % Solution of system 3 % %%Question 2 and Question 3 for c = -10:0.5:10 % Step value of c having 0.5 from -10 to 10 A = [ c -5 -2; 6 3 c; 7 3 -5 ]; B = [11; 13; 13]; X = linsolve(A,B) figure(1) plot(X(1),c,'.'); hold on figure(2) plot(X(2),c,'.'); hold on figure(3) plot(X(3),c,'.'); hold on end
X = (98*(c + 5))/(3*c^2 + 50*c + 144) -(- 13*c^2 + 12*c + 356)/(3*c^2 + 50*c + 144) 98/(3*c^2 + 50*c + 144) X = 8.7500 -19.0000 -1.7500 X = 7.3195 -15.4564 -1.6266 X = 6.2222 -12.7778 -1.5556 X = 5.3385 -10.6654 -1.5253 X = 4.5937 -8.9375 -1.5313 X = 3.9357 -7.4739 -1.5743 X = 3.3220 -6.1864 -1.6610 X = 2.7097 -5.0000 -1.8065 X = 2.0417 -3.8333 -2.0417 X = 1.2174 -2.5652 -2.4348 X = -0.0000 -0.9355 -3.1613 X = -2.4198 1.9136 -4.8395 X = -12.2500 12.5000 -12.2500 X = 25.5652 -26.9130 17.0435 X = 9.3333 -9.6667 4.6667 X = 6.4901 -6.4834 2.5960 X = 5.2500 -5.0000 1.7500 X = 4.5281 -4.0759 1.2937 X = 4.0412 -3.4124 1.0103 X = 3.6827 -2.8956 0.8184 X = 3.4028 -2.4722 0.6806 X = 3.1753 -2.1134 0.5773 X = 2.9848 -1.8020 0.4975 X = 2.8217 -1.5271 0.4341 X = 2.6797 -1.2813 0.3828 X = 2.5543 -1.0591 0.3406 X = 2.4424 -0.8567 0.3053 X = 2.3415 -0.6711 0.2755 X = 2.2500 -0.5000 0.2500 X = 2.1664 -0.3415 0.2280 X = 2.0896 -0.1940 0.2090 X = 2.0186 -0.0564 0.1923 X = 1.9529 0.0725 0.1775 X = 1.8917 0.1935 0.1645 X = 1.8346 0.3073 0.1529 X = 1.7812 0.4148 0.1425 X = 1.7310 0.5163 0.1332 X = 1.6837 0.6125 0.1247 X = 1.6392 0.7037 0.1171 X = 1.5971 0.7904 0.1101 X = 1.5572 0.8729 0.1038
figure 1
X axis - c
Y axis - Value of x
figure 2
X axis - c
Y axis - Value of y
figure 3
X axis - c
Y axis - Value of z
From all the graph we can say that about c = - 3.5 the graph pattern start differentiating.
PROBLEM 3. points 30 Use MATL.AB You are given the following cquations of r, y, z as functions of...
(1) (2) (3) 5. (20 points) a) Solve the following system of equation for symbolic 2, 4, 2 3x - 2y +52 = 12 2-32 + y = -1 2-y-* = 4 b) State the code for solving the following ordinary differential equation 204 - 3y = t?, y(0) = 0,//(0) = 1. ata c) Plot the following symbolic functions a) f(x) = for symbolic r in (-2,2) interval. b) f(x,y) = sin(x2+x2) in (-5,5). - 2 at (4)
(Matlab) Use Matlab's built-in Runge-Kutta function ode45 to solve the problem 1010y -xz +28x - y 3 on the interval t є [0, 100 with initial condition (z(0), y(0),z(0)) = (1,1,25), and plot the trajectory of the solution ((t), (t)) forte [0, 100 (Matlab) Use Matlab's built-in Runge-Kutta function ode45 to solve the problem 1010y -xz +28x - y 3 on the interval t є [0, 100 with initial condition (z(0), y(0),z(0)) = (1,1,25), and plot the trajectory of the...
please show work Solve the following system. Х 0 0 +y + z = 3y + 122 - 2y - 8z 5y + 20z 0 0 Select the correct choice below and, if necessary, fill in the answer box(es) to complete your choice. A. The system has an infinite number of solutions characterized by x= y = z=r. B. The system has an infinite number of solutions characterized by x= , y=r, z=s. O C. The system has a unique...
How do you do this on Matlab? Question 3 Problem 3 (25) G a function f(r) coatmtous at X = 25 And the pos iive root. Manually. by hatd, conduct the Secant method using the function in prder to successfully fill in thie teble. Sliow hand caleudated solutions fil in the able, and use tlirce decimals Hegarding MATLAB, plot the function and solve for the roct using a built-in function. (t)= 0.2(r-5)-Olx+10 new old 41 1425 0319 1775 1.3 2010...
Problem 3. Solve the value of x, y, and z of the given system of equations using matrix algebra. (1) 6x + 8y -7z=-145 9x-3y -62 = -180 -5x + 12y + 4z = 98
write c++ to solve this linear system. Given 2x+4y-z 2 -2x -3y +7z 10 Write a program to solve the linear system above using Gauss- Elimination. Question2 Let f(x) = x3-6x2 + 11x-6, Write a program to i) Check whether the root exist in the interval: a) .5, 5.0] b) 2.5, 4.0] ii Based on interval found in 4(i), find the root using Bisection method. Do your calculation in 4 decimal points and 0.0001. Programming language: C or C++ Given...
Problem 8 [5 points The following system of ODEs, formulated by Lorenz, represents are crude model of atmospheric circulation: Set σ-10, b = 8/3, r 28, take initial values yi (0) 15, 32(0) 15, and y3(0) 36, and integrate this ODE from t 0 to t 100 using Matlab's ode45. Plot each component of the solution as a function of t. Plot also (yi,2), (Ji. U3), and (2,y3) in separate plots). Change the initial values by a tiny amount (e.g....
Question: Use MATLAB to solve it,uing MATLAB built in functions is not allowed.Write a MATLAB algorithm that does these 3. Use any method you want and compute the following double integral: edrdy (a) (12 points) The domain of integral 2 is 0 SE1, 0y (b) (8 points) S2 is the first quadrant in the unit circle: z > 0, y > 0,T2 + y2 < 1. HINT: to calculate double integral, you basically are doing a nested numerical integral. Find...
e) The temparature at the point y,z) is given by T(x,y,z) x2yz °C Use the method of tagrane multipliers to find the hottest and coldest points on the surface of the sphere x2y2z2 12. What are the hottest and coldest temperatures on the surface of the sphere in degrees Celsius? Question 2. (6 marks+ 4 marks+ 2 marks+3 marks+5 marks 20 marks) a) Find all solutions of the system of linear equation Ax = b where 2 3 12 5...
3. (20 points) Denote u(ar, y) the steady-state temperature in a rectangle area 0 z 10, 0yS 1. Find the temperature in the rectangle if the temperature on the up side is kept at 0°, the lower side at 10° while the temperature on the left side is S0)= sin(y) and the right side is insulated. Answer the following questions. (a) (10 points) Write the Dirichlet problem including the Laplace's equation in two dimensions and the boundary conditions. (b) (10...