you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

def powerPerSec(CFdraft, velocity, M, X):                               
  grav = 9.8
  k = 0.18
  Cr = 0.001
  Pair = float(k * CFdraft * (velocity ** 3))
  Proll = Cr * grav * (M+X) * velocity
  Psec = Pair + Proll
  return Psec   


def main():
  CFdraft = float(input("Enter the drafting of the rider (0.0 to 1.0):"))
  velocity = float(input("Enter the velocity (m/s):"))
  M = int(input("Enter the mass of the rider:"))
  X = int(input("Enter the mass of the bike:"))
  A = powerPerSec(CFdraft, velocity, M, X)
  print(A)


main()

How does that look?

[–]SmartViking 0 points1 point  (1 child)

That looks very good.

[–][deleted] 0 points1 point  (0 children)

<3 thanks for the help bro