fork download
  1. import math
  2.  
  3. def calculate_a(x, y):
  4. return (y + (x + 1) ** (1/3.0)) ** (1/4.0)
  5.  
  6. x = float(raw_input("Please enter value for X: "))
  7. y = float(raw_input("Please enter value for Y: "))
  8.  
  9. a = calculate_a(x, y)
  10. print "Result is a=%.4f" % a
  11.  
Success #stdin #stdout 0.01s 7444KB
stdin
17.421
10.365
stdout
Please enter value for X: Please enter value for Y: Result is a=1.8990