fork(3) download
  1. from math import sqrt
  2. #x,y,z,xx,yy,zz = 28.5, 12.1, -38.9, -16.6, 102, -6.6
  3. x,y,z,xx,yy,zz = 26.7, 13.1, -37.958, -17.3, 102, -63
  4. b=sqrt((x-xx)**2 + (y-yy)**2 + (z-zz)**2)
  5. print("B = ",b)
  6. I = b*10**-6 * 0.15/(4*3.14 * 10**-7 * 22)
  7. print("I = ",I)
  8. print("R = ",1.5/I)
Success #stdin #stdout 0.01s 118656KB
stdin
Standard input is empty
stdout
('B = ', 102.30499383705569)
('I = ', 0.5553615038925287)
('R = ', 2.7009434206125205)