custom tool not updated

Angsüsser shared this problem 5 years ago

I have a slider "a", a function f(x)=x^2 and a function g_a(x)=f(x+a);

Now I create a list with

L_1=Sequence(NIntegral(g_a,0,i),i,0,10) - if I move the slider L_1 is updated!

Now I create a custom tool with

Input: g_a Name:getIntList Output:List L_1

If I use it now with L_2=getIntList(g_a) - L_2 is created; if the slider is moved L_2 get NOT updated! Is there a way to do this?

Comments (1)


What I found out in the meantime:

g_a(x) is dependent from f(x) and slider a;

so if you create a custom tool with Input: Function f and Number a instead of g_a alone the updating mechanism

of List "getListInt(f,a)" is working, for example getListInt(x^3,a) works (if slider a is existing).

The graph of x^3 will be drawn, but not the area-bars of the integrals as will be done in the template for the custom tool - but that's not real limitation.

The problem can be tagged as answered - BUT in the documentation for "custom tools" a note for such dependent objects should be added!

© 2023 International GeoGebra Institute