Re: Not a floating-point number message
- To: mathgroup at smc.vnet.net
- Subject: [mg17581] Re: [mg17527] Not a floating-point number message
- From: "Sherman.Reed" <sherman.reed at worldnet.att.net>
- Date: Mon, 17 May 1999 02:14:30 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Hi there,
when I replaced the definition with the following, it worked fine.
it is a good idea, particularly when the plot command says the result is
as your data, to look at the results of delayed definitions. that is how
I found this.
Sherman C. Reed
sherman.reed at worldnet.att.net
f[x_]=N[Pi^(Sin[2 x]-Cos[x^2])];
-----Original Message-----
From: rubgb at my-dejanews.com <rubgb at my-dejanews.com>
To: mathgroup at smc.vnet.net
Subject: [mg17581] [mg17527] Not a floating-point number message
> 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.---
>
>