Re: Not a floating-point number message
- To: mathgroup at smc.vnet.net
- Subject: [mg17623] Re: Not a floating-point number message
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Fri, 21 May 1999 03:37:24 -0400
- References: <7hgb9r$43q@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Extra square brackets have crept in:
Change
f[x_]:=N[Pi^([Sin[2 x]]-[Cos[x^2]])];
To
f[x_]:=N[Pi^(Sin[2 x]-Cos[x^2])];
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565
<rubgb at my-dejanews.com> wrote in message news: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.---
>