MathGroup Archive 2003

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

Search the Archive

Re: Re: Don't understand Plot behavior


In this statement, Plot is wrapped around Evaluate, so Evaluate takes 
effect (regardless of what its argument might be -- what it is "wrapped 
around"):

Plot[Evaluate[{f[t],0}] , {t, 0, 1}]

In this statement, List is wrapped around Evaluate, so Evaluate doesn't 
take effect.  Again, it doesn't matter what Evaluate is wrapped around:

Plot[{Evaluate[f[t]],0} , {t, 0, 1}]

What matters is what is wrapped around Evaluate, not what Evaluate is 
wrapped around.

Bobby

On Tue, 18 Mar 2003 05:50:24 -0500 (EST), Jens-Peer Kuska 
<kuska at informatik.uni-leipzig.de> wrote:

> Hi,
>
> it has exactly to do with "where is Evaluate[] wrapped around"
>
> Because it does not appear "directly as the head of the function
> argument"
>
> Regards
> Jens
>
> Dr Bob wrote:
>>
>> It has nothing to do with what Evaluate is wrapped around.  From Help:
>>
>> "Evaluate only overrides HoldFirst, etc. attributes when it appears
>> directly as the head of the function argument that would otherwise be
>> held."
>>
>> Plot has attribute HoldAll, and List does not.
>>
>> Bobby
>>
>> On Fri, 14 Mar 2003 04:45:35 -0500 (EST), Jens-Peer Kuska
>> <kuska at informatik.uni-leipzig.de> wrote:
>>
>> > Hi,
>> >
>> > yes because Evaluate[] work only if it is
>> > waraped arround a function argument or a
>> > sequence of arguments, and you have to write
>> >
>> > Plot[Evaluate[{f[t],0}] , {t, 0, 1}]
>> >
>> > otherwise the List[] argument is evaluatet that
>> > help Plot[] nothing.
>> >
>> > Regards
>> > Jens
>
>



-- 
majort at cox-internet.com
Bobby R. Treat



  • Prev by Date: Re: Evaluation problem
  • Next by Date: RE: a challenge/problem.
  • Previous by thread: Re: Don't understand Plot behavior
  • Next by thread: RE: Don't understand Plot behavior