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));
% 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));
%Method 3 using QUAD function
clc
clear all
F = @(x)3.*x.^6 - 13.*x.^2 +2.*x;
Result = quad(F,-3,2)
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
q3 please using matlab zain Jo. Ø 73 3:45 • nering Q1: a function with the...
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...