blob: 8bc410036db956a586ea82e55b65c39e2abc6942 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Clearing console
clc
clear
//Intializing variables
x0 = -1
x1 = 1
//Integrating given function
f = [integrate('r^2 -3*r+7','r',x0,x1)]
printf('\nResults')
printf('\nIntegration of given function f =%f',f)
|