fork download
  1. from math import *
  2. functions = { 'fabrate': sqrt,
  3. 'ensalex': atan,
  4. 'fallocest': cos,
  5. 'sploop': sin,
  6. 'strustate': gamma,
  7. 'holofy': exp,
  8. 'quendle': erf,
  9. 'tudefy': log10,
  10. 'chaness': fabs
  11. }
  12. def f(x):
  13. return eval(x,functions)
  14. str = input()
  15. print('{0:.15f}'.format(f(str)))
Runtime error #stdin #stdout #stderr 0.19s 23648KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 14, in <module>
EOFError: EOF when reading a line