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 1995

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

Search the Archive

Re: Plotting

  • Subject: [mg2173] Re: Plotting
  • From: browe at (Bill Rowe)
  • Date: Thu, 12 Oct 1995 05:58:03 GMT
  • Approved:
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Hughes Aircraft Company
  • Sender: daemon at ( )

In article <44qj7k$s22 at>, Julian Charko
<jcharko at> wrote:

>In order to plot the function f(x) = a^x, where a<0, over a 
>range of integer values of x, what plotting options would you
>need to use with the Plot command? 
>Specifying a plotting range of real numbers in the usual way,
>as shown below, for example, presents problems because
>Mathematica generates complex numbers for fractional exponents,
>and these obviously cannot be plotted by Plot.
>                 Plot[(-1)^x, {x, -5, 5}]

How about either

   Plot[Re[(-1)^x], {x, -5, 5}]


   Plot[Im[(-1)^x], {x, -5, 5]

I realize neither of these is the same as the function you asked about.
However, the problem isn't with Mathematica. After all it wasn't
Mathematica that decided Sqrt[-1] is complex.

"Against supidity, the Gods themselves contend in vain"

  • Prev by Date: Solid Geometry Problem
  • Next by Date: Mathlink & Graphics....
  • Previous by thread: Re: Plotting
  • Next by thread: Re: Plotting