You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
377 B

from sympy import *
class semicircle:
def __init__(self,x,y,r,upper=False):
if upper:
self.coef = 1
else:
self.coef = -1
self.x = x
self.y = y
self.r = r
self.expr = simplify(self.y + self.coef * sqrt(r**2 -
class circle:
def __init__(self,x,y,r):
self.x = x
self.y = y
self.r = r