##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: August 2016 # Modified: 2016-10-03/23:19-0400 ##+ # # sin.icn, demonstrate the sine function # procedure main() write("sin(r): Domain all real repeating within 0 <= r <= 2pi (in radians), Range: -1 <= x <= 1") every r := 0.0 to &pi * 2 by &pi/4 do { write(left("sin(" || r || ")", 24), " radians = ", sin(r)) } end