Vector Parser |
- Data types for: numbers, complex numbers, strings,
points, vectors, matrices, intervals, unions, lists.
- Extensible: add/remove types, operations, functions, etc.
- Can handle
sin^2 x
as(sin x)^2
- Can handle
sin 3x
assin(3x)
rather than(sin 3)x
- Formula object class, so can do formal algebra
- Simplification:
-1x2 + 0 x + 3 ==> 3 - x2
- Evaluation:
$f = Formula("1+3x");
$fa = $f->eval(x => $a);
- Format for TeX, answer checker, etc:
$f->TeX
,$f->string
, etc.
- Choose correct answer checker automatically:
ANS($f->cmp)