"""simple docstring"""




from math import factorial, radians





def 							SCREAMING_SNAKE_CASE  (    _lowerCamelCase		: float    ,_lowerCamelCase		: int = 18    ,_lowerCamelCase		: int = 10			) ->   float:
  _lowerCAmelCase		: str						    =  angle_in_degrees - ((angle_in_degrees // 3_60.0) * 3_60.0)

  # Converting from degrees to radians
  _lowerCAmelCase		: Dict						    =  radians(_lowerCamelCase			)

  _lowerCAmelCase		: Optional[int]						    =  angle_in_radians
  _lowerCAmelCase		: Union[str, Any]						    =  3
  _lowerCAmelCase		: List[str]						    =  -1

  for _ in range(_lowerCamelCase			):
    result += (b * (angle_in_radians**a)) / factorial(_lowerCamelCase			)

    _lowerCAmelCase		: Optional[int]						    =  -b  # One positive term and the next will be negative and so on...
    a += 2  # Increased by 2 for every term.

  return round(_lowerCamelCase    ,_lowerCamelCase			)


if __name__ == "__main__":
     __import__('doctest').testmod()





"""simple docstring"""




from PIL import Image





def 							SCREAMING_SNAKE_CASE  (    _lowerCamelCase		: Image    ,_lowerCamelCase		: int			) ->   Image:
  _lowerCAmelCase		: Any						    =  (259 * (level + 255)) / (255 * (259 - level))

  def contrast(_lowerCamelCase		: int			) -> int:
    return int(128 + factor * (c - 128)			)

  return img.point(_lowerCamelCase			)


if __name__ == "__main__":
     # Load image
     with Image.open('image_data/lena.jpg') as img:
          # Change contrast to 170
          _a   :	str 					=     change_contrast(img, 170)
          cont_img.save('image_data/lena_high_contrast.png', format='png')




