8 Reputation

2 Badges

17 years, 36 days

MaplePrimes Activity

These are questions asked by billboos

I have a procedure with multiple outputs and one input -- how do I make a 2D plot of these outputs as a function of the input (i.e. a plot with multiple curves)? I have tried using single quotes and the -> operator in various combinations, to no avail. For example, say my procedure is: solset2:=proc(k) local eqn1,x; eqn1:=x^2+k=3; fsolve(eqn1,x) end proc; The following does not work: plot('[solset2(z)]',z=-1..1); I realize there are lexical scoping issues here, but I don't understand the subtleties...
Page 1 of 1