Class ComplexInterval
java.lang.Object
org.episteme.core.mathematics.algebra.intervals.ComplexInterval
Factory and convenience class for creating rectangular regions over Complex
numbers.
A "complex interval" is actually a rectangular region in the complex plane, defined by intervals on both the real and imaginary axes: [a, b] × [c, d]i represents all z = x + yi where x ∈ [a,b] and y ∈ [c,d].
These regions are useful for:
- Complex analysis (domain specification)
- Fractal computations (Mandelbrot/Julia sets)
- Root finding in the complex plane
- Contour integration bounds
- Since:
- 1.0
- Author:
- Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionstatic RealReturns the area of the complex region.static ComplexReturns the center of the complex region.static booleanChecks if a complex number is inside the region.static RealReturns the height (imaginary axis extent) of the region.static FieldIntervalND<Real> Creates the standard Mandelbrot viewing region [-2.5, 1] × [-1.5, 1.5]i.static FieldIntervalND<Real> rectangle(double realMin, double realMax, double imagMin, double imagMax) Creates a rectangular region from double values.static FieldIntervalND<Real> Creates a rectangular region in the complex plane.static FieldIntervalND<Real> square(double halfWidth) Creates a square region centered at origin with given half-width.static FieldIntervalND<Real> Creates a square region centered at a complex number.static FieldIntervalND<Real> Creates a translated region.static FieldIntervalND<Real> Creates the unit square [0, 1] × [0, 1]i.static RealReturns the width (real axis extent) of the region.static FieldIntervalND<Real> Creates a zoomed-in region centered at the same point.
-
Method Details
-
rectangle
public static FieldIntervalND<Real> rectangle(Real realMin, Real realMax, Real imagMin, Real imagMax) Creates a rectangular region in the complex plane.Returns all z = x + yi where x ∈ [realMin, realMax] and y ∈ [imagMin, imagMax].
- Parameters:
realMin- minimum real partrealMax- maximum real partimagMin- minimum imaginary partimagMax- maximum imaginary part- Returns:
- a 2D interval representing the complex region
-
rectangle
public static FieldIntervalND<Real> rectangle(double realMin, double realMax, double imagMin, double imagMax) Creates a rectangular region from double values. -
square
Creates a square region centered at a complex number.- Parameters:
center- the center of the squarehalfWidth- half the side length- Returns:
- a square region centered at the given point
-
square
Creates a square region centered at origin with given half-width. -
unitSquare
Creates the unit square [0, 1] × [0, 1]i. -
mandelbrotRegion
Creates the standard Mandelbrot viewing region [-2.5, 1] × [-1.5, 1.5]i. -
contains
-
center
-
width
-
height
-
area
-
zoom
Creates a zoomed-in region centered at the same point.- Parameters:
region- the original regionfactor- zoom factor (> 1 zooms in, invalid input: '<' 1 zooms out)- Returns:
- a new region with reduced dimensions
-
translate
Creates a translated region.- Parameters:
region- the original regiondelta- the translation vector as a Complex number- Returns:
- a new translated region
-