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;








5















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










share|improve this question






























    5















    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










    share|improve this question


























      5












      5








      5








      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










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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




















          1 Answer
          1






          active

          oldest

          votes


















          9














          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


          enter image description here



          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


          enter image description here






          share|improve this answer

























          • Thank you so much.

            – Inspire Maths
            Jul 5 at 4:57













          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%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









          9














          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


          enter image description here



          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


          enter image description here






          share|improve this answer

























          • Thank you so much.

            – Inspire Maths
            Jul 5 at 4:57















          9














          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


          enter image description here



          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


          enter image description here






          share|improve this answer

























          • Thank you so much.

            – Inspire Maths
            Jul 5 at 4:57













          9












          9








          9







          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


          enter image description here



          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


          enter image description here






          share|improve this answer















          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


          enter image description here



          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


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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

















          • 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

















          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.




          draft saved


          draft discarded














          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





















































          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

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?