How this calculation works
A Schwarz Christoffel map turns a simple reference domain into a polygonal one by prescribing how its derivative turns at real prevertices. The angles determine the powers in the derivative; the positions of the prevertices determine the shape that results.
Forward SC derivative f'(z)=C product_j(z-x_j)^(alpha_j/pi-1), with real ordered x_j,0<alpha<2pi andsumalpha=(n-2)pi; logarithm branches use arguments in(0,pi) in upper halfplane. Integrate from an interior reference pointz0 along paths staying in upperhalfplane; anchor f(z0)=w0. Corners use boundary limits and endpointdesingularization t=u^(1/(beta+1)); branchconsistent quadrature. Integrating naively along real axis across multiple singularities is wrong. Require pathindependence tests andsumcorneredgevectors closure. Noinverseparameterproblem.A worked example
With the prefilled inputs, mappedCorners = [[2.1032731583731863,-0.8471380062994047],[1.1355723811424151e-15,2.7958379650108456],[-2.1032731583731867,-0.8471380062994033]]. Interior angles are MULTIPLES OF PI; prevertices increasing real. Complex values [real,imaginary].
Good to know
Forward upper-half-plane SC integral,w(i)=translation and multiplier=scale. Angles supplied as multiples ofπ;principal factors arg(z−xj)∈(0,π). Endpoint substitution for corners;no inverse polygon parameter fit or rigorous quadrature enclosure.
Reference: Primary method reference or author-maintained documentation (opens in a new tab) ↗
Mapping a half-plane to a polygon
A Schwarz Christoffel map turns a simple reference domain into a polygonal one by prescribing how its derivative turns at real prevertices. The angles determine the powers in the derivative; the positions of the prevertices determine the shape that results.
This page evaluates a forward map from those parameters. It does not start with an arbitrary target polygon and solve for its unknown prevertices. That inverse parameter problem is numerically different and should not be implied by a set of angle inputs.
Compare with the Complex Mobius transformation calculator from three point correspondences. Integrate a conformalmap with polygoncornerbranchpowers; a Mobiusmap preserves generalizedcircles and cannot mapageneralpolygon.
Angles in multiples of pi and the fixed anchor
Interior angles are MULTIPLES OF PI; prevertices increasing real. Complex values [real,imaginary].Enter three through eight strictly increasing real prevertices. Each angle is supplied as a multiple of pi, so one half means a right angle; the angle entries must lie strictly between zero and two and sum to the number of prevertices minus two. Repeating a prevertex is invalid because it changes the singularity structure.
The complex multiplier controls scale and rotation. The translation pair is specifically the image of the fixed reference point i=(0,1), not a freely selected source anchor. The multiplier must be nonzero, while a query at i returns the translation exactly because its integration path has zero length.
Consistent complex powers
Each factor uses a power of z minus a real prevertex. In the upper half-plane, its argument lies between zero and pi. Keeping that branch consistent along the integration path prevents artificial jumps caused by independently choosing principal powers at unrelated samples.
The resulting derivative is holomorphic inside the reference domain. Two interior paths joining the same endpoints should therefore give the same image difference within numerical error. This path comparison checks a different issue from simply tightening a quadrature tolerance.
Handling polygon corners numerically
The derivative can diverge near a prevertex even though its integral is finite. Directly evaluating an endpoint sample may overflow or produce a false infinite corner. A change of variable removes the leading algebraic singularity before numerical integration.
Boundary points also need a declared limiting side. Values approached from the upper half-plane follow the intended map. Integrating straight through several real singularities without splitting the path and respecting branches can produce plausible coordinates for the wrong antiderivative.
Understanding scale and angle tests
If the scale is doubled while the prevertices and angles are fixed, every image difference doubles. Changing only the anchor translation moves all images by the same complex number. These consequences follow directly from the derivative and provide simple consistency tests.
For four right angles the angle sum is two pi, so the derivative exponents sum to minus two. That is a necessary structural check, not a complete coordinate benchmark. Absolute point values still need comparison with an independently evaluated map using identical conventions.
Reading the polygon and image grid
A useful figure shows both prevertices on the real line and the computed polygon in the image plane. The result supplies mapped interior queries and numerical corner limits. A user can compare several interior images to inspect distortion, while remembering that the selected finite query list is not a continuous mapped grid or a proof of injectivity.
Corner values use an endpoint substitution to handle their integrable singularities. The routine does not report a rigorous quadrature enclosure, a separate path-independence defect or a polygon-closure certificate. Displayed corners should therefore be described as numerical forward-integral outputs rather than certified target vertices.
What the forward calculation guarantees
The numerical output evaluates the stated integral with arguments of z minus each prevertex in the upper-half-plane range zero through pi and with the selected parameters. It does not certify a target polygon that was never supplied, nor does it remove crowding when several prevertices produce extremely compressed features.
Small integration diagnostics do not establish global injectivity for every attempted parameter set. Degenerate corners and unresolved numerical crowding need clear failure messages. A map can be mathematically defined while the requested precision is beyond the bounded browser calculation. Forward upper-half-plane SC integral,w(i)=translation and multiplier=scale. Angles supplied as multiples ofπ;principal factors arg(z−xj)∈(0,π). Endpoint substitution for corners;no inverse polygon parameter fit or rigorous quadrature enclosure.
A few questions, answered
Can I give only a target polygon?
No; this forward mode needs prevertices and angles rather than solving the inverse parameter problem.
What does the translation pair mean?
It is the image w(i) of the fixed source anchor i=(0,1); this release does not accept an arbitrary source reference point.
Can the scale be zero?
No; that produces a constant map and destroys conformality.
Why can a finite corner have an infinite derivative?
An integrable algebraic singularity can diverge pointwise while its integral remains finite.