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?

1 | initial version |

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?

When i try:

`f(x) = `~~function('f',x)~~function('f',x)
g = diff(f(x),x)
latex(g)

i get:

g = diff(f(x),x)

```
D[0]\left(f\right)\left(x\right)
```

~~latex(g)~~

I get: D[0]\left(f\right)\left(x\right)

But but i would like to get something ~~like: g'\left(x\right)~~like:

```
g'\left(x\right)
```

How can i do this with ~~sage?~~Sage?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.