Ask Your Question

Integration and differentiation symbols

asked 2017-02-02 07:15:53 -0500

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 flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-02-02 08:48:30 -0500

ndomes gravatar image

updated 2017-02-02 08:55:30 -0500

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)))))
        pretty_print(html("$ \int %s \,dx = %s $" %(latex(expr),latex(integral(expr,x)))))


Returns something similar to:

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

edit flag offensive delete link more


you could try to use

%display text unicode_art
FrédéricC gravatar imageFrédéricC ( 2017-02-02 13:16:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-02-02 07:15:53 -0500

Seen: 34 times

Last updated: Feb 02