Re: Not a floating-point number message
- To: mathgroup at smc.vnet.net
- Subject: [mg17609] Re: [mg17527] Not a floating-point number message
- From: "Tomas Garza" <tgarza at mail.internet.com.mx>
- Date: Mon, 17 May 1999 02:14:43 -0400
- Sender: owner-wri-mathgroup at wolfram.com
rubgb at my-dejanews.com wrote: > 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." It is surprising that you didn't get an error message after the definition of f. The brackets [] wrapping the Sin and the Cos must be deleted. Once I did that, the plot was obtained without any hitch. Tomas Garza Mexico City