##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: August 2016 # Modified: 2016-10-03/22:36-0400 ##+ # # acos.icn, demonstrate the the arc cosine function # procedure main() write("Arc Cosine: Domain -1 <= x <= 1; result in radians") every r := -1.0 to 1.0 by 0.25 do { write(left("acos(" || trim(left(r, 6)) || ")", 12), " = ", acos(r)) } end