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 1999

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

Search the Archive

Re: Plot[] problem (plnr) - help !!!

  • To: mathgroup at
  • Subject: [mg15964] Re: Plot[] problem (plnr) - help !!!
  • From: "Allan Hayes" <hay at>
  • Date: Fri, 19 Feb 1999 03:26:53 -0500
  • References: <7ag3bt$>
  • Sender: owner-wri-mathgroup at

Alexander Sirotkin wrote in message <7ag3bt$aj1 at>...
>I'm trying to do most trivial and simple thing - define
>some function and then Plot[] it. However, I get some very
>weird error - " not a machine-size real number at ..."
>Here is the code :
>H[w] == 20Log[10,Sum[a[k] Exp[I 2Pi w(-k)], {k,0,1}]]
>Plot[H[w], {w, 1, 100}]
>I've seen some articles (even at about that
>problem, but NONE of them proposed a working solution !!!
>Just putting Evaluate[] inside the Plot[] does nothing...


Use = or :=, not ==   in definitions.
    H[w_] == 20Log[10,Sum[a[k] Exp[I 2Pi w(-k)], {k,0,1}]]

Don't clear H before you use it.
Even so the H gives some complex values which cannot be plotted.


Allan Hayes
Mathematica Training and Consulting
Leicester UK
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

  • Prev by Date: Re: implementing a stack
  • Next by Date: Re: Pure Functions in rules
  • Previous by thread: Re: Plot[] problem (plnr) - help !!!
  • Next by thread: Re: Plot[] problem (plnr) - help !!!