MathGroup Archive 1995

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

Search the Archive

Re: Plotting

  • To: mathgroup at smc.vnet.net
  • Subject: [mg2160] Re: [mg2131] Plotting
  • From: Robert Pratt <rpratt at math.unc.edu>
  • Date: Wed, 11 Oct 1995 01:57:48 -0400

Try Mathematica's built-in ListPlot and Table commands:

ListPlot[Table[{x, (-1)^x}, {x, -5, 5, 1}]]

Rob Pratt
Department of Mathematics
The University of North Carolina at Chapel Hill
CB# 3250, 331 Phillips Hall
Chapel Hill, NC  27599-3250

rpratt at math.unc.edu

On Wed, 4 Oct 1995, Julian Charko 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}]
> 
> 


  • Prev by Date: Why gives Plot[GTK,{q,o,30}] negat. min. at q=15 ? (GTK:=1/3 q^2 - 10 q + 100)
  • Next by Date: Mathematica and Win 95
  • Previous by thread: Re: Plotting
  • Next by thread: Re: Plotting