
"""simple docstring"""







from math import factorial, radians
def     __lowerCAmelCase				(_UpperCamelCase       ,  _UpperCamelCase = 18       ,  _UpperCamelCase = 10		):
	__lowerCAmelCase			:						List[Any]									=      angle_in_degrees - ((angle_in_degrees // 360.0) * 360.0)

	# Converting from degrees to radians
	__lowerCAmelCase			:						Dict									=      radians(_UpperCamelCase		)

	__lowerCAmelCase			:						Optional[Any]									=      angle_in_radians
	__lowerCAmelCase			:						Optional[int]									=      3
	__lowerCAmelCase			:						Any									=      -1

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

		__lowerCAmelCase			:						Union[str, Any]									=      -b  # One positive term and the next will be negative and so on...
		a += 2  # Increased by 2 for every term.

	return round(_UpperCamelCase       ,  _UpperCamelCase		)


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





from __future__ import annotations




def 					lowerCamelCase__       (						A__       :					list[int | float]  ,			A__       :					int  ,			A__       :					int	):





       '''simple docstring'''



       if len(A__	) == 0:
              raise ValueError("""find_max() arg is an empty sequence"""	)
       if (
           left >= len(A__	)
           or left < -len(A__	)
           or right >= len(A__	)
           or right < -len(A__	)
       ):
              raise IndexError("""list index out of range"""	)
       if left == right:
              return nums[left]
       __lowerCamelCase   =						(left + right) >> 1  # the middle
       __lowerCamelCase   =						find_max(A__  ,			A__  ,			A__	)  # find max in range[left, mid]
       __lowerCamelCase   =						find_max(A__  ,			mid + 1  ,			A__	)  # find max in range[mid + 1, right]

       return left_max if left_max >= right_max else right_max


if __name__ == "__main__":
       import doctest

       doctest.testmod(verbose=True)

