Need help with the integral

1 view (last 30 days)
Erika Plekaviciute
Erika Plekaviciute on 20 Mar 2019
Commented: Rena Berman on 2 Apr 2019
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
  8 Comments
James Tursa
James Tursa on 21 Mar 2019
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.
Rena Berman
Rena Berman on 2 Apr 2019
(Answers Dev) Restored edit

Sign in to comment.

Accepted Answer

Torsten
Torsten on 21 Mar 2019
Edited: Torsten on 22 Mar 2019
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;
end
n-1
I

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!