Advertisement
roronoa

conversion (r, theta) en (x, y)

Nov 10th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. R=readline
  2. t=R()*Math.PI/180
  3. r=R()
  4. f=x=>x.toFixed(1)
  5. print(f(r*Math.cos(t))+', '+f(r*Math.sin(t)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement