View source: R/conformalMaps.R
square2disk | R Documentation |
Conformal map from the unit square to the unit disk. The function is vectorized.
square2disk(z)
z |
a complex number in the unit square |
A complex number in the unit disk.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.