Plotting the Lorentz Constant in LaTeX

Clash Royale CLAN TAG#URR8PPP
up vote
5
down vote
favorite
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
add a comment |Â
up vote
5
down vote
favorite
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
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
add a comment |Â
up vote
5
down vote
favorite
up vote
5
down vote
favorite
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
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
tikz-pgf plot physics
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
add a comment |Â
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
add a comment |Â
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

add a comment |Â
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

add a comment |Â
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

add a comment |Â
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

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

answered Sep 4 at 4:36
marmot
58k462124
58k462124
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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