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 +0.08838*(0.248244^y) and was hoping that there may be a simple way of evaluating 0.248244^y as 0.248244^0 + 0.248244^1*y^1+ 0.248244^2*y^2...as this would have subsequently allowed me to look up the coefficients in the next step Yet, the correct application of the Taylor series, as you pointed out, is 0.248244^y = 0.248244^0 + ln(0.248244)*0.248244y + .... and so I'm still in need of guidance for where to go next!
Thinking back to finding the coefficients, relating to Andrzej's advice, if we call the formula: i(p,y) = (0.030*0.248244^y)y+0.05721*(0.248244^y)p +0.08838*(0.248244^y) By using the function i(p,y).coefficients() sage outputs these coefficients as [[0.03*0.248244^y*y + 0.08838*0.248244^y, 0], [0.05721*0.248244^y, 1]] With more basic two-variable problems, I have used the command similar to Andrzej's: i(p,y).polynimial(SR).coefficient([0,0]) which outputs the specific coefficient for p^0*y^0, and we coud then maybe substitute y=0 into the coefficient after it is pulled out But as there are still powers of y involved with the coefficients at the primary stage, the i(p,y).polynimial(SR).coefficient([0,0]) command gives an error message. With ony the i(p,y).coefficients() command, I can see by inspection that to find the coefficients of p^0*y^0, I need first pull out the 1st bracket, as above, and evaluate 0.248244^0 to find the coefficient And similarly to find the coefficients of p^0*y^1, I need first pull out the 1st bracket, as above, and evaluate 0.248244^1 to find the coefficient Are you aware if there is a way to do this in sage? Thank you, Julie -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
