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.Fri, 02 Oct 2015 03:17:12 -0500latex typesetting for derivatives like g'http://ask.sagemath.org/question/7826/latex-typesetting-for-derivatives-like-g/When i try:
f(x) = function('f',x)
g = diff(f(x),x)
latex(g)
I get: D[0]\left(f\right)\left(x\right)
But i would like to get something like: g'\left(x\right)
How can i do this with sage?
roahFri, 17 Jun 2011 07:29:02 -0500http://ask.sagemath.org/question/7826/How do i display a derivative using view()http://ask.sagemath.org/question/29671/how-do-i-display-a-derivative-using-view/ I can currently display the form of an integral in latex using:
f(x) = x + x^2
view( integral(f(x),x, hold=True) ) #displays the form of the derivative
But i can't figure out how to do it for a derivative:
f(x) = x + x^2
view( derivative(f(x),x, hold=True) ) #fails
view( derivative(f(x),x) ) # takes derivative then displays answer instead of the problem
Is their any easy way to do this? If not, whats the recommended way to fake it (inline latex etc)?gsonnenfFri, 02 Oct 2015 03:17:12 -0500http://ask.sagemath.org/question/29671/