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 >