MathGroup Archive 1999

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

Search the Archive

Re: HELP: Plot[]ing composite functions

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. 

Because you are trying to plot a complex-valued function.  Try

	H[w_] = Log[10, 1 + E^(I*2*Pi*w)]; 
	Plot[Abs[H[w]], {w, 0, 4}]; 

or, more efficiently,

	Plot[Evaluate[Abs[H[w]]], {w, 0, 4}]; 


Paul Abbott                                   Phone: +61-8-9380-2734
Department of Physics                           Fax: +61-8-9380-1014
The University of Western Australia           
Nedlands WA  6907                     mailto:paul at 

            God IS a weakly left-handed dice player

  • Prev by Date: Re: Fourier and FFT: Powers of 2 only?
  • Next by Date: Re: MyPrependTo
  • Previous by thread: RE: HELP: Plot[]ing composite functions
  • Next by thread: Generalized Cross Validation package?