square2disk: Square to disk

View source: R/conformalMaps.R

square2diskR Documentation

Square to disk

Description

Conformal map from the unit square to the unit disk. The function is vectorized.

Usage

square2disk(z)

Arguments

z

a complex number in the unit square [0,1] \times [0,1]

Value

A complex number in the unit disk.

Examples

x <- y <- seq(0, 1, length.out = 25L)
Grid <- transform(
  expand.grid(X = x, Y = y), 
  Z = complex(real = X, imaginary = Y)
)
u <- square2disk(Grid$Z)
plot(u, pch = 19, asp = 1)

jacobi documentation built on Nov. 19, 2023, 1:08 a.m.