Static
convertThe expression to simplify.
Simplified expression as C code
Static
simplifyAttempts to simplify a mathematical expression.
The expression to simplify.
Optional
constants: Record<string, string | number>An object that maps variable names to constants.
Simplified expression
Static
simplifyAttempts to simplify a mathematical expression, returning a string that represents C code.
The expression to simplify.
Optional
constants: Record<string, string | number>An object that maps variable names to constants.
Simplified expression as C code
Attempts to convert a mathematical expression to valid C code (e.g., converts ^ to a call to pow()).