plot procedure with multiple outputs

March 23 2007 by billboos 8
false
Maple

0


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...
 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account