Hi,
Moving the sliders clean the plot.
Does any one can show me how to fix this (PS: this piece of code is a part of a procedure whose arguments are RV and SliderRanges and I need this unusual coding to make the procedure generic ... at least I guess so)
Thanks in advance

|
(1) |
> |
RV := RandomVariable(Normal(a, b)):
law := [attributes(RV)][3]:
pars := law:-Parameters;
|
![[a, b]](/view.aspx?sf=228559_question/4ab4994443bf925c980e4d2ea11fa5f3.gif)
|
(2) |
> |
SliderRanges := [-5.0..5.0, 1.0..3.0]:
[seq(pars[k]=SliderRanges[k], k=1..numelems(pars))]
|
![[a = -5.0 .. 5.0, b = 1.0 .. 3.0]](/view.aspx?sf=228559_question/8be9adc454a7b97fcb6f4333a6bdbd15.gif)
|
(3) |
> |
f := PDF(RV, x);
# Explore(plot(f, x=-3..3), parameters=[seq(pars[k]=SliderRanges[k], k=1..numelems(pars))]);
|

|
(4) |
|
Download Explore_Problem.mw