



"""simple docstring"""







from math import ceil

def 				UpperCamelCase_    (    lowerCAmelCase__      :				int = 1001						)						->   int:

  """simple docstring"""




  lowerCAmelCase_   :				Tuple								= 1

  for i in range(1    ,   int(ceil(n / 2.0						)						)						):
    lowerCAmelCase_   :				Dict								= 2 * i + 1
    lowerCAmelCase_   :				int								= 2 * i
    lowerCAmelCase_   :				Optional[int]								= total + 4 * odd**2 - 6 * even

  return total


if __name__ == "__main__":
     import sys

     if len(sys.argv) == 1:
          print(solution())
     else:
          try:
               lowercase__		:				Union[str, Any]          =	int(sys.argv[1])
               print(solution(n))
          except ValueError:
               print("""Invalid entry - please enter a number""")










'''simple docstring'''





from __future__ import annotations

import math
from collections.abc import Callable

def        a_     (							_lowerCAmelCase       ,_lowerCAmelCase       ,_lowerCAmelCase       ,_lowerCAmelCase = 100       ,)      ->      float:
  __lowerCamelCase       :       Dict           = x_start
  __lowerCamelCase       :       int           = fnc(_lowerCAmelCase       )
  __lowerCamelCase       :       Dict           = 0.0

  for _ in range(_lowerCAmelCase       ):
    # Approximates curve as a sequence of linear lines and sums their length
    __lowerCamelCase       :       List[str]           = (x_end - x_start) / steps + xa
    __lowerCamelCase       :       List[Any]           = fnc(_lowerCAmelCase       )
    length += math.hypot(xa - xa       ,fxa - fxa       )

    # Increment step
    __lowerCamelCase       :       Any           = xa
    __lowerCamelCase       :       Tuple           = fxa

  return length


if __name__ == "__main__":

   def        a_     (							_lowerCAmelCase       )      ->      Dict:
     return math.sin(10 * x       )

   print('f(x) = sin(10 * x)')
   print('The length of the curve from x = -10 to x = 10 is:')
   _UpperCamelCase											=						10
   while i <= 100000:
      print(f'''With {i} steps: {line_length(f, -10, 10, i)}''')
      i *= 10






