Learn R Programming

cyclotomic (version 1.3.0)

zeta: The primitive n-th root of unity.

Description

For example, `zeta(4) = i` is the primitive 4th root of unity, and `zeta(5) = exp(2*pi*i/5)` is the primitive 5th root of unity. In general, `zeta(n) = exp(2*pi*i/n)`.

Usage

zeta(n)

Value

A cyclotomic number.

Arguments

n

a positive integer

Examples

Run this code
zeta(4)

Run the code above in your browser using DataLab