fork download
  1. def liczba(x):
  2. if 0 >= x:
  3. print("wartość funkcji dla podanej liczby wynosi", 4+x+x**3)
  4. elif 4 >= x > 0:
  5. import math
  6. print("wartość funkcji dla podanej liczby wynosi", math.sqrt(9*x/8))
  7. elif 7 >= x > 4:
  8. print("wybrana liczba nie należy do dziedziny funkcji")
  9. else:
  10. import math
  11. print("wartość funkcji dla podanej liczby to", math.sqrt(x+math.sqrt(2*x)))
  12.  
  13.  
Success #stdin #stdout 0.02s 9220KB
stdin
Standard input is empty
stdout
Standard output is empty