Plotting the Lorentz Constant in LaTeX

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











up vote
5
down vote

favorite
1












I'm having trouble producing a graph of the Lorentz constant, defined by



frac1{sqrt1 - v^2/c^2$



as a function of $v$. (Here, $c$ = $3 * 10^8$).



I tried many examples, but I usually get "dimensions too large." Any help is appreciated. I want the plot to show the vertical asymptote as v^2 approaches c^2.










share|improve this question



















  • 2




    Please don't use dollar signs, i.e. $$...$$ to show math expressions. Instead, use ```. We are not in Math.SE :P.
    – manooooh
    Sep 4 at 4:20







  • 5




    Just a physics note: Indeed, as @marmot noticed, it doens't really make sense to call it the Lorentz 'contant' - usually it is called the Lorentz factor, or the gamma factor (as it is most often written as a lowercase gamma).
    – Bobson Dugnutt
    Sep 4 at 7:37















up vote
5
down vote

favorite
1












I'm having trouble producing a graph of the Lorentz constant, defined by



frac1{sqrt1 - v^2/c^2$



as a function of $v$. (Here, $c$ = $3 * 10^8$).



I tried many examples, but I usually get "dimensions too large." Any help is appreciated. I want the plot to show the vertical asymptote as v^2 approaches c^2.










share|improve this question



















  • 2




    Please don't use dollar signs, i.e. $$...$$ to show math expressions. Instead, use ```. We are not in Math.SE :P.
    – manooooh
    Sep 4 at 4:20







  • 5




    Just a physics note: Indeed, as @marmot noticed, it doens't really make sense to call it the Lorentz 'contant' - usually it is called the Lorentz factor, or the gamma factor (as it is most often written as a lowercase gamma).
    – Bobson Dugnutt
    Sep 4 at 7:37













up vote
5
down vote

favorite
1









up vote
5
down vote

favorite
1






1





I'm having trouble producing a graph of the Lorentz constant, defined by



frac1{sqrt1 - v^2/c^2$



as a function of $v$. (Here, $c$ = $3 * 10^8$).



I tried many examples, but I usually get "dimensions too large." Any help is appreciated. I want the plot to show the vertical asymptote as v^2 approaches c^2.










share|improve this question















I'm having trouble producing a graph of the Lorentz constant, defined by



frac1{sqrt1 - v^2/c^2$



as a function of $v$. (Here, $c$ = $3 * 10^8$).



I tried many examples, but I usually get "dimensions too large." Any help is appreciated. I want the plot to show the vertical asymptote as v^2 approaches c^2.







tikz-pgf plot physics






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 4 at 4:32

























asked Sep 4 at 4:12









Hat

1313




1313







  • 2




    Please don't use dollar signs, i.e. $$...$$ to show math expressions. Instead, use ```. We are not in Math.SE :P.
    – manooooh
    Sep 4 at 4:20







  • 5




    Just a physics note: Indeed, as @marmot noticed, it doens't really make sense to call it the Lorentz 'contant' - usually it is called the Lorentz factor, or the gamma factor (as it is most often written as a lowercase gamma).
    – Bobson Dugnutt
    Sep 4 at 7:37













  • 2




    Please don't use dollar signs, i.e. $$...$$ to show math expressions. Instead, use ```. We are not in Math.SE :P.
    – manooooh
    Sep 4 at 4:20







  • 5




    Just a physics note: Indeed, as @marmot noticed, it doens't really make sense to call it the Lorentz 'contant' - usually it is called the Lorentz factor, or the gamma factor (as it is most often written as a lowercase gamma).
    – Bobson Dugnutt
    Sep 4 at 7:37








2




2




Please don't use dollar signs, i.e. $$...$$ to show math expressions. Instead, use ```. We are not in Math.SE :P.
– manooooh
Sep 4 at 4:20





Please don't use dollar signs, i.e. $$...$$ to show math expressions. Instead, use ```. We are not in Math.SE :P.
– manooooh
Sep 4 at 4:20





5




5




Just a physics note: Indeed, as @marmot noticed, it doens't really make sense to call it the Lorentz 'contant' - usually it is called the Lorentz factor, or the gamma factor (as it is most often written as a lowercase gamma).
– Bobson Dugnutt
Sep 4 at 7:37





Just a physics note: Indeed, as @marmot noticed, it doens't really make sense to call it the Lorentz 'contant' - usually it is called the Lorentz factor, or the gamma factor (as it is most often written as a lowercase gamma).
– Bobson Dugnutt
Sep 4 at 7:37











1 Answer
1






active

oldest

votes

















up vote
12
down vote













Well, if this was a constant, it would not really be worth plotting, would it? I use natural units in which $hbar=c=1$. To show that units do not matter, I am labeling the x-axis v/c.



documentclass[tikz,margin=3.14mm]standalone
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture[declare function=Lorentz(x,c)=1/sqrt(1-(x/c)*(x/c));]
beginaxis[ymax=pi,ylabel=$gamma$,xlabel=$v/c$]
addplot[blue,domain=0:1,samples=100] Lorentz(x,1);
endaxis
endtikzpicture
enddocument


enter image description here






share|improve this answer




















    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%2f449208%2fplotting-the-lorentz-constant-in-latex%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
    12
    down vote













    Well, if this was a constant, it would not really be worth plotting, would it? I use natural units in which $hbar=c=1$. To show that units do not matter, I am labeling the x-axis v/c.



    documentclass[tikz,margin=3.14mm]standalone
    usepackagepgfplots
    pgfplotssetcompat=1.16
    begindocument
    begintikzpicture[declare function=Lorentz(x,c)=1/sqrt(1-(x/c)*(x/c));]
    beginaxis[ymax=pi,ylabel=$gamma$,xlabel=$v/c$]
    addplot[blue,domain=0:1,samples=100] Lorentz(x,1);
    endaxis
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer
























      up vote
      12
      down vote













      Well, if this was a constant, it would not really be worth plotting, would it? I use natural units in which $hbar=c=1$. To show that units do not matter, I am labeling the x-axis v/c.



      documentclass[tikz,margin=3.14mm]standalone
      usepackagepgfplots
      pgfplotssetcompat=1.16
      begindocument
      begintikzpicture[declare function=Lorentz(x,c)=1/sqrt(1-(x/c)*(x/c));]
      beginaxis[ymax=pi,ylabel=$gamma$,xlabel=$v/c$]
      addplot[blue,domain=0:1,samples=100] Lorentz(x,1);
      endaxis
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer






















        up vote
        12
        down vote










        up vote
        12
        down vote









        Well, if this was a constant, it would not really be worth plotting, would it? I use natural units in which $hbar=c=1$. To show that units do not matter, I am labeling the x-axis v/c.



        documentclass[tikz,margin=3.14mm]standalone
        usepackagepgfplots
        pgfplotssetcompat=1.16
        begindocument
        begintikzpicture[declare function=Lorentz(x,c)=1/sqrt(1-(x/c)*(x/c));]
        beginaxis[ymax=pi,ylabel=$gamma$,xlabel=$v/c$]
        addplot[blue,domain=0:1,samples=100] Lorentz(x,1);
        endaxis
        endtikzpicture
        enddocument


        enter image description here






        share|improve this answer












        Well, if this was a constant, it would not really be worth plotting, would it? I use natural units in which $hbar=c=1$. To show that units do not matter, I am labeling the x-axis v/c.



        documentclass[tikz,margin=3.14mm]standalone
        usepackagepgfplots
        pgfplotssetcompat=1.16
        begindocument
        begintikzpicture[declare function=Lorentz(x,c)=1/sqrt(1-(x/c)*(x/c));]
        beginaxis[ymax=pi,ylabel=$gamma$,xlabel=$v/c$]
        addplot[blue,domain=0:1,samples=100] Lorentz(x,1);
        endaxis
        endtikzpicture
        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 4 at 4:36









        marmot

        58k462124




        58k462124



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449208%2fplotting-the-lorentz-constant-in-latex%23new-answer', 'question_page');

            );

            Post as a guest













































































            這個網誌中的熱門文章

            tkz-euclide: tkzDrawCircle[R] not working

            How to combine Bézier curves to a surface?

            1st Magritte Awards