#NEWLINE# def frexp( x ) : #NEWLINE# #INDENT# global __log2__ #NEWLINE# if ( x == 0 ) : #NEWLINE# #INDENT# return ( 0.0 , 0 ) #NEWLINE# #UNINDENT# e = ( int ( ( log ( abs ( __log2__ ) ) / __log2__ ) ) + 1 ) #NEWLINE# m = ( x / ( 2.0 ** e ) ) #NEWLINE# return ( m , e )