Maple returns a message saying that the use of global parameters in
the dsolve command is deprecated and will be eliminated in future
versions of Maple. One should use the parameters option instead.
I find entering parameters that way a bit clunky and prefer to use a
function instead. Is there some good reason to use the parameters
option? See below for a simple example.
restart;
ans:=dsolve({diff(y(x),x)+sin(x^2)*y(x)=a,y(0)=c},y(x),numeric,parameters=[a,c]):
ans(parameters=[0,1]);
[a = 0., c = 1.]
ans(5.7);
[x = 5.7, y(x) = 0.557828727194122020]
To change parameter values in the odeplot command requires 2 lines
ans(parameters=[3,4]);
[a = 3., c = 4.]
ans(5.7);
[x = 5.7, y(x) = 19.0178592132215307]
If instead, we create a function to enter parameters, life is simpler.
restart;
ans:=(a,c)->dsolve({diff(y(x),x)+sin(x^2)*y(x)=a,y(0)=c},y(x),numeric):
This one line seems easier to understand than the 2 lines necessary above.
ans(0,1)(5.7);
[x = 5.7, y(x) = 0.557828727194122020]
Changing the parameter values is simpler also:
ans(3,4)(5.7);
[x = 5.7, y(x) = 19.0178592132215307]
What am I missing?