= #JxnPortable/docs/plot_examples/SliderRepeat_L-value_dependancy_Demo.jxn

slider = @JxnSliderPanel($this)
a0 = slider.add( "a0", 0., -50., 50. )
a1 = slider.add( "a1", 1., -50., 50. )
a2 = slider.add( "a2", 1., -5., 5. )
!
a = { a0, a1, a2 }  ! slider dependency of a0, a1, a2 transfered to a
ya = ( a[2] x + a[1] ) x + a[0]
plot( x, ya ).setPlotFrameTitle( "ok, slider dependance of a recognized" )
!
b = { 1., 1., 1. }
! set( b, 0, a0 )  ! slider dependency of a0 not transfered to b
! set( b, 1, a1 )
! set( b, 2, a2 )
! or
ia = { 0 : 2 }
set( b, ia, @JxnUnroll a )  ! slider dependency of a not transfered to b
yb1 = ( b[2] x + b[1] ) x + b[0]  ! <= not repeated
plot( x, yb1 ).setPlotFrameTitle( "NOT ok: slider dependance of b not recognized" )
yb2 = ( b[2] x + b[1] ) x + b[0] + nop(a0)  ! <= repetition forced by nop(a0)
plot( x, yb2 ).setPlotFrameTitle( "ok, repetition forced by nop(a0)" )
!
c = { 1., 1., 1. }
! c = set( c, 0, a0 )  ! slider dependency transfered to c
! c = set( c, 1, a1 )
! c = set( c, 2, a2 )
! or
c = set( c, ia, @JxnUnroll a )[0]  ! slider dependency transfered to c
yc = ( c[2] x + c[1] ) x + c[0]
plot( x, yc ).setPlotFrameTitle( "ok, slider dependance of c recognized" )