Re: Not a floating-point number message
- To: mathgroup at smc.vnet.net
- Subject: [mg17589] Re: [mg17527] Not a floating-point number message
- From: "Mark E. Harder" <harderm at ucs.orst.edu>
- Date: Mon, 17 May 1999 02:14:34 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Rugb; I tried this with Mtca3.0 in WinNT 4.0, and it objected to enclosing the trig functions in square brackets (syntax error? I forget exactly) . So i removed the [] around Sin and Cos, and it worked fine: 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]]; -mark -----Original Message----- From: rubgb at my-dejanews.com <rubgb at my-dejanews.com> To: mathgroup at smc.vnet.net Subject: [mg17589] [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.--- >