





import os
from collections.abc import Iterator






def 					lowerCamelCase_						(    _UpperCamelCase = "."			)		->						Iterator[str]:






				"""simple docstring"""


				for dir_path, dir_names, filenames in os.walk(_UpperCamelCase			):
								snake_case_						:   str           =  [d for d in dir_names if d != '''scripts''' and d[0] not in '''._''']
								for filename in filenames:
												if filename == "__init__.py":
																continue
												if os.path.splitext(_UpperCamelCase			)[1] in (".py", ".ipynb"):
																yield os.path.join(_UpperCamelCase			,    _UpperCamelCase			).lstrip('''./'''			)






def 					lowerCamelCase_						(    _UpperCamelCase			)		->						Any:






				"""simple docstring"""


				return f'''{i * "  "}*''' if i else "\n##"






def 					lowerCamelCase_						(    _UpperCamelCase			,    _UpperCamelCase			)		->						str:






				"""simple docstring"""


				snake_case_						:   Tuple           =  old_path.split(os.sep			)
				for i, new_part in enumerate(new_path.split(os.sep			)			):
								if (i + 1 > len(_UpperCamelCase			) or old_parts[i] != new_part) and new_part:
												print(f'''{md_prefix(_UpperCamelCase			)} {new_part.replace("_"			,    " "			).title()}'''			)
				return new_path






def 					lowerCamelCase_						(    _UpperCamelCase = "."			)		->						None:






				"""simple docstring"""


				snake_case_						:   Optional[int]           =  ''''''
				for filepath in sorted(good_file_paths(_UpperCamelCase			)			):
								snake_case_      ,							snake_case_						:   Tuple           =  os.path.split(_UpperCamelCase			)
								if filepath != old_path:
												snake_case_						:   List[Any]           =  print_path(_UpperCamelCase			,    _UpperCamelCase			)
								snake_case_						:   Any           =  (filepath.count(os.sep			) + 1) if filepath else 0
								snake_case_						:   Union[str, Any]           =  f'''{filepath}/{filename}'''.replace(''' '''			,    '''%20'''			)
								snake_case_						:   List[Any]           =  os.path.splitext(filename.replace('''_'''			,    ''' '''			).title()			)[0]
								print(f'''{md_prefix(_UpperCamelCase			)} [{filename}]({url})'''			)


if __name__ == "__main__":
	print_directory_md('''.''')







from math import isclose, sqrt






def 					lowerCamelCase_						(    _UpperCamelCase			,    _UpperCamelCase			,    _UpperCamelCase			)		->						tuple[float, float, float]:






				"""simple docstring"""


				snake_case_						:   Dict           =  point_y / 4 / point_x
				snake_case_						:   List[str]           =  2 * normal_gradient / (1 + normal_gradient * normal_gradient)
				snake_case_						:   Union[str, Any]           =  (1 - normal_gradient * normal_gradient) / (
				    1 + normal_gradient * normal_gradient
				)
				snake_case_						:   Tuple           =  (sa - ca * incoming_gradient) / (ca + sa * incoming_gradient)

				# to find the next point, solve the simultaeneous equations:
				# y^2 + 4x^2 = 100
				# y - b = m * (x - a)
				# ==> A x^2 + B x + C = 0
				snake_case_						:   Union[str, Any]           =  outgoing_gradient**2 + 4
				snake_case_						:   Tuple           =  2 * outgoing_gradient * (point_y - outgoing_gradient * point_x)
				snake_case_						:   Optional[Any]           =  (point_y - outgoing_gradient * point_x) ** 2 - 100

				snake_case_						:   Dict           =  (
				    -linear_term - sqrt(linear_term**2 - 4 * quadratic_term * constant_term			)
				) / (2 * quadratic_term)
				snake_case_						:   Optional[int]           =  (
				    -linear_term + sqrt(linear_term**2 - 4 * quadratic_term * constant_term			)
				) / (2 * quadratic_term)

				# two solutions, one of which is our input point
				snake_case_						:   Any           =  x_minus if isclose(_UpperCamelCase			,    _UpperCamelCase			) else x_plus
				snake_case_						:   int           =  point_y + outgoing_gradient * (next_x - point_x)

				return next_x, next_y, outgoing_gradient






def 					lowerCamelCase_						(    _UpperCamelCase = 1.4			,    _UpperCamelCase = -9.6			)		->						int:






				"""simple docstring"""


				snake_case_						:   int           =  0
				snake_case_						:   float           =  first_x_coord
				snake_case_						:   float           =  first_y_coord
				snake_case_						:   float           =  (10.1 - point_y) / (0.0 - point_x)

				while not (-0.01 <= point_x <= 0.01 and point_y > 0):
								snake_case_      ,							snake_case_      ,							snake_case_						:   str           =  next_point(_UpperCamelCase			,    _UpperCamelCase			,    _UpperCamelCase			)
								num_reflections += 1

				return num_reflections


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