PorisulkiP

Номер 1

Jul 5th, 2022 (edited)
888
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None
  1. from math import *
  2.  
  3. A1 = 38.70609
  4. A2 = 65.012345 # Радиана
  5. A3 = 163.58241
  6. A4 = 134.46588 # Радиана
  7. A5 = 4.46232
  8.  
  9. sqr = round(sqrt(A1/A3), 5)
  10. ln = round(log(A5), 5)
  11. step = round(tan(A2-A4)/(A1/A3), 5)
  12.  
  13. answer = sqr * ln - A4**A5 - sin(A2)**step
  14.  
  15. # Если число получается комплексное, то находится угол по теореме Пифагора
  16. if (type(answer) == type(2+3j)):
  17.     answer = sqrt(answer.real ** 2 + answer.imag ** 2)
  18.    
  19. print (f'answer: {round(answer, 2)}')
RAW Paste Data Copied