


from math import factorial, pi







def        SCREAMING_SNAKE_CASE_						(			__A :			float  ,    __A :			int = 30				)	->		float:

       """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'				)

       a_					:		Tuple							=  float(__A				)
       a_					:		int							=  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        SCREAMING_SNAKE_CASE_						(			__A :			float  ,    __A :			int = 30				)	->		float:

       """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'				)

       a_					:		Dict							=  float(__A				)
       a_					:		Union[str, Any]							=  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))






import argparse


_snake_case             =     '''docs/source/_static/js/custom.js'''






def 		lowercase_(  SCREAMING_SNAKE_CASE_	):


  '''simple docstring'''

  with open(SCREAMING_SNAKE_CASE_      ,						encoding="utf-8"      ,						newline="\n"	) as f:
    lowerCamelCase :					List[str]    =				f.readlines()
  lowerCamelCase :					int    =				0

  # First let's put the right version
  while not lines[index].startswith("const stableVersion ="	):
    index += 1
  lowerCamelCase :					str    =				f"""const stableVersion = \"v{version}\"\n"""

  # Then update the dictionary
  while not lines[index].startswith("const versionMapping = {"	):
    index += 1

  # We go until the end
  while not lines[index].startswith("}"	):
    index += 1
  # We add the new version at the end
  lines[index - 1] += f"""    \"v{version}\": \"v{version}\",\n"""

  with open(SCREAMING_SNAKE_CASE_      ,						"w"      ,						encoding="utf-8"      ,						newline="\n"	) as f:
    f.writelines(SCREAMING_SNAKE_CASE_	)


if __name__ == "__main__":
   _snake_case             =     argparse.ArgumentParser()
   parser.add_argument('''--version''', help='''Release version.''')
   _snake_case             =     parser.parse_args()
   update_custom_js(args.version)



