Menu

Matlab Exercise Attached As A Picture Ne Way To Estimate The Value Of Definite Integrals In

0 Comment

clc;
clear all;
r1=input(‘Radius of the circle: ‘);
n=input(‘Enter Number of points: ‘);
x=2*r1*rand(n,1);
y=2*r1*rand(n,1);
figure(‘color’,’white’);
hold all
axis square;
x1=r1;
y1=r1; %cirle has…Statistics and Probability