%hameed Ur Rehman %MSC 4 %assingment 4 %question 1
%hameed Ur Rehman %MSC 4 %assingment 4 %question 1
%msc 4
%assingment 4
%question 1
clc
clear all
close all
syms x
f=(cos(x)^2*x+1)
y=int(f,0,pi)
pretty(y)
double(y)
f =
x*cos(x)^2 + 1
y =
(pi*(pi + 4))/4
pi (pi + 4)
-----------
4
ans =
5.6090