Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Change head, with Apply?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51320] Re: Change head, with Apply?
  • From: "Peter Pein" <petsie at arcor.de>
  • Date: Thu, 14 Oct 2004 06:36:20 -0400 (EDT)
  • References: <ckfsid$iv7$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I don't know, if there's a TaylorSeriesData head in version 5, but a look at
the help for SeriesData leads to the way:

In[1]:=
  sd = Series[Exp[x], {x, 0, 2}];
  sd // FullForm
Out[2]//FullForm=
  SeriesData[x, 0, List[1, 1, Rational[1, 2]], 0, 3, 1]
In[3]:=
  sd[[3, 1]] += R;
  Head[sd]
Out[4]=
  SeriesData

-- 
Peter Pein, Berlin
to write to me, start the subject with [


"Brian Christensen" <CIMICDK at gmail.com> schrieb im Newsbeitrag
news:ckfsid$iv7$1 at smc.vnet.net...
> I have made a function that contains Series[...], I need to add some
> ekstra to this and therefor i use Normal[Series[...]]+R. If i use
> Head[%], it shows "Plus" And i would like to change this to
> TaylorSeriesData, How do i do this? I have tried a lot, but i cant get
> anywhere. If i do not use Normal, Head will return "SeriesData", but i
> need to add the R
> How do i change the function to TaylorSeriesData?
> -Brian
>



  • Prev by Date: Re: Need Help: 1st order nonlinear differential equation
  • Next by Date: Re: Change head, with Apply?
  • Previous by thread: Re: Change head, with Apply?
  • Next by thread: NMinimize inconsistencies