Integration of tan(x)^2 gives tan(x)-x+pi*FLOOR(1/2+x/pi)
Why do I get FLOOR(...) and not a simple constant ?
Perhaps the answer on the 50G:
tan(x)-atan(tan(x))
is more informative?
Is there a switch/flag in the Prime that would produce the above forms of the integral.
The differential of both forms is tan(x)^2, so both are at least recognized.
No, atan(tan(x)) is always rewritten with a floor.