##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: August 2016 # Modified: 2016-10-03/23:21-0400 ##+ # # tan.icn, demonstrate the the Tangent function # procedure main() write("tan(r): Domain: -2 * &pi <= r <= &pi * 2, Range: all real, imaginary at &pi/2 * i") every r := 0.0 to &pi * 2 by &pi/4 do { write(left("tan(" || r || ")", 24), " radians = ", tan(r)) } end