I am using pi
as part of a Prolog program I am writing. Here is my only mention of pi
in the whole program:
ArcDistance is ((Degree/ 360) * Diameter * pi).
However, when I run the program, I get the following error:
uncaught exception: error(type_error(evaluable,pi/0),(is)/2)
Am I doing anything wrong in terms of calling/using pi
? Thanks for the help!