#NEWLINE# def test_latex_FracElement( ) : #NEWLINE# #INDENT# ( Fuv , u , v ) = field ( 'u,v' , ZZ ) #NEWLINE# ( Fxyzt , x , y , z , t ) = field ( 'x,y,z,t' , Fuv ) #NEWLINE# assert ( latex ( ( x - x ) ) == '0' ) #NEWLINE# assert ( latex ( ( x - 1 ) ) == 'x - 1' ) #NEWLINE# assert ( latex ( ( x + 1 ) ) == 'x + 1' ) #NEWLINE# assert ( latex ( ( x / 3 ) ) == '\\frac{x}{3}' ) #NEWLINE# assert ( latex ( ( x / z ) ) == '\\frac{x}{z}' ) #NEWLINE# assert ( latex ( ( ( x * y ) / z ) ) == '\\frac{x y}{z}' ) #NEWLINE# assert ( latex ( ( x / ( z * t ) ) ) == '\\frac{x}{z t}' ) #NEWLINE# assert ( latex ( ( ( x * y ) / ( z * t ) ) ) == '\\frac{x y}{z t}' ) #NEWLINE# assert ( latex ( ( ( x - 1 ) / y ) ) == '\\frac{x - 1}{y}' ) #NEWLINE# assert ( latex ( ( ( x + 1 ) / y ) ) == '\\frac{x + 1}{y}' ) #NEWLINE# assert ( latex ( ( ( ( - x ) - 1 ) / y ) ) == '\\frac{-x - 1}{y}' ) #NEWLINE# assert ( latex ( ( ( x + 1 ) / ( y * z ) ) ) == '\\frac{x + 1}{y z}' ) #NEWLINE# assert ( latex ( ( ( - y ) / ( x + 1 ) ) ) == '\\frac{-y}{x + 1}' ) #NEWLINE# assert ( latex ( ( ( y * z ) / ( x + 1 ) ) ) == '\\frac{y z}{x + 1}' ) #NEWLINE# assert ( latex ( ( ( ( ( ( u + 1 ) * x ) * y ) + 1 ) / ( ( ( v - 1 ) * z ) - 1 ) ) ) == '\\frac{\\left(u + 1\\right) x y + 1}{\\left(v - 1\\right) z - 1}' ) #NEWLINE# assert ( latex ( ( ( ( ( ( u + 1 ) * x ) * y ) + 1 ) / ( ( ( ( v - 1 ) * z ) - ( ( t * u ) * v ) ) - 1 ) ) ) == '\\frac{\\left(u + 1\\right) x y + 1}{\\left(v - 1\\right) z - u v t - 1}' )