# arctan(tan(pi/2)) =pi/2 ?

Sage evaluates `tan(pi/2)`

to unsigned infinity which is true, but I want the above expression to work. Any way?

When I apply `arctan(tan(pi/2))`

it gives error. Shouldn't it return `pi/2`

.