Info
This question is closed. Reopen it to edit or answer.
how to change the code to make work the solution for this integral
1 view (last 30 days)
Show older comments
can you help me solve this integral with simpson ?
7 Comments
Walter Roberson
on 18 Jun 2019
>> syms a b z positive
>> int(z^-2,z,a,b)
ans =
1/a - 1/b
And in the limit, 1/infinity is 0, so you get 1 divided by the starting value as the result.
Consider that diff(z^-1,z) is -1*z^-2 so integral of z^-2 is -z^-1
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!