Determine the value of M when:
M = (32+1)*(32-1)-1+(52+1)*(52-1)-1+(72+1)*(72-1)-1+......+ (9992
+1)*(9992-1)-1
M=sym(0);
for b=sym(3):2:999;
M=M+(b^2+1)/(b^2-1);
end
disp(M)
disp(eval(M))
finds the rational fraction and its decimal equivalent
499499/1000
499.499
|
Posted by Charlie
on 2023-08-07 12:27:14 |