Exun.Collect (exun v0.1.0)

Link to this section Summary

Functions

Returns commom base for two trees. Used for collect {:m,:suma}

Change power sign of tree

Change sign of tree

Normalize tree so :mult and :suma are converted to list: {:mult,{:mult,a,b},c} -> {{:m,:mult},[a,b,c]}

Simplify literals, reduce to one number and one unit when possible

Link to this section Functions

Returns commom base for two trees. Used for collect {:m,:suma}

Change power sign of tree

Change sign of tree

Link to this function

get_base(op, lst)

Link to this function

get_coefs(isol)

Link to this function

get_isol(base, lst)

Link to this function

maxbasef(a1, a2)

Normalize tree so :mult and :suma are converted to list: {:mult,{:mult,a,b},c} -> {{:m,:mult},[a,b,c]}

Link to this function

solve_literals(tree)

Simplify literals, reduce to one number and one unit when possible