human
Check whether two numbers are in silver ratio | Function to check that two numbers are in silver ratio.
Swapping the numbers such that A contains the maximum number between these numbers.
First Ratio.
Second Ratio.
Condition to check that two numbers are in silver ratio.
Driver Code.
Function Call"
Solution in Python:
assistant
#Here is code to check whether two numbers are in silver ratio and the other steps required.
 def checksilverRatio ( a , b ) :
	a , b = max ( a , b ) , min ( a , b )
	ratio1 = round ( a / b , 3 )
	ratio2 = round ( ( 2 * a + b ) / a , 3 )
	if ratio1 == ratio2 and ratio1 == 2.414 :
		print ( " Yes " )
		return True
	else :
		print ( " No " )
		return False
if __name__ == " _ _ main _ _ " :
	a = 2.414
	b = 1
	checksilverRatio ( a , b )