Unwanted update to parameter

Lee Fisher shared this question 3 years ago
Answered

Hi, here's my file:

I've tried out a bunch of different ways to approach this, each time it is working fine on my imac (5.0.536.0-d, 1 May 2019)

However, on line when I enter the first function correctly, it will match the curve as required but then mysteriously updateconstruction just on the parameter 'a' and not on 'd' and so the input is no longer correct.

After the first entry, it seems to work smoothly.

Comments (4)

photo
1

I just made the same applet on my pc, worked fine on the pc but same problem when uploading.

photo
1

Have you deleted that? The link doesn't work for me

photo
1

My apologies - I ended up with a bunch of different versions and deleted the excess, removing the above link in the process.

Here it is https://ggbm.at/mu6gazsu

photo
photo
1

Instead of

d=RandomBetween(-20, 50)
a=RandomElement(alist)

try

d=RandomBetween(-20, 50+0*dummy)
a=RandomElement(alist*(1+0*dummy))

and then you can do this instead of UpdateConstruction()

SetValue(dummy, random())

© 2022 International GeoGebra Institute