Did you mean: limit (tan (x ),x ,pi /2 ,div ="-")?

limit (tan (x),x,pi /2,dir ="-")

minpoly(oo)

Want to compute something more complicated? Try a full Python/SymPy console at SymPy Live.