MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Output comes same as input in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93447] Re: Output comes same as input in Mathematica
  • From: "Nasser Abbasi" <nma at 12000.org>
  • Date: Sat, 8 Nov 2008 04:00:17 -0500 (EST)
  • References: <gf171s$ibp$1@smc.vnet.net>
  • Reply-to: "Nasser Abbasi" <nma at 12000.org>

"Akshay" <a.akshay87 at gmail.com> wrote in message 
news:gf171s$ibp$1 at smc.vnet.net...
>i am new to mathematica and am using mathematica 5.0.
> i need to use a function Pade for a project.
>
> in mathematica help browser, i found a few relevant illustrations. but 
> when i give the same command as in any of the illustrations, the output 
> comes out to be the same command, instead of the output shown in the 
> illustration.
>
> the illustration is
> In[1]=Pade[Cos[x], {x, 0, 2, 4}]
> Out[1]=(1-61*(x^2)/150)/(1+(7*(x^2)/75)+((x^4)/200))
>
> here's what i get
> In[1]=Pade[Cos[x], {x, 0, 2, 4}]
> Out[1]=Pade[Cos[x], {x, 0, 2, 4}]
>
> somebody please tell me how i can get the result.
>

In v 6.0, Pade[] has been replaced by PadeApproximant[]
To used Pade, need to load it explicitly

-------------------------------
In[2]:= << "Calculus`Pade`"
During evaluation of In[2]:= General::obspkg:Calculus`Pade` is now obsolete. 
The legacy version being loaded may conflict with current Mathematica 
functionality. See the Compatibility Guide for updating information. >>
In[3]:= Pade[Cos[x], {x, 0, 2, 4}]
Out[3]= (1 - (61*x^2)/150)/(1 + (7*x^2)/75 + x^4/200)

----------------------------


In[6]:= PadeApproximant[Cos[x], {x, 0, {2, 4}}]
Out[6]= (1 - (61*x^2)/150)/(1 + (7*x^2)/75 + x^4/200)



  • Prev by Date: Re: Output comes same as input in Mathematica
  • Next by Date: Re: Output comes same as input in Mathematica
  • Previous by thread: Re: Output comes same as input in Mathematica
  • Next by thread: Re: Output comes same as input in Mathematica