
'''simple docstring'''

import torch







def     snake_case__						(   )			->   Dict:
		if torch.cuda.is_available():
				_UpperCamelCase							:			List[Any]     =   torch.cuda.device_count()
		else:
				_UpperCamelCase							:			Any     =   0
		print(f'''Successfully ran on {num_gpus} GPUs'''						)


if __name__ == "__main__":
	main()






def 			lowercase(	UpperCamelCase_							,					UpperCamelCase_							,					UpperCamelCase_       )		->	list:







 '''simple docstring'''
 UpperCamelCase			  =      len(UpperCamelCase_       )
 UpperCamelCase			  =      [[0] * n for i in range(UpperCamelCase_       )]
 for i in range(UpperCamelCase_       ):
  UpperCamelCase			  =      y_points[i]

 for i in range(2							,					UpperCamelCase_       ):
  for j in range(UpperCamelCase_							,					UpperCamelCase_       ):
   UpperCamelCase			  =      (
       (xa - x_points[j - i + 1]) * q[j][i - 1]
       - (xa - x_points[j]) * q[j - 1][i - 1]
   ) / (x_points[j] - x_points[j - i + 1])

 return [q[n - 1][n - 1], q]


if __name__ == "__main__":
     import doctest

     doctest.testmod()
