Created
April 15, 2021 13:56
-
-
Save mesiriak/4fb046d0579b0ef68ae522e4b711e2bc to your computer and use it in GitHub Desktop.
Codewars. Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy import*;circleIntersection=lambda a,b,r:r*r*(lambda q:q<1and arccos(q)-q*(1-q*q)**.5)(hypot(*subtract(b,a))/r/2)//.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment