




import math







def SCREAMING_SNAKE_CASE       ( lowercase_				,       lowercase_		)     -> float:



       """simple docstring"""

       if (
           not isinstance(lowercase_				,       (int, float)		)
           or power_factor < -1
           or power_factor > 1
       ):
              raise ValueError('''power_factor must be a valid float value between -1 and 1.'''		)
       return apparent_power * power_factor







def SCREAMING_SNAKE_CASE       ( lowercase_				,       lowercase_		)     -> float:



       """simple docstring"""

       if (
           not isinstance(lowercase_				,       (int, float)		)
           or power_factor < -1
           or power_factor > 1
       ):
              raise ValueError('''power_factor must be a valid float value between -1 and 1.'''		)
       return apparent_power * math.sqrt(1 - power_factor**2		)


if __name__ == "__main__":
  import doctest

  doctest.testmod()








from __future__ import annotations

import numpy as np







def SCREAMING_SNAKE_CASE       ( lowercase_		)     -> List[Any]:



       """simple docstring"""

       return np.maximum(0				,       lowercase_		)


if __name__ == "__main__":
  print(np.array(relu([-1, 0, 5])))  # --> [0, 0, 5]


