




def      __lowerCAmelCase			(					UpperCamelCase = 4000000      )     ->	int:
  lowerCAmelCase__				:  List[Any]		       =     []
  lowerCAmelCase__       ,			lowerCAmelCase__				:  int		       =     0, 1
  while b <= n:
    if b % 2 == 0:
      even_fibs.append(UpperCamelCase      )
    lowerCAmelCase__       ,			lowerCAmelCase__				:  Tuple		       =     b, a + b
  return sum(UpperCamelCase      )


if __name__ == "__main__":
     print(F"""{solution() = }""")







import math



def      __lowerCAmelCase			(					UpperCamelCase	,      UpperCamelCase      )     ->	float:
  if (
      not isinstance(UpperCamelCase	,      (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      __lowerCAmelCase			(					UpperCamelCase	,      UpperCamelCase      )     ->	float:
  if (
      not isinstance(UpperCamelCase	,      (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()

