Subject: Graphing a function for several parameter values
From: Alexander Klimov
Date: Mon, 13 Feb 2012 14:29:38 +0200
On Mon, 13 Feb 2012, Patrick Blanchenay wrote:
> I would like to plot a function several times for different values of
> parameters.
>
> The function depends on a set of parameters, say paramOne and paramTwo.
> I would like to be able to specify several sets of those parameters, and
> for each set, get the function graphed.
function: x * paramOne + paramTwo;
parametersList: [
[paramOne=1, paramTwo=1],
[paramOne=-1, paramTwo=0]
]$
functionList: map(lambda([p],ev(function,p)),parametersList)$
plot2d(functionList,[x,0,1])$
--
Regards,
ASK