In addition to standard math functions, CLIPS also provides a large number of scientific and trigonometric math functions for more extensive computations. Although included in the generic version of CLIPS, if an expert system does not need these capabilities, these functions may be excluded from the executable element of CLIPS to provide more memory (see the Advanced Programming Guide).
These mathematical functions use the C library math.h.
If the userís system does not support this library, the
user needs to make some adjustments to math.c. The systemdependent
math functions are called from CosFunction, SinFunction,
etc. The user must change each of these to call the appropriate
functions from his/her system. The user also must make sure that
the functions CosFunction, SinFunction, etc., always
return doubleprecision floatingpoint numbers. To link these
functions, most compilers provide a separate math library that
must be included during linking.
12.5.2.1 Trigonometric Functions
12.5.2.2 Convert From Degrees to Grads
12.5.2.3 Convert From Degrees to Radians
12.5.2.4 Convert From Grads to Degrees
12.5.2.5 Convert From Radians to Degrees
12.5.2.6 Return the Value of ¹
12.5.2.7 Square Root
12.5.2.8 Power
12.5.2.9 Exponential
12.5.2.10 Logarithm
12.5.2.11 Logarithm Base 10
12.5.2.12 Round
12.5.2.13 Modulus