


"""simple docstring"""
import math

def 				_snake_case      (   __snake_case							:      float						, __snake_case							:      float   ):




   """simple docstring"""







   if (
       not isinstance(__snake_case						, (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 				_snake_case      (   __snake_case							:      float						, __snake_case							:      float   ):




   """simple docstring"""







   if (
       not isinstance(__snake_case						, (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()





"""simple docstring"""
# limitations under the License.

# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works

from .pipelines import DiffusionPipeline, ImagePipelineOutput  # noqa: F401
from .utils import deprecate


deprecate(
    """pipelines_utils""",
    """0.22.0""",
    """Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.""",
    standard_warn=False,
    stacklevel=3,
)

