integrate tan(x)ln(x)/(cosh(x)tanh(x)) in matlab

To integrate the function tan(x)ln(x)/(cosh(x)tanh(x)) in matlab, we need to use the symbolic math toolbox. Here is the code to integrate the function:

main.m
syms x;
f = tan(x)*log(x)/(cosh(x)*tanh(x));
int(f,x)
54 chars
4 lines

This will return the antiderivative of the function as an expression in terms of x. You can also use double(int(f,x)) to get a numeric approximation of the integral.

gistlibby LogSnag