30 lines
351 B
Markdown
30 lines
351 B
Markdown
---
|
|
markup: occlusion
|
|
title: math formula pipeline
|
|
import:
|
|
math: lib/math.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
`f` =
|
|
$$
|
|
x^2 - 2
|
|
$$
|
|
|
|
**ty = > type `f`**
|
|
|
|
> print text=`ty`
|
|
|
|
**df = > math.diff formula=`f` var="x"**
|
|
|
|
> print text=`df`
|
|
|
|
**roots = > math.solve formula=`f` var="x"**
|
|
|
|
> print text=`roots`
|
|
|
|
**y = > math.eval formula=`f` var="x" value=3**
|
|
|
|
> print text=`y`
|