I want to plot $z(F, x, \lambda)$ where I fix a few values of $F$ and $\lambda$ and see how it varies with $x$. With 2-d functions, I could vary the second parameter easily using a combination of Evaluate
and Table
. I'm not able to get it to run for a 3-d function: What's going wrong here?
z[F_, x_, \[Lambda]_] := (Exp[\[Lambda] (1 - F)] -
1) * (Exp[F*x*\[Lambda]] - 1)/(F*x*\[Lambda]);
Plot[Evaluate[
Table[z[F, x, \[Lambda]], {{\[Lambda], {0.1, 1}}, {F, {0.5}}}]], {x,
0, 2}]
The error is Table::write: Tag List in {\[Lambda],{0.1}} is Protected.
List
brackets. The two iterators in yourTable
should not be enclosed inList
brackets. UsePlot[Evaluate[ Table[z[F, x, \[Lambda]], {\[Lambda], {0.1, 1}}, {F, {0.5}}]], {x, 0, 2}, PlotLegends -> Placed[Automatic, {0.75, 0.45}]]
$\endgroup$ – Bob Hanlon Oct 21 at 13:37