#NEWLINE# def test_general_function( ) : #NEWLINE# #INDENT# nu = Function ( 'nu' ) #NEWLINE# e = nu ( x ) #NEWLINE# edx = e . diff ( x ) #NEWLINE# edy = e . diff ( y ) #NEWLINE# edxdx = e . diff ( x ) . diff ( x ) #NEWLINE# edxdy = e . diff ( x ) . diff ( y ) #NEWLINE# assert ( e == nu ( x ) ) #NEWLINE# assert ( edx != nu ( x ) ) #NEWLINE# assert ( edx == diff ( nu ( x ) , x ) ) #NEWLINE# assert ( edy == 0 ) #NEWLINE# assert ( edxdx == diff ( diff ( nu ( x ) , x ) , x ) ) #NEWLINE# assert ( edxdy == 0 )