ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 28 Jan 2012 08:42:32 -0600Rewriting an expression in terms of other expressions or functionshttp://ask.sagemath.org/question/8677/rewriting-an-expression-in-terms-of-other-expressions-or-functions/I'd like to know if there is a way to ask Sage to write a given expression in terms of other expressions or functions. The user could have an insight about the latter while the CAS would be stuck. What I want is something like
write(a^2 - b^2, a-b)
write(cos(x+y), (cos(x), sin(x), cos(y), sin(y)))
write(gamma(p+1), gamma(p)) # or any other recurrence relation the user wants to check
Something like directed simplification, but not wholesale.
Green diodSat, 28 Jan 2012 08:42:32 -0600http://ask.sagemath.org/question/8677/