Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Math.pow(n,0.5)
  2. sqrt(2)
  3. root(n,2)
  4. n**0.5
  5. etc.
  6.  
  7. Input:
  8. sqrt(4) //you can call your function whatever you want
  9. Output:
  10. 2
  11. Input:
  12. 7
  13. Output:
  14. 2.645751
  15. Input:
  16. 5.0625
  17. Output:
  18. 2.25
  19. Input:
  20. -15
  21. Output:
  22. 3.872983i
  23. Input:
  24. -9
  25. Output:
  26. 3i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement