From 5ed028eb834c2a48acd5acd5012924247565b83f Mon Sep 17 00:00:00 2001 From: arya-merlyn <137196448+arya-merlyn@users.noreply.github.com> Date: Thu, 2 May 2024 14:24:04 -0400 Subject: [PATCH 1/3] fixed issue with deleting vs updating --- src/prompts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prompts.py b/src/prompts.py index 2df5f96..664bdbb 100644 --- a/src/prompts.py +++ b/src/prompts.py @@ -191,7 +191,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 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. From a2bf6ac2387881d014053c4e6155be4faa887d6e Mon Sep 17 00:00:00 2001 From: arya-merlyn <137196448+arya-merlyn@users.noreply.github.com> Date: Thu, 2 May 2024 14:28:40 -0400 Subject: [PATCH 2/3] typo --- src/prompts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prompts.py b/src/prompts.py index 664bdbb..3723b45 100644 --- a/src/prompts.py +++ b/src/prompts.py @@ -191,7 +191,7 @@ ''' DESMOS_START_PROMPT = ''' -If you're asked to transform an existing expression, update it 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. +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. From 94b9f4b9722c2eec5a23cdecae08d47c71adf812 Mon Sep 17 00:00:00 2001 From: arya-merlyn <137196448+arya-merlyn@users.noreply.github.com> Date: Tue, 14 May 2024 09:23:26 -0400 Subject: [PATCH 3/3] Update prompts.py fixes f(x) vs made-up f(x) issue --- src/prompts.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/prompts.py b/src/prompts.py index 3723b45..afc5ff7 100644 --- a/src/prompts.py +++ b/src/prompts.py @@ -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: