Properties
Category
Danish
Similar Topics
Statistics
Comments
19
Participants
4
Subscribers
0
Votes
1
Views
2569
Share
Answered
I have created the attached exercise generator which also evaluates the answers.
Here the students are going to move a parabola so it fits to specific criteria regarding the constants; a, b, c and d.
The problem is that when I press the evaluation button "Evaluer graf" (meaning "Evaluate graph"), the criteria is being updated. And I can't find a way to solve this problem.
I hope someone can help me.
Files:
Skitsering af a...
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
You must change "=" to SetValue[] in your scripts as Chris says.
I downloaded the added file, but the problem you describe doesn't occur to me, the criteria don't change.
But a general advise is to change the many net attributions in both buttons from e.g. <object> = into "SetValue(<object>,<value>)
And of course this is no answer to your specific question but I have used another way to make dragging exercises with parabolas, using two given points: top, a random point (and a third hidden point that's the reflection of the free point). With these two draggable points one can make exercises like yours using the identification method you use to (a, b,... out of the list of coefficients) and drawing parabolas with the top up or down.
Perhaps it's easier to distinguish the different exercises and solutions to start with a variable e.g. k that defines the type of exercise, like a=If(k<3,1,-1) where a is positive for k<3 and negative else. If you work with signs you don't have to work with randoms. The only random is k that controls the type of graph.
Secondly I'd define the evaluating signs for a true of false solution by dragging the graph itself and use the evaluate button just as a boolean show= true or false to show them.
Since a, b... change by dragging you don't need any assignment in the evaluate button any more. Maybe getting these assignments out of the evaluate button is just the solution of the updating problem you mentioned,
It's just a suggestion to simplify.
chris
You must change "=" to SetValue[] in your scripts as Chris says.
Here's an alternative solution, using a minimum on scripting, but working with tests.
A random k defines the conditions for a, b, c and d (from 1 to 20) as teka=If( k...)
So I start with the solution and not with random a, b and c's.
You can draw all kinds of parabolas dragging the two points
The values of a, b, c and d of the drawn parabola are defined as para= If(a...)
Now it's easy to compare teka with para etc and to give feedback using dynamic colors on the texts with the conditions
chris
Hi
When you click"evaluer" button, you should stop move curve
1) duplicate your functions glad and sur ( gladd=glad and surr=sur)
2) in "evaluer" button script :
Hide your curves glad and sur (with VaelgUsynlig command)
Show your duplicate curve gladd or surr (those curves are fixed) with same command
Hide "evaluer" button
3) create an other button "try again"
In this button's script : Hide your answers, hide gladd or surr and show again glad or sur, show again "evaluer" button
Comments have been locked on this page!