






'''simple docstring'''






from __future__ import annotations

from cmath import sqrt




def        _SCREAMING_SNAKE_CASE  (				A  :       int  ,		A  :       int  ,		A  :       int  )    -> int:







   """simple docstring"""


   if a == 0:
      raise ValueError('Coefficient \'a\' must not be zero.'  )
   __snake_case				:      Optional[int]     							= b * b - 4 * a * c

   __snake_case				:      Any     							= (-b + sqrt(A  )) / (2 * a)
   __snake_case				:      Any     							= (-b - sqrt(A  )) / (2 * a)

   return (
       root_a.real if not root_a.imag else root_a,
       root_a.real if not root_a.imag else root_a,
   )




def        _SCREAMING_SNAKE_CASE  (				)    -> List[str]:







   """simple docstring"""
   __snake_case							,__snake_case				:      Union[str, Any]     							= quadratic_roots(a=5  ,		b=6  ,		c=1  )
   print(F"""The solutions are: {solutiona} and {solutiona}"""  )


if __name__ == "__main__":
     main()







'''simple docstring'''






def        _SCREAMING_SNAKE_CASE  (				A  :       float  ,		A  :       list[float]  )    -> float:







   """simple docstring"""
   if discount_rate < 0:
      raise ValueError('Discount rate cannot be negative'  )
   if not cash_flows:
      raise ValueError('Cash flows list cannot be empty'  )
   __snake_case				:      List[str]     							= sum(
       cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(A  )  )
   return round(A  ,		ndigits=2  )


if __name__ == "__main__":
      import doctest

      doctest.testmod()