


'''simple docstring'''



from __future__ import annotations







def      _UpperCamelCase   (		UpperCamelCase__       ):
			UpperCAmelCase__	:       Dict   =  str(UpperCamelCase__       )
			return len(UpperCamelCase__       ) == 9 and set(UpperCamelCase__       ) == set("""123456789"""       )







def      _UpperCamelCase   (		):
			for base_num in range(9_9_9_9			,   4_9_9_9			,   -1       ):
						UpperCAmelCase__	:       Optional[Any]   =  1_0_0_0_0_2 * base_num
						if is_9_pandigital(UpperCamelCase__       ):
									return candidate

			for base_num in range(3_3_3			,   9_9			,   -1       ):
						UpperCAmelCase__	:       List[Any]   =  1_0_0_2_0_0_3 * base_num
						if is_9_pandigital(UpperCamelCase__       ):
									return candidate

			return None


if __name__ == "__main__":
		print(f"""{solution() = }""")






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:
       A__		   =		x_start
       A__		   =		fnc(UpperCamelCase__    )
       A__		   =		0.0

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

              # Increment step
              A__		   =		xa
              A__		   =		fxa

       return length


if __name__ == "__main__":


       def       UpperCamelCase__(			UpperCamelCase__     :			Union[str, Any]    )->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:')
       a__: str							   =						10
       while i <= 100_000:
              print(F"With {i} steps: {line_length(f, -10, 10, i)}")
              i *= 10





