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, 30 May 2015 07:15:05 -0500A simple problem related to symbolic calculationhttp://ask.sagemath.org/question/26982/a-simple-problem-related-to-symbolic-calculation/Could anyone let me know how you can define a variable as some function of another variable without specific definition? For example, how can you define theta as some function of x and then differentiate the 'sin(theta)' by x?
The following is my code that doesn't work. I couldn't find how to fix it in reference manuals. Any help will be appreciated.
var('theta, y, f')
y=sin(theta) ; theta=f(x);
y.derivative(x)Nownuri1Sat, 30 May 2015 07:15:05 -0500http://ask.sagemath.org/question/26982/derivative of x^nhttp://ask.sagemath.org/question/23779/derivative-of-xn/ I am working with polynomials. I'd like to compute the symbolic derivative of a monomial with symbolic coefficients, that is something like
derivative(x^n,x)
So that the output is
nx^(n-1)
Is this possible?
**Edit:** My first try was of course to use:
diff(x^n,x)
or
derivative(x^n,x)
but I get the error
TypeError: non-integral exponents not supported
hildejkThu, 14 Aug 2014 07:29:44 -0500http://ask.sagemath.org/question/23779/