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.Mon, 28 Dec 2020 23:37:51 +0100Pretty print derivative in Newton notation with dot?https://ask.sagemath.org/question/54975/pretty-print-derivative-in-newton-notation-with-dot/Is there any way to get the pretty printer to produce Newton's notation? - ie. a single dot centred over the variable for first derivative with respect to time, 2 dots for second derivative etc.
Example:
t, y = var('t, y')
x = function('x')(t)
pretty_print(y == 2*diff(diff(x,t),t) - 3 * diff(x,t) + 5)
gives:
![sage math output](https://www.sandyscott.net/wp-content/uploads/2020/12/partialleibniz.png)
but I'd like to see:
![Newton's Notation](https://www.sandyscott.net/wp-content/uploads/2020/12/newton.png)sandy_scottMon, 28 Dec 2020 23:37:51 +0100https://ask.sagemath.org/question/54975/