Edit and compile if you like:
\documentclass{article}\usepackage{tikz}\usepackage{tikz-3dplot}\usetikzlibrary{math}\usepackage{ifthen}\usepackage[active,tightpage]{preview}\PreviewEnvironment{tikzpicture}\setlength\PreviewBorder{1pt}%% File name: spherical-helix.tex% Description:% A geometric representation of a spherical helix is shown.%% Date of creation: October, 24th, 2021.% Date of last modification: October, 9th, 2022.% Author: Efraín Soto Apolinar.% https://www.aprendematematicas.org.mx/author/efrain-soto-apolinar/instructing-courses/% Source: page 223 of the% Glosario Ilustrado de Matem\'aticas Escolares.% https://tinyurl.com/5udm2ufy%% Terms of use:% According to TikZ.net% https://creativecommons.org/licenses/by-nc-sa/4.0/% Your commitment to the terms of use is greatly appreciated.%\begin{document}%\tdplotsetmaincoords{80}{120}%\begin{tikzpicture}[tdplot_main_coords]% Parametric equations of the curve (spherical helix)\tikzmath{function equis(\t) {return \a*sin(\t/(2.0*\c) r)*cos(\t r);};}\tikzmath{function ye(\t) {return \a*sin(\t/(2.0*\c) r)*sin(\t r);};}\tikzmath{function zeta(\t) {return \a*cos(\t/(2.0*\c) r);};}% Values to indicate the domain of the graph\pgfmathsetmacro{\ti}{-0.5*pi+pi/6.0}\pgfmathsetmacro{\tf}{0.5*pi+pi/6.0}\pgfmathsetmacro{\tm}{0.5*pi+pi/6.0}\pgfmathsetmacro{\tn}{1.5*pi+pi/6.0}\pgfmathsetmacro{\a}{2.5}
Click to download: spherical-helix.tex • spherical-helix.pdf
Open in Overleaf: spherical-helix.tex
See more on the author page of Efraín Soto Apolinar.