Re: Pb with the function Plot
- To: mathgroup at smc.vnet.net
- Subject: [mg57062] Re: Pb with the function Plot
- From: "benoit cuisinier" <cuisinier.benoit at neuf.fr>
- Date: Sat, 14 May 2005 04:57:59 -0400 (EDT)
- References: <d5tdm9$iim$1@aphrodite.grec.isp.9tel.net> <4282605D.50200@9online.fr>
- Sender: owner-wri-mathgroup at wolfram.com
hi Jean Marc thx for ur answer i have resolved mi pb i have not understand why for some function we need to enter the fullform iin Plot but now i have mi graph the sintaxe i have wrote works on a V2 of Mathematica but not on the V5 ... thx a lot "Jean-Marc Gulliet" <jeanmarc.gulliet at 9online.fr> a écrit dans le message de news: 4282605D.50200 at 9online.fr... > Hi Benoit, > > The function to be plotted is mistyped: > > In[78]:= > FullForm[x²Sin[x]] > > Out[78]//FullForm= > x\.b2Sin[x] > > The line above is interpreted as a Mathematica expression with head x²Sin: > > In[81]:= > Head[x²Sin[x]] > > Out[81]= > x²Sin > > Not exactly what you have in mind! > > You should have something like > > In[79]:= > \!\(FullForm[\(x\^2\) Sin[x]]\) > > Out[79]//FullForm= > Times[Power[x,2],Sin[x]] > > or > > In[80]:= > FullForm[x^2Sin[x]] > > Out[80]//FullForm= > Times[Power[x,2],Sin[x]] > > To enter the correct notation for an exponent type either "Ctrl+6" or > "Shift+6" (assuming that you work on Windows). > > Hope this helps, > /J.M. > > benoit cuisinier wrote: >> hi >> I am new with mathematica, I am french and i got a english version so i >> got some problem .. >> can someone explain me the correct synthaxe to have the graphics of >> f(x)=x²Sin(x) on [-3,5] bcse i got that : >> In[39]:=Plot[x²Sin[x], {x, -3, 5}] >> Plot::plnr: "\!\(x²Sin[x]\) is not a machine-size real number at x = \ >> \!\(\(-2.9999996666666666`\)\). \!\( \*ButtonBox[\(More.\), \ >> ButtonData:>Plot::plnr, ButtonStyle->RefGuideLinkText, >> ButtonFrame->None]\) >> >> \!\(\* >> RowBox[{\(Plot::"plnr"\), \(\(:\)\(\ \)\), "\<\"\\!\\(x²Sin[x]\\) is not >> a \ >> machine-size real number at \\!\\(x\\) = \\!\\(-2.6754640674166734`\\). \ >> \\!\\(\\*ButtonBox[\\\"More.\\\", ButtonStyle->\\\"RefGuideLinkText\\\", >> \ >> ButtonFrame->None, ButtonData:>\\\"Plot::plnr\\\"]\\)\"\>"}]\) >> >> ... >> >> so if someone can help it will be great >> >> thx >>