API Reference exun v0.4.5
Modules
Symbolic Math for Elixir, with Units support
Collect Math expression, try to simplify
Check cyclic definitions in context
Derivate expressions
Compares two expressions
Function management. @base and @compound are the definitions of external functions.
Try to integrate function
Isolation module. Try to isolate an ast from other AST.
Exun is intense in tuple management and recursion. This module is a try to buil tuple's element in parallel using Task. The macro mp is responsible for that.
Simple transformation of a tree
Manage symbolic matrices, simple operations as add, rest, mult and divi; and calculate eigenvalues; could be interesting for solve n-polynomies. Matrix is a List of lists; each sublist is a row because is best reflected when we inspect a list of list in its simples form. But for better process and memory usage whe will use a tuple {{:mtype,row,cols},[[],[],[]]} so the first tuple in tuple describes the nature of the matrix: {{:unity,4,4},nil} is a 4x4 matrix all zeros except de main diagonal that holds 1's. {{:polynom,5,5},[c4,c3,c2,c1,c0]} is a matrix 5x5 that reflects polinomial coefficients {{:raw,m,n},[[],[],[]]} Normal matrix, all elements in sublists.
Match ASTs. Functions umatch and match try to match patter with a real expression. Rules for matching, by example
Simplify expressions
Parses a tree and transform to string in User Readable form
Handle Units, converts, sum, multiply, transform to SI and factorize