Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,11 @@
| f(x) has a local minimum at x = 0

You generate:
Thought: I need to create an expression for the equation f(x) = 6x^2 + 4. In order to graph the local minimum, I need to solve for the y-value at x = 0.
Thought: I need to create an expression for the equation f(x) = 6x^2 + 4 and graph the local minimum.

f(0) = 6(0)^2 + 4 = 0 + 4 = 4

The local minimum occurs at (0, 4).
Desmos expressions: [
{"action": "setExpression", "expression": {"type":"expression","id":"function","latex":"f(x) = 6x^2 + 4","hidden":false}},
{"action": "setExpression", "expression": {"type":"expression","id":"local_minimum","latex":"(0,4)","hidden":false}}
{"action": "setExpression", "expression": {"type":"expression","id":"local_minimum","latex":"(0,f(0))","hidden":false}}
]

For example, if you are asked:
Expand Down Expand Up @@ -191,7 +188,7 @@
'''

DESMOS_START_PROMPT = '''
If you're asked to transform an existing expression, remove the old expression using the removeExpression action and then add the new expression using the setExpression action. Do this only if you are explicitly asked to modify the existing expression (for example by shifting, rotating, scaling etc.) If a new expression is asked to be graphed, do not remove the existing expression.
If you're asked to transform an existing expression, update it with the value of the expression by appying setExpression to the existing expression. Do this only if you are explicitly asked to modify the existing expression (for example by shifting, rotating, scaling etc.) If a new expression is asked to be graphed, do not remove the existing expression.
Remember, do not use the symbols x, y or r for parameters.
Also remember, use the symbols x and y for variables, since Desmos only supports implicit equations of x and y.
And, to draw a line, simplify the equation.
Expand Down