'expression : FUNCALL application'
t[0] = ('apply', t[1], tuple(t[2]))
global headers
- if t[1] in ('elog.', 'sqrt.') and "math" not in headers:
+ if t[1] in madmath and "math" not in headers:
headers.append("math")
def p_expression_funcall0(t):
import sys, re
+# These will require the math library.
+# All but tan. are in the manual examples.
+madmath = ('elog.','sqrt.','sin.','cos.','tan.',)
# Map MAD intrinsics to C library functions
madfunc_map = {'elog':'log'}