



import math
from collections.abc import Callable







def 	lowerCamelCase_   (  _a    :		Callable[[float], float]					,						_a    :		float					,						_a    :		float  ):



    '''simple docstring'''




    UpperCAmelCase_			:    str   						= xa
    UpperCAmelCase_			:    Optional[int]   						= xa
    while True:
        if x_n == x_na or function(__lowerCAmelCase  ) == function(__lowerCAmelCase  ):
            raise ZeroDivisionError("""float division by zero, could not find root"""  )
        UpperCAmelCase_			:    int   						= x_na - (
            function(__lowerCAmelCase  ) / ((function(__lowerCAmelCase  ) - function(__lowerCAmelCase  )) / (x_na - x_n))
        )
        if abs(x_na - x_na  ) < 10**-5:
            return x_na
        UpperCAmelCase_			:    Union[str, Any]   						= x_na
        UpperCAmelCase_			:    Dict   						= x_na







def 	lowerCamelCase_   (  _a    :		float  ):



    '''simple docstring'''




    return math.pow(__lowerCAmelCase					,						3  ) - (2 * x) - 5


if __name__ == "__main__":
      print(intersection(f, 3, 3.5))




def 							__lowercase   ( __lowerCAmelCase							:				int					,    __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float   ):
							return round(float(moles / volume   ) * nfactor   )






def 							__lowercase   ( __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float   ):
							return round(float((moles * 0.0_821 * temperature) / (volume)   )   )






def 							__lowercase   ( __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float   ):
							return round(float((moles * 0.0_821 * temperature) / (pressure)   )   )






def 							__lowercase   ( __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float   ):
							return round(float((pressure * volume) / (0.0_821 * moles)   )   )


if __name__ == "__main__":
						import doctest

						doctest.testmod()




