A function in the expr command that computes the tangent of an angle. The angle is expressed in radians.
2007-11-01 Harm Olthof: I was just wondering how to get tan return +/-Inf (and what choice it would make for the sign).
59 % expr tan(acos(0)) 16331778728383844.0 60 % expr tan(acos(0.0)) 16331778728383844.0 61 % set pi 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117068 62 % expr tan(double($pi/2.0)) 16331778728383844.0
EKB What version of Tcl are you using? (By the way, this should probably go to comp.lang.tcl instead of here.)