gen_trefoil4d: Generate 4-D Trefoil Knot Coordinates

View source: R/trefoil.R

gen_trefoil4dR Documentation

Generate 4-D Trefoil Knot Coordinates

Description

This function generates coordinates for a 4-D trefoil knot. The number of points is determined by the length of the theta and phi sequences.

Usage

gen_trefoil4d(n = 500, steps = 5)

Arguments

n

An integer value (default: 500) representing the sample size.

steps

A numeric value (default: 5) representing the number of steps for the theta parameter.

Value

A tibble containing 4-D trefoil knot.

Examples

set.seed(20240412)
trefoil4d <- gen_trefoil4d(n = 500, steps = 5)

cardinalR documentation built on Dec. 18, 2025, 9:08 a.m.