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: [mg17576] Re: Not a floating-point number message
  • From: "David Keith" <dkeith at sarif.com>
  • Date: Mon, 17 May 1999 02:14:28 -0400
  • Organization: Hevanet Communications
  • References: <7hgb9r$43q@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Your code has some extra [ ]'s in it. (See below.) I get a different
complaint from Mathematica than you do, but when they're eliminated, the
plot works.

I used:

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]];



rubgb at my-dejanews.com wrote in message <7hgb9r$43q at smc.vnet.net>...
> Hi there:
>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!
>Thanks
>
>
>--== Sent via Deja.com http://www.deja.com/ ==--
>---Share what you know. Learn what you don't.---
>




  • Prev by Date: Re: Problem with keyboard mapping
  • Next by Date: Re: Function evaluation
  • Previous by thread: Re: Not a floating-point number message
  • Next by thread: Re: Not a floating-point number message