X <- function(t) t^2 * cos(t)
Y <- function(t) t^3 * sin(3 * t)
Z <- function(t) t
arc_length3d(X, Y, Z, 0, 2 * pi)
# \donttest{
# if (requireNamespace("plotly", quietly = TRUE)) {
# arc_length3d(
# X, Y, Z, 0, 2 * pi,
# plot = TRUE,
# plot_line = list(color = "red", width = 3),
# n_samples = 300
# )
# }
# }
Run the code above in your browser using DataLab