ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 12 May 2023 13:38:16 +0200Can we substitute the term used for the univariate derivative for y'https://ask.sagemath.org/question/68377/can-we-substitute-the-term-used-for-the-univariate-derivative-for-y/ One new question. I sincerely apologize to use so much the common ressource. This works perfectly
x,θ,z = SR.var('x θ z')
y = function('y')
x = function('x')
diff(y(x(θ,z)), z)
My question is simply is there a way to substitute $y^\prime(x(\theta,z))$ to $D_0(y(x(\theta,z))$ since $y$ is univariate ? And if this is possible to do the same thing for second order. Fri, 12 May 2023 12:57:03 +0200https://ask.sagemath.org/question/68377/can-we-substitute-the-term-used-for-the-univariate-derivative-for-y/Answer by Emmanuel Charpentier for <p>One new question. I sincerely apologize to use so much the common ressource. This works perfectly</p>
<pre><code>x,θ,z = SR.var('x θ z')
y = function('y')
x = function('x')
diff(y(x(θ,z)), z)
</code></pre>
<p>My question is simply is there a way to substitute $y^\prime(x(\theta,z))$ to $D_0(y(x(\theta,z))$ since $y$ is univariate ? And if this is possible to do the same thing for second order. </p>
https://ask.sagemath.org/question/68377/can-we-substitute-the-term-used-for-the-univariate-derivative-for-y/?answer=68378#post-id-68378I am not sure of the meaning of your question, but I suppose that you want a "more conventional" typesetting of your expression (The `D[0]...` notation has been adopted for its unanbiguous nature).
This [is](https://ask.sagemath.org/question/7826/latex-typesetting-for-derivatives-like-g/) [not](https://ask.sagemath.org/question/54029/evaluate-partial-derivative/) [a](https://github.com/sagemath/sage/issues/6344) [new](https://github.com/sagemath/sage/issues/5711) [issue](https://github.com/sagemath/sage/issues/14517)...
As far as I can tell, this [cosmetic workaround](https://ask.sagemath.org/question/7826/latex-typesetting-for-derivatives-like-g/) should do what you mean...Fri, 12 May 2023 13:38:16 +0200https://ask.sagemath.org/question/68377/can-we-substitute-the-term-used-for-the-univariate-derivative-for-y/?answer=68378#post-id-68378