integrate tan(x)csch(x)/x^9 from 0.3 to 0.4 in matlab

To integrate tan(x)csch(x)/x^9 over [0.3, 0.4] using numeric approximation in MATLAB, we can use the integral function. The first argument is the function handle to the integrand, the second argument is the lower bound of integration, and the third argument is the upper bound of integration.

Here is the code:

main.m
f = @(x) tan(x).*csch(x)./x.^9;
Q = integral(f, 0.3, 0.4);
59 chars
3 lines

The variable Q will contain the approximate value of the integral.

gistlibby LogSnag