Plotting the arctanh

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












5














I've been trying to plot the arctanh function for a while now



documentclassarticle
usepackagetikz
usepackagepgfplots

begindocument
pgfkeys/pgf/declare function=arctanh(x) = 0.5*ln(1+x)/ln(1-x);
vspace1cm

begintikzpicture[trim axis left]
beginaxis[
xmin=-1, xmax=1,
ymin=-1, ymax=1,
samples=100,
enlarge x limits=false,
grid=both,
no markers,
axis equal]
addplot +[thick] arctanh(x);
endaxis
endtikzpicture
enddocument


but it doesn't look right, what am I doing wrong?










share|improve this question


























    5














    I've been trying to plot the arctanh function for a while now



    documentclassarticle
    usepackagetikz
    usepackagepgfplots

    begindocument
    pgfkeys/pgf/declare function=arctanh(x) = 0.5*ln(1+x)/ln(1-x);
    vspace1cm

    begintikzpicture[trim axis left]
    beginaxis[
    xmin=-1, xmax=1,
    ymin=-1, ymax=1,
    samples=100,
    enlarge x limits=false,
    grid=both,
    no markers,
    axis equal]
    addplot +[thick] arctanh(x);
    endaxis
    endtikzpicture
    enddocument


    but it doesn't look right, what am I doing wrong?










    share|improve this question
























      5












      5








      5







      I've been trying to plot the arctanh function for a while now



      documentclassarticle
      usepackagetikz
      usepackagepgfplots

      begindocument
      pgfkeys/pgf/declare function=arctanh(x) = 0.5*ln(1+x)/ln(1-x);
      vspace1cm

      begintikzpicture[trim axis left]
      beginaxis[
      xmin=-1, xmax=1,
      ymin=-1, ymax=1,
      samples=100,
      enlarge x limits=false,
      grid=both,
      no markers,
      axis equal]
      addplot +[thick] arctanh(x);
      endaxis
      endtikzpicture
      enddocument


      but it doesn't look right, what am I doing wrong?










      share|improve this question













      I've been trying to plot the arctanh function for a while now



      documentclassarticle
      usepackagetikz
      usepackagepgfplots

      begindocument
      pgfkeys/pgf/declare function=arctanh(x) = 0.5*ln(1+x)/ln(1-x);
      vspace1cm

      begintikzpicture[trim axis left]
      beginaxis[
      xmin=-1, xmax=1,
      ymin=-1, ymax=1,
      samples=100,
      enlarge x limits=false,
      grid=both,
      no markers,
      axis equal]
      addplot +[thick] arctanh(x);
      endaxis
      endtikzpicture
      enddocument


      but it doesn't look right, what am I doing wrong?







      tikz-pgf






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 19 '18 at 9:47









      Three Diag

      20927




      20927




















          2 Answers
          2






          active

          oldest

          votes


















          7














          It does not look right because there is a small mistake in the definition of arctanh.



          documentclassarticle
          usepackagetikz
          usepackagepgfplots

          begindocument
          pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln(1+x)-ln(1-x));
          vspace1cm

          begintikzpicture[trim axis left]
          beginaxis[
          xmin=-1, xmax=1,
          ymin=-1, ymax=1,
          samples=100,
          enlarge x limits=false,
          grid=both,
          no markers,
          axis equal]
          addplot +[thick] arctanh(x);
          endaxis
          endtikzpicture
          enddocument


          enter image description here



          Or, a somewhat closer representations to yours and a domain that avoids the warnings.



          documentclassarticle
          usepackagetikz
          usepackagepgfplots
          pgfplotssetcompat=1.16

          begindocument
          pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln((1+x)/(1-x)));
          vspace1cm

          begintikzpicture[trim axis left]
          beginaxis[
          xmin=-1, xmax=1,
          ymin=-1, ymax=1,
          samples=100,
          enlarge x limits=false,
          grid=both,
          no markers,
          axis equal]
          addplot +[thick,domain=-0.99:0.99] arctanh(x);
          endaxis
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer




























            4














            For comparism purpose: run with xelatex



            documentclassarticle
            usepackagepstricks,pst-math,pst-plot
            begindocument
            beginpspicture[algebraic](-5,-4)(5,4)
            psaxes->(0,0)(-5,-4)(5,4)
            psplot[linewidth=1.5pt,linecolor=blue]15ACOSH(x)
            psplot[linewidth=1.5pt,linecolor=red]-55ASINH(x)
            psplot[linewidth=1.5pt,linecolor=green]-.999.999ATANH(x)
            endpspicture

            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',
              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%2f466501%2fplotting-the-arctanh%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              7














              It does not look right because there is a small mistake in the definition of arctanh.



              documentclassarticle
              usepackagetikz
              usepackagepgfplots

              begindocument
              pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln(1+x)-ln(1-x));
              vspace1cm

              begintikzpicture[trim axis left]
              beginaxis[
              xmin=-1, xmax=1,
              ymin=-1, ymax=1,
              samples=100,
              enlarge x limits=false,
              grid=both,
              no markers,
              axis equal]
              addplot +[thick] arctanh(x);
              endaxis
              endtikzpicture
              enddocument


              enter image description here



              Or, a somewhat closer representations to yours and a domain that avoids the warnings.



              documentclassarticle
              usepackagetikz
              usepackagepgfplots
              pgfplotssetcompat=1.16

              begindocument
              pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln((1+x)/(1-x)));
              vspace1cm

              begintikzpicture[trim axis left]
              beginaxis[
              xmin=-1, xmax=1,
              ymin=-1, ymax=1,
              samples=100,
              enlarge x limits=false,
              grid=both,
              no markers,
              axis equal]
              addplot +[thick,domain=-0.99:0.99] arctanh(x);
              endaxis
              endtikzpicture
              enddocument


              enter image description here






              share|improve this answer

























                7














                It does not look right because there is a small mistake in the definition of arctanh.



                documentclassarticle
                usepackagetikz
                usepackagepgfplots

                begindocument
                pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln(1+x)-ln(1-x));
                vspace1cm

                begintikzpicture[trim axis left]
                beginaxis[
                xmin=-1, xmax=1,
                ymin=-1, ymax=1,
                samples=100,
                enlarge x limits=false,
                grid=both,
                no markers,
                axis equal]
                addplot +[thick] arctanh(x);
                endaxis
                endtikzpicture
                enddocument


                enter image description here



                Or, a somewhat closer representations to yours and a domain that avoids the warnings.



                documentclassarticle
                usepackagetikz
                usepackagepgfplots
                pgfplotssetcompat=1.16

                begindocument
                pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln((1+x)/(1-x)));
                vspace1cm

                begintikzpicture[trim axis left]
                beginaxis[
                xmin=-1, xmax=1,
                ymin=-1, ymax=1,
                samples=100,
                enlarge x limits=false,
                grid=both,
                no markers,
                axis equal]
                addplot +[thick,domain=-0.99:0.99] arctanh(x);
                endaxis
                endtikzpicture
                enddocument


                enter image description here






                share|improve this answer























                  7












                  7








                  7






                  It does not look right because there is a small mistake in the definition of arctanh.



                  documentclassarticle
                  usepackagetikz
                  usepackagepgfplots

                  begindocument
                  pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln(1+x)-ln(1-x));
                  vspace1cm

                  begintikzpicture[trim axis left]
                  beginaxis[
                  xmin=-1, xmax=1,
                  ymin=-1, ymax=1,
                  samples=100,
                  enlarge x limits=false,
                  grid=both,
                  no markers,
                  axis equal]
                  addplot +[thick] arctanh(x);
                  endaxis
                  endtikzpicture
                  enddocument


                  enter image description here



                  Or, a somewhat closer representations to yours and a domain that avoids the warnings.



                  documentclassarticle
                  usepackagetikz
                  usepackagepgfplots
                  pgfplotssetcompat=1.16

                  begindocument
                  pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln((1+x)/(1-x)));
                  vspace1cm

                  begintikzpicture[trim axis left]
                  beginaxis[
                  xmin=-1, xmax=1,
                  ymin=-1, ymax=1,
                  samples=100,
                  enlarge x limits=false,
                  grid=both,
                  no markers,
                  axis equal]
                  addplot +[thick,domain=-0.99:0.99] arctanh(x);
                  endaxis
                  endtikzpicture
                  enddocument


                  enter image description here






                  share|improve this answer












                  It does not look right because there is a small mistake in the definition of arctanh.



                  documentclassarticle
                  usepackagetikz
                  usepackagepgfplots

                  begindocument
                  pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln(1+x)-ln(1-x));
                  vspace1cm

                  begintikzpicture[trim axis left]
                  beginaxis[
                  xmin=-1, xmax=1,
                  ymin=-1, ymax=1,
                  samples=100,
                  enlarge x limits=false,
                  grid=both,
                  no markers,
                  axis equal]
                  addplot +[thick] arctanh(x);
                  endaxis
                  endtikzpicture
                  enddocument


                  enter image description here



                  Or, a somewhat closer representations to yours and a domain that avoids the warnings.



                  documentclassarticle
                  usepackagetikz
                  usepackagepgfplots
                  pgfplotssetcompat=1.16

                  begindocument
                  pgfkeys/pgf/declare function=arctanh(x) = 0.5*(ln((1+x)/(1-x)));
                  vspace1cm

                  begintikzpicture[trim axis left]
                  beginaxis[
                  xmin=-1, xmax=1,
                  ymin=-1, ymax=1,
                  samples=100,
                  enlarge x limits=false,
                  grid=both,
                  no markers,
                  axis equal]
                  addplot +[thick,domain=-0.99:0.99] arctanh(x);
                  endaxis
                  endtikzpicture
                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 19 '18 at 12:25









                  marmot

                  87.4k4100187




                  87.4k4100187





















                      4














                      For comparism purpose: run with xelatex



                      documentclassarticle
                      usepackagepstricks,pst-math,pst-plot
                      begindocument
                      beginpspicture[algebraic](-5,-4)(5,4)
                      psaxes->(0,0)(-5,-4)(5,4)
                      psplot[linewidth=1.5pt,linecolor=blue]15ACOSH(x)
                      psplot[linewidth=1.5pt,linecolor=red]-55ASINH(x)
                      psplot[linewidth=1.5pt,linecolor=green]-.999.999ATANH(x)
                      endpspicture

                      enddocument


                      enter image description here






                      share|improve this answer

























                        4














                        For comparism purpose: run with xelatex



                        documentclassarticle
                        usepackagepstricks,pst-math,pst-plot
                        begindocument
                        beginpspicture[algebraic](-5,-4)(5,4)
                        psaxes->(0,0)(-5,-4)(5,4)
                        psplot[linewidth=1.5pt,linecolor=blue]15ACOSH(x)
                        psplot[linewidth=1.5pt,linecolor=red]-55ASINH(x)
                        psplot[linewidth=1.5pt,linecolor=green]-.999.999ATANH(x)
                        endpspicture

                        enddocument


                        enter image description here






                        share|improve this answer























                          4












                          4








                          4






                          For comparism purpose: run with xelatex



                          documentclassarticle
                          usepackagepstricks,pst-math,pst-plot
                          begindocument
                          beginpspicture[algebraic](-5,-4)(5,4)
                          psaxes->(0,0)(-5,-4)(5,4)
                          psplot[linewidth=1.5pt,linecolor=blue]15ACOSH(x)
                          psplot[linewidth=1.5pt,linecolor=red]-55ASINH(x)
                          psplot[linewidth=1.5pt,linecolor=green]-.999.999ATANH(x)
                          endpspicture

                          enddocument


                          enter image description here






                          share|improve this answer












                          For comparism purpose: run with xelatex



                          documentclassarticle
                          usepackagepstricks,pst-math,pst-plot
                          begindocument
                          beginpspicture[algebraic](-5,-4)(5,4)
                          psaxes->(0,0)(-5,-4)(5,4)
                          psplot[linewidth=1.5pt,linecolor=blue]15ACOSH(x)
                          psplot[linewidth=1.5pt,linecolor=red]-55ASINH(x)
                          psplot[linewidth=1.5pt,linecolor=green]-.999.999ATANH(x)
                          endpspicture

                          enddocument


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 19 '18 at 12:47









                          Herbert

                          269k24408717




                          269k24408717



























                              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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2f466501%2fplotting-the-arctanh%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

                              How to check contact read email or not when send email to Individual?

                              Displaying single band from multi-band raster using QGIS

                              How many registers does an x86_64 CPU actually have?