PorisulkiP

Номер 4

Jul 5th, 2022 (edited)
665
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None
  1. from math import *
  2.  
  3. A1 = 71.24734
  4. A2 = 318.40115
  5. A3 = 264.96212
  6. A4 = 676.39666
  7. A5 = 512.35104 # Радианы
  8.  
  9. B1 = 0
  10. B2 = 0
  11.  
  12. # Получение В1
  13. if A1 < 86.4:
  14.   B1 = A3
  15. else:
  16.   B1 = A3/A1
  17.  
  18. # Получение В2
  19. if B1 >= 178:
  20.   B2 = A3**0.5
  21. else:
  22.   B2 = B1**4
  23.  
  24. sqr = round(sqrt(A4/B2), 5)
  25. lg = round(cos(A5)/log(A2), 5)
  26. div = round(log10(B1), 5)
  27.  
  28. answer = round(sqr - lg * div, 2)
  29.  
  30. print (f'answer: {answer}')
RAW Paste Data Copied