Question

q3 please using matlab

zain Jo. Ø 73 3:45 • nering Q1: a function with the name Area Circumference to calculate the area and circumference tput) of

0 0
Add a comment Improve this question Transcribed image text
Answer #1

QUESTION 3

% Method 1 using int function
clc
clear all
syms x
f = 3*x^6 - 13*x^2 +2*x;
a = int(f, -3, 2);
disp(double(a));

Exam2_001. m x coonWN Editor - Users\muhsin Exam2_001.m +2 ss. mx GetReParam.m x PrintRe. mx Method 1 using int function clc

% Method 2 using Octave equivalent
clc
clear all
syms x
c = [3 0 0 0 -13 2 0]; %Coefficients based on the equation
integral = polyint(c);
b = polyval(integral, 2) - polyval(integral, -3); %limits given to calculate integral
disp(double(b));

> co to UwN Editor - C:\Users\muhsin\Exam2_001.m 2 ss. mx GetReParam.m x PrintRe. mx Exam2_001. m x anonymous_fn. m x PrintRe


%Method 3 using QUAD function
clc
clear all
F = @(x)3.*x.^6 - 13.*x.^2 +2.*x;
Result = quad(F,-3,2)

+2 ss.m x GetReParam.m x PrintRe.m x Exam2_001. m x anonymous_fn.m OU WNP $Method 3 using QUAD function clc clear ali F = @(x

Double differentiation at x=4:

syms x
f = 3*x^6 - 13*x^2 +2*x;%Function
y=diff(f,2); %Second differenciation
Result=vpa(subs(y,x,4))%Getting value at 4

Jouw NP Editor - C:\Users\muhsın ditter.m +2 ss. mx GetReParam. mx PrintRe.m xExam2_001. mx anonymous_fn. mx PrintReVar. mx U

Add a comment
Know the answer?
Add Answer to:
q3 please using matlab zain Jo. Ø 73 3:45 • nering Q1: a function with the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • q2 please find x1.x2.x3.x4 using matlab &73 3:45 zain JO 4ll ring Q1 a function with...

    q2 please find x1.x2.x3.x4 using matlab &73 3:45 zain JO 4ll ring Q1 a function with the name "Area Circumference" to calculate the area and circumference tput) of a rectangle. Define the inputs of this function as required. (6marks) rite a manuscript to solve the following system of equations based on [A][x] =[b)]. Find x1, x2, . (5 Marks) 2x1+ x2-3 +2x4 4 x1+5x2-3ax3 +604 -2x1 +5a2-2r3 +6x4= 4 4x1+11x2-4x3+8x4 = 5 Q3: Having f(x) = 3x6-13x2 + 2x, Integratef...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT