# Revision history [back]

### Stange behavior in my scmd file.

I cannot figure this out! The diff command is working fine, by why are the following two commands not working as expected?

 sage: diff(sin(x^2),x)
2*x*cos(x^2)
sage: factor(8+27*x^3)
x^3
sage: latex(factor(8+27*x^3))
x^{3}