




from __future__ import annotations

import math
from collections.abc import Callable

def    UpperCAmelCase_				( __UpperCAmelCase		:      Callable[[int | float], int | float]     ,     __UpperCAmelCase		:      int | float     ,     __UpperCAmelCase		:      int | float     ,     __UpperCAmelCase		:      int = 1_00     ,     )   ->					float:
      SCREAMING_SNAKE_CASE_      		=     x_start
      SCREAMING_SNAKE_CASE_      		=     fnc(__UpperCAmelCase				)
      SCREAMING_SNAKE_CASE_      		=     0.0

      for _ in range(__UpperCAmelCase				):
            # Approximates curve as a sequence of linear lines and sums their length
            SCREAMING_SNAKE_CASE_      		=     (x_end - x_start) / steps + xa
            SCREAMING_SNAKE_CASE_      		=     fnc(__UpperCAmelCase				)
            length += math.hypot(xa - xa     ,     fxa - fxa				)

            # Increment step
            SCREAMING_SNAKE_CASE_      		=     xa
            SCREAMING_SNAKE_CASE_      		=     fxa

      return length


if __name__ == "__main__":

   def    UpperCAmelCase_				( __UpperCAmelCase		:      Tuple				)   ->					List[Any]:
         return math.sin(10 * x				)

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






"""simple docstring"""






import os






def      lowercase__ (					)    ->			Optional[Any]:



			'''simple docstring'''
			with open(os.path.dirname(lowerCAmelCase__			) + "/p022_names.txt"			) as file:
						a__  :	Optional[int]		 =			str(file.readlines()[0]			)
						a__  :	Optional[int]		 =			names.replace("\""							,			""			).split(","			)

			names.sort()

			a__  :	int		 =			0
			a__  :	Dict		 =			0

			for i, name in enumerate(lowerCAmelCase__			):
						for letter in name:
									name_score += ord(lowerCAmelCase__			) - 6_4

						total_score += (i + 1) * name_score
						a__  :	Tuple		 =			0
			return total_score


if __name__ == "__main__":
		print(solution())