Substituting in Real values in construction protocol

lacherdaniel shared this question 2 months ago
Needs Answer

Ive been working with geogebra geometry and geogebra classic. I like the ability to parameterize a few variables and generate a figure based on a "Construction Protocol". In the classic theres a way to export the construction protocol but no way to import. What Id like to be able to do is take an existing construction. and substitute a few real values in for the parameters programmatically so i can generate many different but geometrically similar figures. does anyone have any ideas on how to do this.

Comments (4)

photo
1

This is probably what you want: https://wiki.geogebra.org/e...


We can help better if you post a concrete example

photo
1

Thanks for the reply Michael sorry for the late response. Lets say i define a circle in the figure attached. I want to be able to generate many similar circles with different values for A, B, C. I want to do so programmatically so that I can define the figure once but export many different images of figures with initial values A, B, C. the values for A, B, C will be generated by some python code. So if I was able to take an exported Construction Protocol edit it and import it with different values for A, B, C that would work for my purposes. or if there was any other way of substituting values in for A,B,C19967ca25ae38d8e0a145971eb320271

photo
1

you can create the slider like random and press F9 each time

photo
1

If you can't use mathmagic's suggestion then you can use JavaScript instead of Python https://wiki.geogebra.org/e...

photo
© 2020 International GeoGebra Institute