Use + for parameters, ordered-list branches, backtick identifiers, and quoted strings with escapes. Add writeback and subtask host libs, optional parameter defaults, narrative-bold comment fix, and defer view execution until preset stdin is submitted. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
357 B
Markdown
33 lines
357 B
Markdown
---
|
|
title: 手工构造的测试样例
|
|
description: AI禁止更改
|
|
> lib/math.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
`f` =
|
|
$$
|
|
x^2 + 2
|
|
$$
|
|
|
|
`f` =
|
|
$$
|
|
x^2 - 2
|
|
$$
|
|
|
|
*`ty` = > type `f` *
|
|
|
|
> print text=`ty`
|
|
|
|
*`df` = > diff formula=`f` var=x *
|
|
|
|
> print text=`df`
|
|
|
|
*`roots` = > solve formula=`f` var=x *
|
|
|
|
> print text=`roots`
|
|
|
|
*`y` = > eval formula=`f` var=x value=3 *
|
|
|
|
> print text=`y` |