



"""simple docstring"""






from math import factorial, pi






def        snake_case_  (      A_					:		Union[str, Any],				A_					:		Tuple = 30						):


       '''simple docstring'''





       if not isinstance(A__,				(int, float)						):
              raise ValueError('''maclaurin_sin() requires either an int or float for theta'''						)

       if not isinstance(A__,				A__						) or accuracy <= 0:
              raise ValueError('''maclaurin_sin() requires a positive int for accuracy'''						)

       _lowerCamelCase						:				Optional[Any]    			= float(A__						)
       _lowerCamelCase						:				Dict    			= theta // (2 * pi)
       theta -= 2 * div * pi
       return sum(
           (-1) ** r * theta ** (2 * r + 1) / factorial(2 * r + 1						) for r in range(A__						)						)






def        snake_case_  (      A_					:		Optional[Any],				A_					:		List[Any] = 30						):


       '''simple docstring'''





       if not isinstance(A__,				(int, float)						):
              raise ValueError('''maclaurin_cos() requires either an int or float for theta'''						)

       if not isinstance(A__,				A__						) or accuracy <= 0:
              raise ValueError('''maclaurin_cos() requires a positive int for accuracy'''						)

       _lowerCamelCase						:				Optional[int]    			= float(A__						)
       _lowerCamelCase						:				Dict    			= theta // (2 * pi)
       theta -= 2 * div * pi
       return sum((-1) ** r * theta ** (2 * r) / factorial(2 * r						) for r in range(A__						)						)


if __name__ == "__main__":
   import doctest

   doctest.testmod()

   print(maclaurin_sin(10))
   print(maclaurin_sin(-10))
   print(maclaurin_sin(10, 15))
   print(maclaurin_sin(-10, 15))

   print(maclaurin_cos(5))
   print(maclaurin_cos(-5))
   print(maclaurin_cos(10, 15))
   print(maclaurin_cos(-10, 15))







'''simple docstring'''


from PIL import Image







def 				__lowerCamelCase				(   A__    ,						A__    )       ->	Image:






   """simple docstring"""

   def brightness(A__    ) -> float:
      return 128 + level + (c - 128)

   if not -255.0 <= level <= 255.0:
      raise ValueError('level must be between -255.0 (black) and 255.0 (white)'    )
   return img.point(A__    )


if __name__ == "__main__":
   # Load image
   with Image.open("image_data/lena.jpg") as img:
      # Change brightness to 100
      _lowerCamelCase	:       List[str]      	=	change_brightness(img, 100)
      brigt_img.save("image_data/lena_brightness.png", format="png")

