[sage-support] Re: Power series expansion

2011-12-06 Thread Julie
Thank you very much to everyone for all your help. I've now solved the issue I was having trouble with - the reason finding the coefficients of the y terms didn't give me the required results was because the generating function was really in terms of one variable (p), not two, and required values

Re: [sage-support] Re: Power series expansion

2011-12-06 Thread Robert Bradshaw
If you create an actual power series element, you can easily write the coefficients to a file: sage: f = taylor(sin(x), x, 0, 10); f 1/362880*x^9 - 1/5040*x^7 + 1/120*x^5 - 1/6*x^3 + x sage: power_series = RR[['x']](f); power_series 0.000 + 1.00*x + 0.000*x^2 -

Re: [sage-support] Re: Power series expansion

2011-12-03 Thread Anton Sherwood
On 2011-12-02 08:17, Julie wrote: Unfortunately, having the Tayor series approach out, don't think it's really appropriate for my problem afterall, as what I esentially need to do is find the coefficientsof p^0*y^0, p, y, p^2*y etc in the formula (0.030*0.248244^y)y+0.05721*(0.248244^y)p

[sage-support] Re: Power series expansion

2011-12-02 Thread achrzesz
On Dec 2, 2:24 pm, Julie juliewilliams...@googlemail.com wrote: Hi all, I am attempting to obtain coefficients of a generating function to obtain probabilites, but in order to obtain the coefficients, I first need to expand a power series, which is necessary for my paricular function. Is

[sage-support] Re: Power series expansion

2011-12-02 Thread Julie
Hi, Thanks for such quick responses! Unfortunately, having the Tayor series approach out, don't think it's really appropriate for my problem afterall, as what I esentially need to do is find the coefficientsof p^0*y^0, p, y, p^2*y etc in the formula (0.030*0.248244^y)y+0.05721*(0.248244^y)p