How to plot (sqrt(1+x)-sqrt(1-x))/x?TikZ: Cropping the Bounding BoxHow can I put a coloured outline around fraction lines?How to draw Venn diagrams (especially: complements) in LaTeXTikZ: Drawing an arc from an intersection to an intersectionpgfplots wrongly calculate pgfplots@data@xmin in the case of mixed plots (with and without error bar)TikZ with sqrt( ) functionSine function in pgfplots and MATLAB. Why are different results obtained?Drawing an imperfect spiral in TikZpgfplots: modify axis after end axis / cut tikzpicture after drawingHow to color tikz mindmap nodes by y-coordinate
Why would an Inquisitive rogue choose to use Insightful Fighting as opposed to using their Cunning Action to Hide?
Do native speakers use ZVE or CPU?
Rearranging the formula
Where is my understanding of TikZ styles wrong?
Ways to express "The reader may wish to..." / "The reader may want to..."
In which ways do anagamis still experience ignorance?
How does one stock fund's charge of 1% more in operating expenses than another fund lower expected returns by 10%?
Can I call 112 to check a police officer's identity in the Czech Republic?
Construct a pentagon avoiding compass use
Would letting a multiclass character rebuild their character to be single-classed be game-breaking?
Why the term 'unified' in "unified mass unit"?
How do Windows version numbers work?
Bob's unnecessary trip to the shops
Why would guns not work in the dungeon?
Does Google Maps take into account hills/inclines for route times?
What is the German equivalent of 干物女 (dried fish woman)?
How can I deal with a player trying to insert real-world mythology into my homebrew setting?
When is pointing out a person's hypocrisy not considered to be a logical fallacy?
What is temperature on a quantum level?
Is this floating-point optimization allowed?
nginx serves wrong domain site. It doenst shows default site if no configuration applies
What's the point of this scene involving Flash Thompson at the airport?
I quit, and boss offered me 3 month "grace period" where I could still come back
As a DM, how to avoid unconscious metagaming when dealing with a high AC character?
How to plot (sqrt(1+x)-sqrt(1-x))/x?
TikZ: Cropping the Bounding BoxHow can I put a coloured outline around fraction lines?How to draw Venn diagrams (especially: complements) in LaTeXTikZ: Drawing an arc from an intersection to an intersectionpgfplots wrongly calculate pgfplots@data@xmin in the case of mixed plots (with and without error bar)TikZ with sqrt( ) functionSine function in pgfplots and MATLAB. Why are different results obtained?Drawing an imperfect spiral in TikZpgfplots: modify axis after end axis / cut tikzpicture after drawingHow to color tikz mindmap nodes by y-coordinate
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am not able to get the correct graph of (sqrt(1+x)-sqrt(1-x))/x by using the following
begintikzpicture[scale=1,>=stealth]
tkzInit[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,xstep=0.5,ystep=0.5]
tkzAxeXY[color=black!80]
draw[scale=1,domain=-1:1,smooth,thick,variable=x,red,->] plot (x,((sqrt(1+x)) - (sqrt(1-x)))/(x));
endtikzpicture
Please help me with this
tikz-pgf
add a comment |
I am not able to get the correct graph of (sqrt(1+x)-sqrt(1-x))/x by using the following
begintikzpicture[scale=1,>=stealth]
tkzInit[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,xstep=0.5,ystep=0.5]
tkzAxeXY[color=black!80]
draw[scale=1,domain=-1:1,smooth,thick,variable=x,red,->] plot (x,((sqrt(1+x)) - (sqrt(1-x)))/(x));
endtikzpicture
Please help me with this
tikz-pgf
add a comment |
I am not able to get the correct graph of (sqrt(1+x)-sqrt(1-x))/x by using the following
begintikzpicture[scale=1,>=stealth]
tkzInit[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,xstep=0.5,ystep=0.5]
tkzAxeXY[color=black!80]
draw[scale=1,domain=-1:1,smooth,thick,variable=x,red,->] plot (x,((sqrt(1+x)) - (sqrt(1-x)))/(x));
endtikzpicture
Please help me with this
tikz-pgf
I am not able to get the correct graph of (sqrt(1+x)-sqrt(1-x))/x by using the following
begintikzpicture[scale=1,>=stealth]
tkzInit[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,xstep=0.5,ystep=0.5]
tkzAxeXY[color=black!80]
draw[scale=1,domain=-1:1,smooth,thick,variable=x,red,->] plot (x,((sqrt(1+x)) - (sqrt(1-x)))/(x));
endtikzpicture
Please help me with this
tikz-pgf
tikz-pgf
edited Jul 5 at 4:23
siracusa
6,9671 gold badge18 silver badges33 bronze badges
6,9671 gold badge18 silver badges33 bronze badges
asked Jul 5 at 4:18
Inspire MathsInspire Maths
261 bronze badge
261 bronze badge
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You only need to avoid the apparent singularity at 0, which can be achieved by setting the samples to an even number (for the symmetric domain at hand).
documentclass[tikz,border=3.14mm]standalone
usepackagetkz-euclide
begindocument
begintikzpicture[scale=1,>=stealth]
tkzInit[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,xstep=0.5,ystep=0.5]
tkzAxeXY[color=black!80]
draw[scale=1,domain=-1:1,smooth,thick,variable=x,red,->,samples=100]
plot (x,((sqrt(1+x)) - (sqrt(1-x)))/(x));
endtikzpicture
enddocument
The result can be improved (IMHO) by bending the arrow and using pgfplots
.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryarrows.meta,bending
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture
beginaxis[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,axis lines=middle]
addplot [domain=-1:1,smooth,thick,red,-Stealth[bend],samples=100]
((sqrt(1+x)) - (sqrt(1-x)))/(x);
endaxis
endtikzpicture
enddocument
Thank you so much.
– Inspire Maths
Jul 5 at 4:57
add a comment |
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
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f498691%2fhow-to-plot-sqrt1x-sqrt1-x-x%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
You only need to avoid the apparent singularity at 0, which can be achieved by setting the samples to an even number (for the symmetric domain at hand).
documentclass[tikz,border=3.14mm]standalone
usepackagetkz-euclide
begindocument
begintikzpicture[scale=1,>=stealth]
tkzInit[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,xstep=0.5,ystep=0.5]
tkzAxeXY[color=black!80]
draw[scale=1,domain=-1:1,smooth,thick,variable=x,red,->,samples=100]
plot (x,((sqrt(1+x)) - (sqrt(1-x)))/(x));
endtikzpicture
enddocument
The result can be improved (IMHO) by bending the arrow and using pgfplots
.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryarrows.meta,bending
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture
beginaxis[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,axis lines=middle]
addplot [domain=-1:1,smooth,thick,red,-Stealth[bend],samples=100]
((sqrt(1+x)) - (sqrt(1-x)))/(x);
endaxis
endtikzpicture
enddocument
Thank you so much.
– Inspire Maths
Jul 5 at 4:57
add a comment |
You only need to avoid the apparent singularity at 0, which can be achieved by setting the samples to an even number (for the symmetric domain at hand).
documentclass[tikz,border=3.14mm]standalone
usepackagetkz-euclide
begindocument
begintikzpicture[scale=1,>=stealth]
tkzInit[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,xstep=0.5,ystep=0.5]
tkzAxeXY[color=black!80]
draw[scale=1,domain=-1:1,smooth,thick,variable=x,red,->,samples=100]
plot (x,((sqrt(1+x)) - (sqrt(1-x)))/(x));
endtikzpicture
enddocument
The result can be improved (IMHO) by bending the arrow and using pgfplots
.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryarrows.meta,bending
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture
beginaxis[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,axis lines=middle]
addplot [domain=-1:1,smooth,thick,red,-Stealth[bend],samples=100]
((sqrt(1+x)) - (sqrt(1-x)))/(x);
endaxis
endtikzpicture
enddocument
Thank you so much.
– Inspire Maths
Jul 5 at 4:57
add a comment |
You only need to avoid the apparent singularity at 0, which can be achieved by setting the samples to an even number (for the symmetric domain at hand).
documentclass[tikz,border=3.14mm]standalone
usepackagetkz-euclide
begindocument
begintikzpicture[scale=1,>=stealth]
tkzInit[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,xstep=0.5,ystep=0.5]
tkzAxeXY[color=black!80]
draw[scale=1,domain=-1:1,smooth,thick,variable=x,red,->,samples=100]
plot (x,((sqrt(1+x)) - (sqrt(1-x)))/(x));
endtikzpicture
enddocument
The result can be improved (IMHO) by bending the arrow and using pgfplots
.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryarrows.meta,bending
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture
beginaxis[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,axis lines=middle]
addplot [domain=-1:1,smooth,thick,red,-Stealth[bend],samples=100]
((sqrt(1+x)) - (sqrt(1-x)))/(x);
endaxis
endtikzpicture
enddocument
You only need to avoid the apparent singularity at 0, which can be achieved by setting the samples to an even number (for the symmetric domain at hand).
documentclass[tikz,border=3.14mm]standalone
usepackagetkz-euclide
begindocument
begintikzpicture[scale=1,>=stealth]
tkzInit[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,xstep=0.5,ystep=0.5]
tkzAxeXY[color=black!80]
draw[scale=1,domain=-1:1,smooth,thick,variable=x,red,->,samples=100]
plot (x,((sqrt(1+x)) - (sqrt(1-x)))/(x));
endtikzpicture
enddocument
The result can be improved (IMHO) by bending the arrow and using pgfplots
.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryarrows.meta,bending
usepackagepgfplots
pgfplotssetcompat=1.16
begindocument
begintikzpicture
beginaxis[xmin=-1.5,xmax=1.5,ymin=0,ymax=2,axis lines=middle]
addplot [domain=-1:1,smooth,thick,red,-Stealth[bend],samples=100]
((sqrt(1+x)) - (sqrt(1-x)))/(x);
endaxis
endtikzpicture
enddocument
edited Jul 5 at 4:36
answered Jul 5 at 4:21
marmotmarmot
144k6 gold badges188 silver badges348 bronze badges
144k6 gold badges188 silver badges348 bronze badges
Thank you so much.
– Inspire Maths
Jul 5 at 4:57
add a comment |
Thank you so much.
– Inspire Maths
Jul 5 at 4:57
Thank you so much.
– Inspire Maths
Jul 5 at 4:57
Thank you so much.
– Inspire Maths
Jul 5 at 4:57
add a comment |
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.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f498691%2fhow-to-plot-sqrt1x-sqrt1-x-x%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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