MathGroup Archive 1999

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

Search the Archive

Re: HELP: Plotting composite functions

  • To: mathgroup at
  • Subject: [mg16067] Re: [mg15946] HELP: Plotting composite functions
  • From: "Tomas Garza" <tgarza at>
  • Date: Tue, 23 Feb 1999 03:45:21 -0500
  • Sender: owner-wri-mathgroup at

Alexander Sirotkin wrote:

>Simple question - after definition of a functions
>which looks like this "H[w] == Log[10, 1 + Exp[I2Pi w]]"
>I try to Plot[] it and get the "... not machine size real
>number at ..." error. After reading lots of manuals and
>postings I came to a conclusion that it should be somehow
>related to Evaluate[]/Hold[] problems, but none of these
>manuals gave a solution to this problem.


First, you have to use := instead of == in order to define your function H
(I suppose there was a misprint in your message).

Second, your definition requires a "_" to be written after the argument,

H[w_]:=Log[10, 1 + Exp[I2Pi w]]

Third, it is clear that Exp[I2Pi w] is not real and hence cannot be plotted
as such.

If you want to have visual information about the behavior of the complex
exponential try plotting its absolute value or its real and imaginary
values. E.g.,


looks real nice.

Good luck,

Tomas Garza
Mexico City

  • Prev by Date: RE: Strange results from Integrate
  • Next by Date: Syntax error in notebook saved as package
  • Previous by thread: Bug using Options[]
  • Next by thread: Syntax error in notebook saved as package