Wavelength for de Broglie waves












6














Starting from this old question How to draw a sine wave on a circular path in tikz I have modified the source code according for my interest:



enter image description here



    documentclass[tikz]{standalone}
usepackage{pgfplots}
usepackage{amsmath}
begin{document}

foreach n in{3,4}{%
begin{tikzpicture}
begin{axis}[axis equal,
xmin=-3,xmax=3,
ymin=-3,ymax=3,
axis lines=none]
addplot[samples=400,domain=0:2*pi,very thick,red] ({(2+.3*cos(deg(n*x)))*cos(deg(x))},{(2+.3*cos(deg(n*x)))*sin(deg(x))});
addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
node at (axis cs:0,0){$color{blue}{bullet}$};
node at (axis cs:0,-1){$n=n$};
end{axis}
end{tikzpicture}
}
end{document}


I have raised the following questions, hoping very much for your help:




  • how to create wavelengths automatically with labels when the number n changes.


(see figure below)



enter image description here




  • how you can create the waves of de Broglie (colored in violet) always with the same nucleus as from previous image.


Thank you very much for your patience and cooperation.
My greetings and thanks.










share|improve this question





























    6














    Starting from this old question How to draw a sine wave on a circular path in tikz I have modified the source code according for my interest:



    enter image description here



        documentclass[tikz]{standalone}
    usepackage{pgfplots}
    usepackage{amsmath}
    begin{document}

    foreach n in{3,4}{%
    begin{tikzpicture}
    begin{axis}[axis equal,
    xmin=-3,xmax=3,
    ymin=-3,ymax=3,
    axis lines=none]
    addplot[samples=400,domain=0:2*pi,very thick,red] ({(2+.3*cos(deg(n*x)))*cos(deg(x))},{(2+.3*cos(deg(n*x)))*sin(deg(x))});
    addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
    node at (axis cs:0,0){$color{blue}{bullet}$};
    node at (axis cs:0,-1){$n=n$};
    end{axis}
    end{tikzpicture}
    }
    end{document}


    I have raised the following questions, hoping very much for your help:




    • how to create wavelengths automatically with labels when the number n changes.


    (see figure below)



    enter image description here




    • how you can create the waves of de Broglie (colored in violet) always with the same nucleus as from previous image.


    Thank you very much for your patience and cooperation.
    My greetings and thanks.










    share|improve this question



























      6












      6








      6


      1





      Starting from this old question How to draw a sine wave on a circular path in tikz I have modified the source code according for my interest:



      enter image description here



          documentclass[tikz]{standalone}
      usepackage{pgfplots}
      usepackage{amsmath}
      begin{document}

      foreach n in{3,4}{%
      begin{tikzpicture}
      begin{axis}[axis equal,
      xmin=-3,xmax=3,
      ymin=-3,ymax=3,
      axis lines=none]
      addplot[samples=400,domain=0:2*pi,very thick,red] ({(2+.3*cos(deg(n*x)))*cos(deg(x))},{(2+.3*cos(deg(n*x)))*sin(deg(x))});
      addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
      node at (axis cs:0,0){$color{blue}{bullet}$};
      node at (axis cs:0,-1){$n=n$};
      end{axis}
      end{tikzpicture}
      }
      end{document}


      I have raised the following questions, hoping very much for your help:




      • how to create wavelengths automatically with labels when the number n changes.


      (see figure below)



      enter image description here




      • how you can create the waves of de Broglie (colored in violet) always with the same nucleus as from previous image.


      Thank you very much for your patience and cooperation.
      My greetings and thanks.










      share|improve this question















      Starting from this old question How to draw a sine wave on a circular path in tikz I have modified the source code according for my interest:



      enter image description here



          documentclass[tikz]{standalone}
      usepackage{pgfplots}
      usepackage{amsmath}
      begin{document}

      foreach n in{3,4}{%
      begin{tikzpicture}
      begin{axis}[axis equal,
      xmin=-3,xmax=3,
      ymin=-3,ymax=3,
      axis lines=none]
      addplot[samples=400,domain=0:2*pi,very thick,red] ({(2+.3*cos(deg(n*x)))*cos(deg(x))},{(2+.3*cos(deg(n*x)))*sin(deg(x))});
      addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
      node at (axis cs:0,0){$color{blue}{bullet}$};
      node at (axis cs:0,-1){$n=n$};
      end{axis}
      end{tikzpicture}
      }
      end{document}


      I have raised the following questions, hoping very much for your help:




      • how to create wavelengths automatically with labels when the number n changes.


      (see figure below)



      enter image description here




      • how you can create the waves of de Broglie (colored in violet) always with the same nucleus as from previous image.


      Thank you very much for your patience and cooperation.
      My greetings and thanks.







      tikz-pgf






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 28 '18 at 22:25







      Sebastiano

















      asked Oct 28 '18 at 22:21









      SebastianoSebastiano

      9,28341756




      9,28341756






















          1 Answer
          1






          active

          oldest

          votes


















          6














          Here is a proposal. Of course, one can further tune it. Note that I redefined your loop variable to nn since otherwise there are problems with the calc syntax, in which you use n1 etc.



          documentclass[tikz]{standalone}
          usepackage{pgfplots}
          usepackage{amsmath}
          usetikzlibrary{decorations.markings,calc}
          begin{document}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};
          ;}}}}
          foreach nn in{3,4}{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/nn}{$lambda_{nn}$}]
          ({(2+.3*cos(deg(nn*x)))*cos(deg(x))},{(2+.3*cos(deg(nn*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          node at (axis cs:0,-1){$n=nn$};
          end{axis}
          end{tikzpicture}
          }
          end{document}


          enter image description here



          Special service:



          documentclass{article}
          usepackage[margin=1in]{geometry}
          usepackage{amsmath}
          usepackage{subcaption}
          usepackage{floatrow}
          usepackage{pgfplots}
          usetikzlibrary{decorations.markings,calc}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};}}}}

          newcommand{SebastianoPic}[1]{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/#1}{$lambda_{#1}$}]
          ({(2+.3*cos(deg(#1*x)))*cos(deg(x))},{(2+.3*cos(deg(#1*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          end{axis}
          end{tikzpicture}}
          begin{document}

          begin{figure}[htb]
          floatsetup{valign=t, heightadjust=all}
          ffigbox{%
          begin{subfloatrow}
          ffigbox{SebastianoPic{3}}{caption{$n=3$.label{fig:n=3}}}
          ffigbox{SebastianoPic{4}}{caption{$n=4$.label{fig:n=4}}}
          end{subfloatrow}}
          {caption{De Broglie waves.}label{fig:DeBroglie}}
          end{figure}
          end{document}


          enter image description here






          share|improve this answer



















          • 1




            Thank you very much. +1. lambda_3 is very near to dashed circunference: why? Can you to find a better alternative, please, putting also the arrows with the tick violet marks instead of black?
            – Sebastiano
            Oct 28 '18 at 22:45












          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            Oct 28 '18 at 23:21










          • Wonderful. Don't worry at all and you don't have to, at least with me apologize for anything. Thank you so much for your patience and cooperation. My greetings.
            – Sebastiano
            Oct 29 '18 at 12:31











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457265%2fwavelength-for-de-broglie-waves%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          6














          Here is a proposal. Of course, one can further tune it. Note that I redefined your loop variable to nn since otherwise there are problems with the calc syntax, in which you use n1 etc.



          documentclass[tikz]{standalone}
          usepackage{pgfplots}
          usepackage{amsmath}
          usetikzlibrary{decorations.markings,calc}
          begin{document}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};
          ;}}}}
          foreach nn in{3,4}{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/nn}{$lambda_{nn}$}]
          ({(2+.3*cos(deg(nn*x)))*cos(deg(x))},{(2+.3*cos(deg(nn*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          node at (axis cs:0,-1){$n=nn$};
          end{axis}
          end{tikzpicture}
          }
          end{document}


          enter image description here



          Special service:



          documentclass{article}
          usepackage[margin=1in]{geometry}
          usepackage{amsmath}
          usepackage{subcaption}
          usepackage{floatrow}
          usepackage{pgfplots}
          usetikzlibrary{decorations.markings,calc}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};}}}}

          newcommand{SebastianoPic}[1]{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/#1}{$lambda_{#1}$}]
          ({(2+.3*cos(deg(#1*x)))*cos(deg(x))},{(2+.3*cos(deg(#1*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          end{axis}
          end{tikzpicture}}
          begin{document}

          begin{figure}[htb]
          floatsetup{valign=t, heightadjust=all}
          ffigbox{%
          begin{subfloatrow}
          ffigbox{SebastianoPic{3}}{caption{$n=3$.label{fig:n=3}}}
          ffigbox{SebastianoPic{4}}{caption{$n=4$.label{fig:n=4}}}
          end{subfloatrow}}
          {caption{De Broglie waves.}label{fig:DeBroglie}}
          end{figure}
          end{document}


          enter image description here






          share|improve this answer



















          • 1




            Thank you very much. +1. lambda_3 is very near to dashed circunference: why? Can you to find a better alternative, please, putting also the arrows with the tick violet marks instead of black?
            – Sebastiano
            Oct 28 '18 at 22:45












          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            Oct 28 '18 at 23:21










          • Wonderful. Don't worry at all and you don't have to, at least with me apologize for anything. Thank you so much for your patience and cooperation. My greetings.
            – Sebastiano
            Oct 29 '18 at 12:31
















          6














          Here is a proposal. Of course, one can further tune it. Note that I redefined your loop variable to nn since otherwise there are problems with the calc syntax, in which you use n1 etc.



          documentclass[tikz]{standalone}
          usepackage{pgfplots}
          usepackage{amsmath}
          usetikzlibrary{decorations.markings,calc}
          begin{document}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};
          ;}}}}
          foreach nn in{3,4}{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/nn}{$lambda_{nn}$}]
          ({(2+.3*cos(deg(nn*x)))*cos(deg(x))},{(2+.3*cos(deg(nn*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          node at (axis cs:0,-1){$n=nn$};
          end{axis}
          end{tikzpicture}
          }
          end{document}


          enter image description here



          Special service:



          documentclass{article}
          usepackage[margin=1in]{geometry}
          usepackage{amsmath}
          usepackage{subcaption}
          usepackage{floatrow}
          usepackage{pgfplots}
          usetikzlibrary{decorations.markings,calc}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};}}}}

          newcommand{SebastianoPic}[1]{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/#1}{$lambda_{#1}$}]
          ({(2+.3*cos(deg(#1*x)))*cos(deg(x))},{(2+.3*cos(deg(#1*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          end{axis}
          end{tikzpicture}}
          begin{document}

          begin{figure}[htb]
          floatsetup{valign=t, heightadjust=all}
          ffigbox{%
          begin{subfloatrow}
          ffigbox{SebastianoPic{3}}{caption{$n=3$.label{fig:n=3}}}
          ffigbox{SebastianoPic{4}}{caption{$n=4$.label{fig:n=4}}}
          end{subfloatrow}}
          {caption{De Broglie waves.}label{fig:DeBroglie}}
          end{figure}
          end{document}


          enter image description here






          share|improve this answer



















          • 1




            Thank you very much. +1. lambda_3 is very near to dashed circunference: why? Can you to find a better alternative, please, putting also the arrows with the tick violet marks instead of black?
            – Sebastiano
            Oct 28 '18 at 22:45












          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            Oct 28 '18 at 23:21










          • Wonderful. Don't worry at all and you don't have to, at least with me apologize for anything. Thank you so much for your patience and cooperation. My greetings.
            – Sebastiano
            Oct 29 '18 at 12:31














          6












          6








          6






          Here is a proposal. Of course, one can further tune it. Note that I redefined your loop variable to nn since otherwise there are problems with the calc syntax, in which you use n1 etc.



          documentclass[tikz]{standalone}
          usepackage{pgfplots}
          usepackage{amsmath}
          usetikzlibrary{decorations.markings,calc}
          begin{document}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};
          ;}}}}
          foreach nn in{3,4}{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/nn}{$lambda_{nn}$}]
          ({(2+.3*cos(deg(nn*x)))*cos(deg(x))},{(2+.3*cos(deg(nn*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          node at (axis cs:0,-1){$n=nn$};
          end{axis}
          end{tikzpicture}
          }
          end{document}


          enter image description here



          Special service:



          documentclass{article}
          usepackage[margin=1in]{geometry}
          usepackage{amsmath}
          usepackage{subcaption}
          usepackage{floatrow}
          usepackage{pgfplots}
          usetikzlibrary{decorations.markings,calc}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};}}}}

          newcommand{SebastianoPic}[1]{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/#1}{$lambda_{#1}$}]
          ({(2+.3*cos(deg(#1*x)))*cos(deg(x))},{(2+.3*cos(deg(#1*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          end{axis}
          end{tikzpicture}}
          begin{document}

          begin{figure}[htb]
          floatsetup{valign=t, heightadjust=all}
          ffigbox{%
          begin{subfloatrow}
          ffigbox{SebastianoPic{3}}{caption{$n=3$.label{fig:n=3}}}
          ffigbox{SebastianoPic{4}}{caption{$n=4$.label{fig:n=4}}}
          end{subfloatrow}}
          {caption{De Broglie waves.}label{fig:DeBroglie}}
          end{figure}
          end{document}


          enter image description here






          share|improve this answer














          Here is a proposal. Of course, one can further tune it. Note that I redefined your loop variable to nn since otherwise there are problems with the calc syntax, in which you use n1 etc.



          documentclass[tikz]{standalone}
          usepackage{pgfplots}
          usepackage{amsmath}
          usetikzlibrary{decorations.markings,calc}
          begin{document}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};
          ;}}}}
          foreach nn in{3,4}{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/nn}{$lambda_{nn}$}]
          ({(2+.3*cos(deg(nn*x)))*cos(deg(x))},{(2+.3*cos(deg(nn*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          node at (axis cs:0,-1){$n=nn$};
          end{axis}
          end{tikzpicture}
          }
          end{document}


          enter image description here



          Special service:



          documentclass{article}
          usepackage[margin=1in]{geometry}
          usepackage{amsmath}
          usepackage{subcaption}
          usepackage{floatrow}
          usepackage{pgfplots}
          usetikzlibrary{decorations.markings,calc}
          tikzset{mark two maxima/.style n args={3}{%
          postaction=decorate,decoration={markings,
          mark=at position #1 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway] (x0);},
          mark=at position #2 with {draw[purple] (0,0) -- (0,-12pt) coordinate[midway](x1);
          draw let
          p1=($(x1)-(x0)$),n1={atan2(y1,x1)},n2={veclen(x1,y1)*(1/(2*sin(360*#2/2)))}
          in [purple,rotate=-90+2*n1,latex-latex] (x1)
          arc({#2*360}:0:{(n2)}) node[midway,fill=white]{#3};}}}}

          newcommand{SebastianoPic}[1]{%
          begin{tikzpicture}
          begin{axis}[axis equal,
          xmin=-3,xmax=3,
          ymin=-3,ymax=3,
          axis lines=none]
          addplot[samples=400,domain=0:2*pi,very thick,red,
          mark two maxima={0}{1/#1}{$lambda_{#1}$}]
          ({(2+.3*cos(deg(#1*x)))*cos(deg(x))},{(2+.3*cos(deg(#1*x)))*sin(deg(x))});
          addplot[samples=40,domain=0:2*pi,dashed] ({2*cos(deg(x))},{2*sin(deg(x))});
          node at (axis cs:0,0){$color{blue}{bullet}$};
          end{axis}
          end{tikzpicture}}
          begin{document}

          begin{figure}[htb]
          floatsetup{valign=t, heightadjust=all}
          ffigbox{%
          begin{subfloatrow}
          ffigbox{SebastianoPic{3}}{caption{$n=3$.label{fig:n=3}}}
          ffigbox{SebastianoPic{4}}{caption{$n=4$.label{fig:n=4}}}
          end{subfloatrow}}
          {caption{De Broglie waves.}label{fig:DeBroglie}}
          end{figure}
          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 hours ago

























          answered Oct 28 '18 at 22:40









          marmotmarmot

          89.9k4104195




          89.9k4104195








          • 1




            Thank you very much. +1. lambda_3 is very near to dashed circunference: why? Can you to find a better alternative, please, putting also the arrows with the tick violet marks instead of black?
            – Sebastiano
            Oct 28 '18 at 22:45












          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            Oct 28 '18 at 23:21










          • Wonderful. Don't worry at all and you don't have to, at least with me apologize for anything. Thank you so much for your patience and cooperation. My greetings.
            – Sebastiano
            Oct 29 '18 at 12:31














          • 1




            Thank you very much. +1. lambda_3 is very near to dashed circunference: why? Can you to find a better alternative, please, putting also the arrows with the tick violet marks instead of black?
            – Sebastiano
            Oct 28 '18 at 22:45












          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            Oct 28 '18 at 23:21










          • Wonderful. Don't worry at all and you don't have to, at least with me apologize for anything. Thank you so much for your patience and cooperation. My greetings.
            – Sebastiano
            Oct 29 '18 at 12:31








          1




          1




          Thank you very much. +1. lambda_3 is very near to dashed circunference: why? Can you to find a better alternative, please, putting also the arrows with the tick violet marks instead of black?
          – Sebastiano
          Oct 28 '18 at 22:45






          Thank you very much. +1. lambda_3 is very near to dashed circunference: why? Can you to find a better alternative, please, putting also the arrows with the tick violet marks instead of black?
          – Sebastiano
          Oct 28 '18 at 22:45














          @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
          – marmot
          Oct 28 '18 at 23:21




          @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
          – marmot
          Oct 28 '18 at 23:21












          Wonderful. Don't worry at all and you don't have to, at least with me apologize for anything. Thank you so much for your patience and cooperation. My greetings.
          – Sebastiano
          Oct 29 '18 at 12:31




          Wonderful. Don't worry at all and you don't have to, at least with me apologize for anything. Thank you so much for your patience and cooperation. My greetings.
          – Sebastiano
          Oct 29 '18 at 12:31


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f457265%2fwavelength-for-de-broglie-waves%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Lallio

          Unable to find Lightning Node

          Futebolista