Advertisement
ph4x35ccb

importando bibliotecas math e cmath

Feb 2nd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. #! /usr/bin/env/python
  2. # coding:UTF-8
  3.  
  4. #from math import pow, factorial, log
  5. #from math import *
  6. #from cmath import *
  7. import math
  8. import cmath
  9.  
  10. #print(pow(2, 2))
  11. #print(factorial(5))
  12. #print(log(4, 2))
  13. #print(cos(180))
  14. print(math.pow(2, 2))
  15. print(math.factorial(5))
  16. print(math.log(4, 2))
  17. print(math.cos(180))
  18.  
  19. print(cmath.log(2.10))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement