Update: One can include the asymptote code in a LaTex document. It is something like this
// can be directly run on http://...
I downloaded TeXLive 2022.
/usr/local/texlive/2022/bin/x86_64-linux/asy -f pdf
works fine, where test.asy contains the lines
draw('en 3D : $B$ et B',(0,0,0)--(10,0,0));
I don't know if asymptote or tikz is required or not, but IMO the easiest code is with pict2e. You can run trigonometric calculations from within this code using some packages that can do this, but ...
With pure tikz is also simple. For 300 pt wide image you can use the following MWE:
\draw (0,0) -- ++ (18:...
Now I see what you got stuck: The error Dimension too large may appear when trying to plot (with pgfplots that uses implicit scaling) the graph of the inverse of 2 branches of the Lambert W-function (...