Exun.Math (exun v0.5.0)
Simple transformation of a tree
Link to this section Summary
Functions
Change power sign of AST (expon * -1 or 1/tree)
Change sign of AST
For convenience, creates ast {{:m,:mult},[a,b^-1]}
For convenience, creates ast {:elev,a,b}
Try to keep at least 3 decimals of precission
For convenience, creates ast {{:m,:mult},[a,b]}
For convenience, creates ast {{:m,:mult},[a,-b]}
For convenience, creates ast {{:m,:suma},[a,b]}
Link to this section Functions
Link to this function
chpow(s)
Change power sign of AST (expon * -1 or 1/tree)
Link to this function
chsign(ast)
Change sign of AST
Link to this function
divi(a, b)
For convenience, creates ast {{:m,:mult},[a,b^-1]}
Link to this function
elev(a, b)
For convenience, creates ast {:elev,a,b}
Link to this function
exp(a, b)
Link to this function
ln(a)
Link to this function
minus(a)
Link to this function
mknum(n, d)
Try to keep at least 3 decimals of precission
Link to this function
mult(a, b)
For convenience, creates ast {{:m,:mult},[a,b]}
Link to this function
rest(a, b)
For convenience, creates ast {{:m,:mult},[a,-b]}
Link to this function
signof(arg)
Link to this function
suma(a, b)
For convenience, creates ast {{:m,:suma},[a,b]}