Properties
Category
English
Similar Topics
Statistics
Comments
10
Participants
4
Subscribers
4
Votes
1
Views
424
Share
Is there a way to generate function prescription programmatically
Answered
I need to create long function prescriptions and plot them based on parameters.
For example for a and b I want to plot three functions abs(xa), abs(xb) and abs(xa)+abs(xb)
I don't want to enter all this by hand and generate much longer.
How can I utilize JavaScript for this?
 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
© 2021 International GeoGebra Institute
https://wiki.geogebra.org/e...
it is clear to me what do you exactly want
set 2 sliders a,b
and manipulate one function to a,b
or def a function
f(x,a,b)
and set multiple functions
f12(x)=f(x,1,2), ....
or what else?
this?
Thank you all for suggestions. It didn't occur to me I could use GeoGebra API, without actually embedding it, to my needs in browser JavaScript console. However the solution I was looking for was to define somewhere a script that can be run inside the app itself and not externally by pasting it into browser console and executing it.
Something on the lines of (I am speculating here):
Hm,
you can use GeoGebraScript, Execute()Commnd in an updateEvent of an object
or simply some thing like
Sequence(abs(x i), i, 1, 10)
generates a list
Or you can update existing function by ParseToFunction( <Function>, <String> )
BTW: Javascript that can be run inside the app itself  or what do mean with "not externally by pasting it into browser console and executing it"? In this app https://www.geogebra.org/m/gwm7fbzu javascript cipher text. In this App https://www.geogebra.org/m/weyhrbrq some examples 4 GeoGebra Script...
Or
Comments have been locked on this page!