Does MATLAB have inverse tangent integral TI2(z)?
Show older comments
In Mathematica, one calls the function using :
(PolyLog[2, I z] - PolyLog[2, -I z])/(2 I)
How dl I implement this in matlab, is there a built in function for the tangent integral?
Answers (2)
Star Strider
on 3 Oct 2022
0 votes
The polylog function exists in the Symbolic Math Toolbox. It supports symbolic and numeric (double) arguments.
format long
x = 0.5;
Ti2 = 1i*( -dilog(1-1i*x) + 0.25*dilog(1+x.^2) )
Ti2_compare = integral(@(x)atan(x)./x,0,x)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!