Wavelength for de Broglie waves

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












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
usepackagepgfplots
usepackageamsmath
begindocument

foreach n in3,4%
begintikzpicture
beginaxis[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)$colorbluebullet$;
node at (axis cs:0,-1)$n=n$;
endaxis
endtikzpicture

enddocument


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



























    up vote
    3
    down vote

    favorite












    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
    usepackagepgfplots
    usepackageamsmath
    begindocument

    foreach n in3,4%
    begintikzpicture
    beginaxis[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)$colorbluebullet$;
    node at (axis cs:0,-1)$n=n$;
    endaxis
    endtikzpicture

    enddocument


    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

























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      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
      usepackagepgfplots
      usepackageamsmath
      begindocument

      foreach n in3,4%
      begintikzpicture
      beginaxis[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)$colorbluebullet$;
      node at (axis cs:0,-1)$n=n$;
      endaxis
      endtikzpicture

      enddocument


      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
      usepackagepgfplots
      usepackageamsmath
      begindocument

      foreach n in3,4%
      begintikzpicture
      beginaxis[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)$colorbluebullet$;
      node at (axis cs:0,-1)$n=n$;
      endaxis
      endtikzpicture

      enddocument


      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 3 hours ago

























      asked 4 hours ago









      Sebastiano

      7,83941654




      7,83941654




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Here is a proposal. Of course, one can further tune it.



          documentclass[tikz]standalone
          usepackagepgfplots
          usepackageamsmath
          usetikzlibrarydecorations.markings,calc
          begindocument
          tikzsetmark 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);
          path let p1=($(x1)-(x0)$),n1=atan2(y1,x1) in pgfextraxdefmyangn1;
          draw [purple,rotate=-90+2*myang,latex-latex] (x1) arc(#2*360:0:2.15cm+6pt) node[midway,fill=white]#3
          -- (x0);
          foreach n in3,4%
          begintikzpicture
          beginaxis[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=01/n$lambda_n$] ((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)$colorbluebullet$;
          node at (axis cs:0,-1)$n=n$;
          endaxis
          endtikzpicture

          enddocument


          enter image description here






          share|improve this answer






















          • 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
            3 hours ago











          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            3 hours ago










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          Here is a proposal. Of course, one can further tune it.



          documentclass[tikz]standalone
          usepackagepgfplots
          usepackageamsmath
          usetikzlibrarydecorations.markings,calc
          begindocument
          tikzsetmark 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);
          path let p1=($(x1)-(x0)$),n1=atan2(y1,x1) in pgfextraxdefmyangn1;
          draw [purple,rotate=-90+2*myang,latex-latex] (x1) arc(#2*360:0:2.15cm+6pt) node[midway,fill=white]#3
          -- (x0);
          foreach n in3,4%
          begintikzpicture
          beginaxis[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=01/n$lambda_n$] ((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)$colorbluebullet$;
          node at (axis cs:0,-1)$n=n$;
          endaxis
          endtikzpicture

          enddocument


          enter image description here






          share|improve this answer






















          • 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
            3 hours ago











          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            3 hours ago














          up vote
          2
          down vote













          Here is a proposal. Of course, one can further tune it.



          documentclass[tikz]standalone
          usepackagepgfplots
          usepackageamsmath
          usetikzlibrarydecorations.markings,calc
          begindocument
          tikzsetmark 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);
          path let p1=($(x1)-(x0)$),n1=atan2(y1,x1) in pgfextraxdefmyangn1;
          draw [purple,rotate=-90+2*myang,latex-latex] (x1) arc(#2*360:0:2.15cm+6pt) node[midway,fill=white]#3
          -- (x0);
          foreach n in3,4%
          begintikzpicture
          beginaxis[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=01/n$lambda_n$] ((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)$colorbluebullet$;
          node at (axis cs:0,-1)$n=n$;
          endaxis
          endtikzpicture

          enddocument


          enter image description here






          share|improve this answer






















          • 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
            3 hours ago











          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            3 hours ago












          up vote
          2
          down vote










          up vote
          2
          down vote









          Here is a proposal. Of course, one can further tune it.



          documentclass[tikz]standalone
          usepackagepgfplots
          usepackageamsmath
          usetikzlibrarydecorations.markings,calc
          begindocument
          tikzsetmark 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);
          path let p1=($(x1)-(x0)$),n1=atan2(y1,x1) in pgfextraxdefmyangn1;
          draw [purple,rotate=-90+2*myang,latex-latex] (x1) arc(#2*360:0:2.15cm+6pt) node[midway,fill=white]#3
          -- (x0);
          foreach n in3,4%
          begintikzpicture
          beginaxis[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=01/n$lambda_n$] ((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)$colorbluebullet$;
          node at (axis cs:0,-1)$n=n$;
          endaxis
          endtikzpicture

          enddocument


          enter image description here






          share|improve this answer














          Here is a proposal. Of course, one can further tune it.



          documentclass[tikz]standalone
          usepackagepgfplots
          usepackageamsmath
          usetikzlibrarydecorations.markings,calc
          begindocument
          tikzsetmark 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);
          path let p1=($(x1)-(x0)$),n1=atan2(y1,x1) in pgfextraxdefmyangn1;
          draw [purple,rotate=-90+2*myang,latex-latex] (x1) arc(#2*360:0:2.15cm+6pt) node[midway,fill=white]#3
          -- (x0);
          foreach n in3,4%
          begintikzpicture
          beginaxis[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=01/n$lambda_n$] ((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)$colorbluebullet$;
          node at (axis cs:0,-1)$n=n$;
          endaxis
          endtikzpicture

          enddocument


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 3 hours ago

























          answered 3 hours ago









          marmot

          69.4k476148




          69.4k476148











          • 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
            3 hours ago











          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            3 hours ago
















          • 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
            3 hours ago











          • @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
            – marmot
            3 hours ago















          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
          3 hours ago





          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
          3 hours ago













          @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
          – marmot
          3 hours ago




          @Sebastiano Better now. (The transformations to the tangent space are tricky and confused me for a while.)
          – marmot
          3 hours ago

















           

          draft saved


          draft discarded















































           


          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













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          Installing NextGIS Connect into QGIS 3?

          One-line joke