@@ -13,30 +13,28 @@ read the repository [`README.md`](../README.md).
1313| Goal | Recommended doc |
1414| --- | --- |
1515| Learn package usage quickly | [ ` ../README.md ` ] ( ../README.md ) |
16- | Use parse-and-transform helper methods | This file (Workflow Helpers section) |
16+ | Use free functions for common operations | This file (Free Functions section) |
1717| Understand simplification behavior snapshots | [ ` SIMPLIFY.md ` ] ( ./SIMPLIFY.md ) , [ ` SIMPLIFICATIONS.md ` ] ( ./SIMPLIFICATIONS.md ) |
1818| Review playground sample outcomes | [ ` PLAYGROUND.md ` ] ( ./PLAYGROUND.md ) |
1919| Review internal architecture boundaries | [ ` architecture/README.md ` ] ( ./architecture/README.md ) |
2020
21- ## Workflow Helpers
21+ ## Free Functions
2222
23- High -level workflow entrypoints :
23+ Top -level free functions for common operations — no ` ComputeEngine ` setup required :
2424
25- - ` ce.parseSimplify(latex, options?) `
26- - ` ce.parseEvaluate(latex, options?) `
27- - ` ce.parseNumeric(latex, options?) `
25+ - ` parse(latex) ` — parse a LaTeX string into a ` BoxedExpression `
26+ - ` simplify(latex | expr) ` — simplify a LaTeX string or expression
27+ - ` evaluate(latex | expr) ` — evaluate a LaTeX string or expression
28+ - ` N(latex | expr) ` — compute a numeric approximation
29+ - ` expand(latex | expr) ` — expand products and powers (distributive law)
30+ - ` expandAll(latex | expr) ` — recursively expand all sub-expressions
31+ - ` factor(latex | expr) ` — factor an expression as a product
32+ - ` solve(latex | expr, vars) ` — solve an equation or system for the given variables
33+ - ` compile(latex | expr, options?) ` — compile an expression to JavaScript (or another target)
34+ - ` assign(id, value) ` / ` assign({...}) ` — assign values in the shared engine
2835
29- Policy presets:
30-
31- - Parse policy: ` parseMode: 'strict' | 'permissive' `
32- - Evaluation policy: ` evaluateMode: 'exact' | 'numeric' ` (` parseEvaluate ` )
33- - Simplification policy: ` simplifyMode: 'default' | 'trigonometric' ` (` parseSimplify ` )
34-
35- Option precedence (explicit low-level options win):
36-
37- - ` parse.strict ` overrides ` parseMode `
38- - ` evaluate.numericApproximation ` overrides ` evaluateMode `
39- - ` simplify.strategy ` overrides ` simplifyMode `
36+ These use a shared ` ComputeEngine ` instance created on first call.
37+ Use ` getDefaultEngine() ` to configure it (precision, angular unit, etc.).
4038
4139## Extension Contracts
4240
0 commit comments