fork download
  1. def finearc(x):
  2. is2 = (x >= 0.5)
  3. if is2:
  4. x = 1.0 - x
  5. v = ((x * 2) ** 2) * 0.5
  6. if is2:
  7. v = 1.0 - v
  8. return v
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
Standard output is empty