Euclidean def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) 0 def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) 1.49253 0.171111 def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) 1.50028 2.871 0.934191 0.329306 1.03607 2.06078 1.39921 0.0177222 1.38586 1 -1 0.221064 -1 collegare i punti numerati nell'ordine con un segmento iperbolico. 2.15154 -6 0 2.70008 -6 0 6 0 0 0.242 0.894172 6 -1 3 2 0.564893 0.341635 -4.07479 -0.870026 1.74839 0.864306 -6 0 6 0 9 1 0 5 0 0.638 1.71058 0.8251 2.11172 -6 0 6 0 0 0 1.26708 0.41642 0.92476 1.08064 1.93972 1.20617 4 def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) 2.12327 0.2529 def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) 0.346303 def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) 0.0708889 1.23304 0 0 7 8 0 0 6 def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) 2.09262 def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa) 0.646009 def calc( arg1, arg2 ): # Calculate whatever you want to show here, and return it. # For example, to implement a mid point, you would put this # code here: # return Point( ( arg1.coordinate() + arg2.coordinate() ) / 2 ) # Please refer to the manual for more information. a=arg1.coordinate(); b=arg2.coordinate(); ax=a.x ay=a.y if ay < 0: return InvalidObject() bx=b.x by=b.y if by < 0: return InvalidObject() asq=ax*ax + ay*ay bsq=bx*bx + by*by den = 2*(bx - ax) if den == 0: return Segment(a,b) x = (bsq - asq)/den c = Coordinate(x,0) rsq = asq + x*x - 2*x*ax r = sqrt (rsq) if rsq > 100*asq: return Segment(a,b) alfa = atan2(ay, ax-x) beta = atan2(by, bx-x) return Arc(c,r,alfa,beta-alfa)