Example:: We Know That The Exact Solution Is
Example:: We Know That The Exact Solution Is
Integration
We know that the exact solution is:
A = 0.3350
Students: Try this example
Example: Numerical Integration
We know that the exact solution is:
In MATLAB we have several built-in functions we can use for numerical integration:
clear
clc
close all
x=0:0.1:1;
y=x.^2;
plot(x,y)
𝑦 = 𝑥 - + 2𝑥 + − 𝑥 + 3