
'''simple docstring'''





from __future__ import annotations

from decimal import Decimal
from math import *  # noqa: F403

from sympy import diff







def snake_case_     (					lowercase__   ,       lowercase__   ,       lowercase__ = 1_0**-1_0		):
  UpperCAmelCase__      :					Tuple				       =							a
  while True:
    UpperCAmelCase__      :					int				       =							Decimal(lowercase__		) - (
        Decimal(eval(lowercase__		)		) / Decimal(eval(str(diff(lowercase__		)		)		)		)  # noqa: S307
    )
    # This number dictates the accuracy of the answer
    if abs(eval(lowercase__		)		) < precision:  # noqa: S307
      return float(lowercase__		)


# Let's Execute
if __name__ == "__main__":
      # Find root of trigonometric function
      # Find value of pi
      print(F'The root of sin(x) = 0 is {newton_raphson("sin(x)", 2)}')
      # Find root of polynomial
      print(F'The root of x**2 - 5*x + 2 = 0 is {newton_raphson("x**2 - 5*x + 2", 0.4)}')
      # Find Square Root of 5
      print(F'The root of log(x) - 1 = 0 is {newton_raphson("log(x) - 1", 2)}')
      # Exponential Roots
      print(F'The root of exp(x) - 1 = 0 is {newton_raphson("exp(x) - 1", 0)}')





'''simple docstring'''





def snake_case_     (					lowercase__ = "The quick brown fox jumps over the lazy dog"   ,       ):
  UpperCAmelCase__      :					Dict				       =							set()

  # Replace all the whitespace in our sentence
  UpperCAmelCase__      :					str				       =							input_str.replace(" "   ,       ""		)
  for alpha in input_str:
    if "a" <= alpha.lower() <= "z":
      frequency.add(alpha.lower()		)
  return len(lowercase__		) == 2_6







def snake_case_     (					lowercase__ = "The quick brown fox jumps over the lazy dog"   ,       ):
  UpperCAmelCase__      :					str				       =							[False] * 2_6
  for char in input_str:
    if char.islower():
      UpperCAmelCase__      :					List[Any]				       =							True
    elif char.isupper():
      UpperCAmelCase__      :					List[Any]				       =							True
  return all(lowercase__		)







def snake_case_     (					lowercase__ = "The quick brown fox jumps over the lazy dog"   ,       ):
  return len({char for char in input_str.lower() if char.isalpha()}		) == 2_6







def snake_case_     (					):
  from timeit import timeit

  UpperCAmelCase__      :					Union[str, Any]				       =							"from __main__ import is_pangram, is_pangram_faster, is_pangram_fastest"
  print(timeit("is_pangram()"   ,       setup=lowercase__		)		)
  print(timeit("is_pangram_faster()"   ,       setup=lowercase__		)		)
  print(timeit("is_pangram_fastest()"   ,       setup=lowercase__		)		)
  # 5.348480500048026, 2.6477354579837993, 1.8470395830227062
  # 5.036091582966037, 2.644472333951853,  1.8869528750656173


if __name__ == "__main__":
      import doctest

      doctest.testmod()
      benchmark()



