Skip to main content
Commonmark migration
Source Link

#Python 2.7, 73 Bytes#

Python 2.7, 73 Bytes

from math import* f=lambda A,B:degrees(atan2(B[1],B[0])-atan2(A[1],A[0])) 

Test:

f((5,5),(5,-5)) #-90.0 f((5,-5),(5,5)) #90.0 

#Python 2.7, 73 Bytes#

from math import* f=lambda A,B:degrees(atan2(B[1],B[0])-atan2(A[1],A[0])) 

Test:

f((5,5),(5,-5)) #-90.0 f((5,-5),(5,5)) #90.0 

Python 2.7, 73 Bytes

from math import* f=lambda A,B:degrees(atan2(B[1],B[0])-atan2(A[1],A[0])) 

Test:

f((5,5),(5,-5)) #-90.0 f((5,-5),(5,5)) #90.0 
deleted 15 characters in body
Source Link

#Python 2.7, 8873 Bytes#

importfrom math f = lambdaimport* f=lambda A, B: math.degrees(math.atan2(B[1],B[0]) - math.atan2(A[1],A[0])) 

Test:

f((5,5),(5,-5)) #-90.0 f((5,-5),(5,5)) #90.0 

#Python 2.7, 88 Bytes#

import math f = lambda A, B: math.degrees(math.atan2(B[1],B[0]) - math.atan2(A[1],A[0])) 

Test:

f((5,5),(5,-5)) #-90.0 f((5,-5),(5,5)) #90.0 

#Python 2.7, 73 Bytes#

from math import* f=lambda A,B:degrees(atan2(B[1],B[0])-atan2(A[1],A[0])) 

Test:

f((5,5),(5,-5)) #-90.0 f((5,-5),(5,5)) #90.0 
added 34 characters in body
Source Link
mbomb007
  • 23.6k
  • 7
  • 66
  • 143

#Python 2.7, 88 Bytes#

import math f = lambda A, B: math.degrees(math.atan2(B[1],B[0]) - math.atan2(A[1],A[0])) 
import math f = lambda A, B: math.degrees(math.atan2(B[1],B[0]) - math.atan2(A[1],A[0])) 

Test:

f((5,5),(5,-5)) #-90.0 f((5,-5),(5,5)) #90.0 

#Python 2.7, 88 Bytes#

import math f = lambda A, B: math.degrees(math.atan2(B[1],B[0]) - math.atan2(A[1],A[0])) 

Test:

f((5,5),(5,-5)) #-90.0 f((5,-5),(5,5)) #90.0 

#Python 2.7, 88 Bytes#

import math f = lambda A, B: math.degrees(math.atan2(B[1],B[0]) - math.atan2(A[1],A[0])) 

Test:

f((5,5),(5,-5)) #-90.0 f((5,-5),(5,5)) #90.0 
Source Link
Loading