PorisulkiP

Номер 3

Jul 5th, 2022 (edited)
688
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None
  1. from math import *
  2.  
  3. A1 = 173.77337 # Радиана
  4. A2 = 443.00494
  5. A3 = 56.15865
  6. A4 = 112.35346
  7. A5 = 3.01328 # Градусы
  8.  
  9. A2 = radians(A2) # Радианы переводятся в градусы
  10.  
  11. B1 = 0
  12. B2 = 0
  13.  
  14. # Получение В1
  15. if A4 < 5.7:
  16.   B1 = A1*A3
  17. else:
  18.   B1 = A4
  19.  
  20. # Получение В2
  21. if B1 >= 15:
  22.   B2 = A1**A5
  23. else:
  24.   B2 = sqrt(A4)
  25.  
  26. sqr = round(sqrt(B2)/A5**A2, 5)
  27. lg = round(log10(B1), 5)
  28. div = round(sin(A2), 5)
  29.  
  30. answer = round(sqr * lg - div, 2)
  31. print (f'answer: {answer}')
RAW Paste Data Copied