Code for a simpson's rule approximation of the integral of sin(x)/x
I'm trying to do a simpson's approximation for the integral of sin(x)/x. This is what I have so far, for some reason the answer ...
6 years ago | 1 answer | 0
displaying only even values in a for loop?
How do I modify the following for loop with an if statement so that it only displays even values of m for m=1:100 num = ...
6 years ago | 2 answers | 0