# Integration and differentiation symbols

I have seen this in the examples but it doesn't appear to be very easy unless I am totally missing something. It is important that the proper symbology be used in presentation form to show the integration symbol and or differentiation symbol. But can't seem to find any way of doing it . This should be straight forward like show(integral()) and it puts the integral symbol on the screen especially in showing symbolic calculations.

How do you get the symbols on the screen?

edit retag close merge delete

Sort by » oldest newest most voted You can use latex. $\int$ --> $\int$

def my_int_print(expr, show_constant=False):
if show_constant:
pretty_print(html("$\int %s \,dx = %s + C ; \\ C \in \Bold R$" %(latex(expr),latex(integral(expr,x)))))
else:
pretty_print(html("$\int %s \,dx = %s$" %(latex(expr),latex(integral(expr,x)))))

my_int_print(x*cos(x^2))


Returns something similar to:

$\int x \cos\left(x^{2}\right) dx = \frac{1}{2} \sin\left(x^{2}\right)$

more

you could try to use

%display text unicode_art