MATLAB Answers


Need help with the integral

Asked by Erika Plekaviciute on 20 Mar 2019
Latest activity Commented on by Rena Berman on 2 Apr 2019 at 13:12
Hello, how to write a code to find an excat value of this integral?
I really need help with this one! I wrote a code to approximate the value but i can't create a code to find the exact one


You are trying to approximate the integral, not summing up the series.
Erika, it is very poor online etiquette to delete your question after there have been comments and answers posted. This is a disservice to the Answers community.
(Answers Dev) Restored edit

Sign in to comment.

1 Answer

Answer by Torsten
on 21 Mar 2019
Edited by Torsten
on 22 Mar 2019
 Accepted Answer

format long
I = 0.0;
Iexact = 0.904524237900272;
eps = 1e-15;
n = 0;
while abs(I-Iexact) > eps
I = I + (-1)^n/(factorial(2*n)*(4*n+1))
n = n+1;


Sign in to comment.