Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Why doesn't this work ?


it is the Plot[ ] that needs a in-place Evaluate command: (see help file
"Plot evaluates its arguments in a nonstandard way (see
SectionA.4.). You
should use Evaluate to evaluate the function to be plotted if this can
be done before specific numerical values are supplied. ")

  Plot[Evaluate@S2, {x, 0, Pi}]
  S[x_]:¼in[x/dx], Cos[x/dx], Sin[2*x/dx]};
  S3[x] /. dx -> 2;
  Plot[Evaluate@S3, {x, 0, Pi}]


At 04:10 12-01-98 -0500, Andreas Keese wrote:
>Look at this:
>This works:
>  Clear[S1];
>  S1Ān[x];
>  Plot[S1, {x, 0, 3}]
>But why doesn't it work with more than one functions ?
>  Clear[S2];
>  S2¼in[x],Cos[x]};
>  Plot[S2, {x, 0, Pi}]
>gives an error - Mathematica complains that S2 is not a machine-size
>BTW: I don't want S2 to be pattern cause I want to use this as follows:
>  Clear[S,dx,S3,x];
>  S[x_]:¼in[x/dx], Cos[x/dx], Sin[2*x/dx]};
>  S3ļaluate[S[x] /. dx -> 2];
>  Plot[S3, {x, 0, Pi}];
Dr. Wouter L. J. MEEUSSEN

  • Prev by Date: Re: HELP: How to increase the resolution of .GIF images when importing to HTML ?
  • Next by Date: Re: Defining functions using arguments with subscripts
  • Prev by thread: Re: Why doesn't this work ?
  • Next by thread: ``flattening" systems of equations