MathGroup Archive 1999

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

Search the Archive

Re: Not a floating-point number message

  • To: mathgroup at smc.vnet.net
  • Subject: [mg17592] Re: [mg17527] Not a floating-point number message
  • From: BobHanlon at aol.com
  • Date: Mon, 17 May 1999 02:14:35 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 5/14/99 9:18:43 AM, rubgb at my-dejanews.com writes:

>I'm trying to plot the following Table using ListPlot:
>
>f[x_]:=N[Pi^([Sin[2 x]]-[Cos[x^2]])];
>
>dummyData=Table[{x,f[x]},{x,-5,5,0.5}];
>
>ListPlot[dummyData,PlotStyle\[Rule]PointSize[0.02]];
>
>I'm getting the following error message:
>Coordinate...in {...} is not a floating-point number."
>
>I have loaded the package Miscellaneous`RealOnly` and I have been able
>to plot f[x] using Hold  but I haven't been successful so far with the
>table :-((
>Any ideas would be greatly appreciated!
>

You have extraneous brackets in the definition of f.  You cannot use brackets 
in place of parentheses.  Use the following:

f[x_]:=N[Pi^(Sin[2 x]-Cos[x^2])];

dummyData=Table[{x,f[x]},{x,-5,5,0.5}];

ListPlot[dummyData,PlotStyle\[Rule]PointSize[0.02]];


Bob Hanlon


  • Prev by Date: Re: Not a floating-point number message
  • Next by Date: Re: Is it a bug?
  • Previous by thread: Re: Not a floating-point number message
  • Next by thread: Re: Not a floating-point number message