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.
Examples
set.seed(20240412)
trefoil4d <- gen_trefoil4d(n = 500, steps = 5)
#> ✔ Data generation completed successfully!!!