




from math import cos, sin






def    snake_case   (				A     )				->				list[list[float]]:




	'''simple docstring'''


	lowerCamelCase_				:						Tuple				  =				float(A     )
	return [[scaling_factor * int(x == y     ) for x in range(2     )] for y in range(2     )]






def    snake_case   (				A     )				->				list[list[float]]:




	'''simple docstring'''


	lowerCamelCase_  ,     lowerCamelCase_				:						int				  =				cos(A     ), sin(A     )
	return [[c, -s], [s, c]]






def    snake_case   (				A     )				->				list[list[float]]:




	'''simple docstring'''


	lowerCamelCase_  ,     lowerCamelCase_				:						Dict				  =				cos(A     ), sin(A     )
	lowerCamelCase_				:						Optional[int]				  =				c * s
	return [[c * c, cs], [cs, s * s]]






def    snake_case   (				A     )				->				list[list[float]]:




	'''simple docstring'''


	lowerCamelCase_  ,     lowerCamelCase_				:						Optional[int]				  =				cos(A     ), sin(A     )
	lowerCamelCase_				:						Optional[Any]				  =				c * s
	return [[2 * c - 1, 2 * cs], [2 * cs, 2 * s - 1]]


print(F'    {scaling(5) = }')
print(F'  {rotation(4_5) = }')
print(F'{projection(4_5) = }')



print(F'{reflection(4_5) = }')






def    UpperCAmelCase__	(  lowerCamelCase ):
  lowercase     :Optional[int]   						=    len(lowerCamelCase )
  if n in (0, 1):
    return 0
  return sum(query * (n - i - 1) for i, query in enumerate(sorted(lowerCamelCase ) ) )


if __name__ == "__main__":
     import doctest

     doctest.testmod()



