Matlab: Make A Program To Calculate The Value of Epsilon in Two Different Ways
Matlab: Make A Program To Calculate The Value of Epsilon in Two Different Ways
Matlab: Make A Program To Calculate The Value of Epsilon in Two Different Ways
EBS=EBS*2;
break
end
end
disp(EBS)
num=0; EBS=1;
while (EBS+1)>1
EBS=EBS/2;
num=num+1;
end
EBS=EBS*2;
disp(num);
disp(EBS);
Ahmed=(r1+r2+r3+r4)/4;
end
end
for i=1:4
x_f=(5/9)*(x_c(i))+32;
disp('the temperature in fehrenhite is: ');
disp(x_f);
end
Student grades :
percent=input('the degree out of 100 is: ');
for n =1:100
marks=input('the mark out of 100 equals = ');
end
end
sum=sum+n(i);
end
disp(sum)
sum=0;sum1=0;
for i=1:x
sum=sum+(i^2);
sum1=sum1+i;
end
tmin=0:n:tm;
t=60*(0:n:tm);
g=9.81;
s=v*(t)-(.5)*(g)*(t.^2);
m=(x+y+z)/3;
end
if totaldays > 30
totaldays = totaldays - 30;
totalmonths = totalmonths + 1;
end
if totalmonths > 12;
totalmonths = totalmonths - 12;
totalyears = totalyears + 1;
end
disp(totaldays);
disp(totalmonths);
disp(totalyears);
a=1;
for i=n:-1:1
a=a*i;
end
disp('the result is: ')
disp(a)
sum=0;
for z = 1:n
sum=sum + a + z*d-d ;
end
disp('the sum is: ')
disp(sum)
end