skzeros.Rectangle

class skzeros.Rectangle(bottom_left, top_right, /, *, parent=None)

Rectangle region in the complex plane.

Parameters:
  • bottom_left (complex) – Bottom left corner of the rectangle.

  • top_right (complex) – Top right corner of the rectangle.

  • parent (Domain, optional) – Parent domain, by default None. This is used to keep track of the hierarchy of domains and is useful for subdividing the domain.

__init__(bottom_left, top_right, /, *, parent=None)

Methods

__init__(bottom_left, top_right, /, *[, parent])

argument_principle(f, f_z, *[, method, ...])

contour_integral(f, *[, method, quadrature_args])

Compute the contour integral of f around the region.

plot(ax)

Plot the rectangle on a given matplotlib axis.

sample_boundary(t)

Sample points on the boundary of the rectangle.

subdivide(*[, offset])

Subdivide the rectangle into two smaller rectangles.

Attributes

children

bottom_left

Bottom left corner of the rectangle.

corners

Returns the corners of the rectangle in a counter clockwise order starting from the bottom left.

parent

top_right

Top right corner of the rectangle.