To plot branch cut of logarithmVisualizing Riemann surface (two branches) of logarithmHow to plot the contour of f[x,y]==0 if always f[x,y]>=0Change Contour Plot Overlap OrderingBranch cuts of sqrtDifferentiate contour color based on different functions rather than the contour valuesBranch cut of $sqrtx^2-1$?How to Approximate at Non-differentiable Point (forced Series Expansion around Branch Cut)Visualizing the complex logarithm

Why doesn't mathematics collapse down, even though humans quite often make mistakes in their proofs?

Why don't politicians push for fossil fuel reduction by pointing out their scarcity?

Show two plots together: a two dimensional curve tangent to the maxima of a three dimensional plot

Quick destruction of a helium filled airship?

Why is su world executable?

Designing a prison for a telekinetic race

Earliest evidence of objects intended for future archaeologists?

Virtual destructor moves object out of rodata section

Are unaudited server logs admissible in a court of law?

How to add a table description to a longtable?

Replacing old plug-in 220V range with new hardwire 3-wire electric cooktop: remove outlet or add a plug?

Does == actually work the same or different when comparing two primitives vs two Objects in Java?

How can I train a replacement without them knowing?

To plot branch cut of logarithm

What was the intention with the Commodore 128?

Why do balloons get cold when they deflate?

Why do aircraft leave cruising altitude long before landing just to circle?

Which basis does the wavefunction collapse to?

Adding things to bunches of things vs multiplication

Meaning and structure of headline "Hair it is: A List of ..."

Are there categories whose internal hom is somewhat 'exotic'?

What should I do with the stock I own if I anticipate there will be a recession?

Why don't modern jet engines use forced exhaust mixing?

Does git delete empty folders?



To plot branch cut of logarithm


Visualizing Riemann surface (two branches) of logarithmHow to plot the contour of f[x,y]==0 if always f[x,y]>=0Change Contour Plot Overlap OrderingBranch cuts of sqrtDifferentiate contour color based on different functions rather than the contour valuesBranch cut of $sqrtx^2-1$?How to Approximate at Non-differentiable Point (forced Series Expansion around Branch Cut)Visualizing the complex logarithm






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3












$begingroup$


I like to see the branch cut of the function:



$$1 - z ln[(1+z)/z].$$



If I plot it in the complex plane:



Plot3D[Re[1 - (x + I y) Log[(1 + x + I y)/(x + I y)]], x, -2, 
2, y, -2, 2]


The result is:



enter image description here



which shows the brach cut correctly between -1 and 0. How can I get rid of the hole in the picture and have a smooth line as a branch cut rather than a white line discontinuity?



Also the same for contour plot:



With[z = x + I y, 
ContourPlot[Re[1 - z Log[(1 + z)/(z)]], x, -2, 2, y, -2, 2,
Contours -> 40]]


enter image description here










share|improve this question









New contributor



Call me potato. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$









  • 1




    $begingroup$
    Add the plot option: PlotRange -> All
    $endgroup$
    – Fraccalo
    10 hours ago










  • $begingroup$
    @Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
    $endgroup$
    – Call me potato.
    10 hours ago










  • $begingroup$
    Not sure, but if you have an analytical formula of where the branch cut is, then it would be quite simple to plot it on top of the original 3d plot
    $endgroup$
    – Fraccalo
    10 hours ago






  • 2




    $begingroup$
    You can use Exclusions -> None to get rid of the white line.
    $endgroup$
    – C. E.
    10 hours ago

















3












$begingroup$


I like to see the branch cut of the function:



$$1 - z ln[(1+z)/z].$$



If I plot it in the complex plane:



Plot3D[Re[1 - (x + I y) Log[(1 + x + I y)/(x + I y)]], x, -2, 
2, y, -2, 2]


The result is:



enter image description here



which shows the brach cut correctly between -1 and 0. How can I get rid of the hole in the picture and have a smooth line as a branch cut rather than a white line discontinuity?



Also the same for contour plot:



With[z = x + I y, 
ContourPlot[Re[1 - z Log[(1 + z)/(z)]], x, -2, 2, y, -2, 2,
Contours -> 40]]


enter image description here










share|improve this question









New contributor



Call me potato. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$









  • 1




    $begingroup$
    Add the plot option: PlotRange -> All
    $endgroup$
    – Fraccalo
    10 hours ago










  • $begingroup$
    @Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
    $endgroup$
    – Call me potato.
    10 hours ago










  • $begingroup$
    Not sure, but if you have an analytical formula of where the branch cut is, then it would be quite simple to plot it on top of the original 3d plot
    $endgroup$
    – Fraccalo
    10 hours ago






  • 2




    $begingroup$
    You can use Exclusions -> None to get rid of the white line.
    $endgroup$
    – C. E.
    10 hours ago













3












3








3





$begingroup$


I like to see the branch cut of the function:



$$1 - z ln[(1+z)/z].$$



If I plot it in the complex plane:



Plot3D[Re[1 - (x + I y) Log[(1 + x + I y)/(x + I y)]], x, -2, 
2, y, -2, 2]


The result is:



enter image description here



which shows the brach cut correctly between -1 and 0. How can I get rid of the hole in the picture and have a smooth line as a branch cut rather than a white line discontinuity?



Also the same for contour plot:



With[z = x + I y, 
ContourPlot[Re[1 - z Log[(1 + z)/(z)]], x, -2, 2, y, -2, 2,
Contours -> 40]]


enter image description here










share|improve this question









New contributor



Call me potato. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$




I like to see the branch cut of the function:



$$1 - z ln[(1+z)/z].$$



If I plot it in the complex plane:



Plot3D[Re[1 - (x + I y) Log[(1 + x + I y)/(x + I y)]], x, -2, 
2, y, -2, 2]


The result is:



enter image description here



which shows the brach cut correctly between -1 and 0. How can I get rid of the hole in the picture and have a smooth line as a branch cut rather than a white line discontinuity?



Also the same for contour plot:



With[z = x + I y, 
ContourPlot[Re[1 - z Log[(1 + z)/(z)]], x, -2, 2, y, -2, 2,
Contours -> 40]]


enter image description here







plotting calculus-and-analysis complex






share|improve this question









New contributor



Call me potato. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



Call me potato. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 10 hours ago







Call me potato.













New contributor



Call me potato. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 10 hours ago









Call me potato.Call me potato.

304 bronze badges




304 bronze badges




New contributor



Call me potato. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Call me potato. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 1




    $begingroup$
    Add the plot option: PlotRange -> All
    $endgroup$
    – Fraccalo
    10 hours ago










  • $begingroup$
    @Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
    $endgroup$
    – Call me potato.
    10 hours ago










  • $begingroup$
    Not sure, but if you have an analytical formula of where the branch cut is, then it would be quite simple to plot it on top of the original 3d plot
    $endgroup$
    – Fraccalo
    10 hours ago






  • 2




    $begingroup$
    You can use Exclusions -> None to get rid of the white line.
    $endgroup$
    – C. E.
    10 hours ago












  • 1




    $begingroup$
    Add the plot option: PlotRange -> All
    $endgroup$
    – Fraccalo
    10 hours ago










  • $begingroup$
    @Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
    $endgroup$
    – Call me potato.
    10 hours ago










  • $begingroup$
    Not sure, but if you have an analytical formula of where the branch cut is, then it would be quite simple to plot it on top of the original 3d plot
    $endgroup$
    – Fraccalo
    10 hours ago






  • 2




    $begingroup$
    You can use Exclusions -> None to get rid of the white line.
    $endgroup$
    – C. E.
    10 hours ago







1




1




$begingroup$
Add the plot option: PlotRange -> All
$endgroup$
– Fraccalo
10 hours ago




$begingroup$
Add the plot option: PlotRange -> All
$endgroup$
– Fraccalo
10 hours ago












$begingroup$
@Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
$endgroup$
– Call me potato.
10 hours ago




$begingroup$
@Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
$endgroup$
– Call me potato.
10 hours ago












$begingroup$
Not sure, but if you have an analytical formula of where the branch cut is, then it would be quite simple to plot it on top of the original 3d plot
$endgroup$
– Fraccalo
10 hours ago




$begingroup$
Not sure, but if you have an analytical formula of where the branch cut is, then it would be quite simple to plot it on top of the original 3d plot
$endgroup$
– Fraccalo
10 hours ago




2




2




$begingroup$
You can use Exclusions -> None to get rid of the white line.
$endgroup$
– C. E.
10 hours ago




$begingroup$
You can use Exclusions -> None to get rid of the white line.
$endgroup$
– C. E.
10 hours ago










2 Answers
2






active

oldest

votes


















4












$begingroup$

Change "Rainbow" with any ColorScheme you prefer, and the rescaling values -2,1 to obtain different scaling.



With[z = x + I y, 
ContourPlot[Re[1 - z Log[(1 + z)/(z)]], x, -2, 2, y, -2, 2,
Contours -> Range[-4, 2, .1],
ColorFunction -> (ColorData["Rainbow"][Rescale[#, -2, 1]] &),
ColorFunctionScaling -> False, PlotRange -> All]]



enter image description here







share|improve this answer









$endgroup$






















    1












    $begingroup$

    Note that you can also use the new (as of Version 12) ComplexPlot function, too:



    ComplexPlot[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, Mesh -> 10, 
    MeshFunctions -> Re[#2] &, Im[#2] &]


    A complex plot.



    Or the 3D version:



    ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, 
    Mesh -> 10, PlotRange -> All]


    3D complex plot.






    share|improve this answer









    $endgroup$

















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "387"
      ;
      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
      );



      );






      Call me potato. is a new contributor. Be nice, and check out our Code of Conduct.









      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f203899%2fto-plot-branch-cut-of-logarithm%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









      4












      $begingroup$

      Change "Rainbow" with any ColorScheme you prefer, and the rescaling values -2,1 to obtain different scaling.



      With[z = x + I y, 
      ContourPlot[Re[1 - z Log[(1 + z)/(z)]], x, -2, 2, y, -2, 2,
      Contours -> Range[-4, 2, .1],
      ColorFunction -> (ColorData["Rainbow"][Rescale[#, -2, 1]] &),
      ColorFunctionScaling -> False, PlotRange -> All]]



      enter image description here







      share|improve this answer









      $endgroup$



















        4












        $begingroup$

        Change "Rainbow" with any ColorScheme you prefer, and the rescaling values -2,1 to obtain different scaling.



        With[z = x + I y, 
        ContourPlot[Re[1 - z Log[(1 + z)/(z)]], x, -2, 2, y, -2, 2,
        Contours -> Range[-4, 2, .1],
        ColorFunction -> (ColorData["Rainbow"][Rescale[#, -2, 1]] &),
        ColorFunctionScaling -> False, PlotRange -> All]]



        enter image description here







        share|improve this answer









        $endgroup$

















          4












          4








          4





          $begingroup$

          Change "Rainbow" with any ColorScheme you prefer, and the rescaling values -2,1 to obtain different scaling.



          With[z = x + I y, 
          ContourPlot[Re[1 - z Log[(1 + z)/(z)]], x, -2, 2, y, -2, 2,
          Contours -> Range[-4, 2, .1],
          ColorFunction -> (ColorData["Rainbow"][Rescale[#, -2, 1]] &),
          ColorFunctionScaling -> False, PlotRange -> All]]



          enter image description here







          share|improve this answer









          $endgroup$



          Change "Rainbow" with any ColorScheme you prefer, and the rescaling values -2,1 to obtain different scaling.



          With[z = x + I y, 
          ContourPlot[Re[1 - z Log[(1 + z)/(z)]], x, -2, 2, y, -2, 2,
          Contours -> Range[-4, 2, .1],
          ColorFunction -> (ColorData["Rainbow"][Rescale[#, -2, 1]] &),
          ColorFunctionScaling -> False, PlotRange -> All]]



          enter image description here








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 9 hours ago









          FraccaloFraccalo

          2,9306 silver badges18 bronze badges




          2,9306 silver badges18 bronze badges


























              1












              $begingroup$

              Note that you can also use the new (as of Version 12) ComplexPlot function, too:



              ComplexPlot[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, Mesh -> 10, 
              MeshFunctions -> Re[#2] &, Im[#2] &]


              A complex plot.



              Or the 3D version:



              ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, 
              Mesh -> 10, PlotRange -> All]


              3D complex plot.






              share|improve this answer









              $endgroup$



















                1












                $begingroup$

                Note that you can also use the new (as of Version 12) ComplexPlot function, too:



                ComplexPlot[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, Mesh -> 10, 
                MeshFunctions -> Re[#2] &, Im[#2] &]


                A complex plot.



                Or the 3D version:



                ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, 
                Mesh -> 10, PlotRange -> All]


                3D complex plot.






                share|improve this answer









                $endgroup$

















                  1












                  1








                  1





                  $begingroup$

                  Note that you can also use the new (as of Version 12) ComplexPlot function, too:



                  ComplexPlot[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, Mesh -> 10, 
                  MeshFunctions -> Re[#2] &, Im[#2] &]


                  A complex plot.



                  Or the 3D version:



                  ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, 
                  Mesh -> 10, PlotRange -> All]


                  3D complex plot.






                  share|improve this answer









                  $endgroup$



                  Note that you can also use the new (as of Version 12) ComplexPlot function, too:



                  ComplexPlot[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, Mesh -> 10, 
                  MeshFunctions -> Re[#2] &, Im[#2] &]


                  A complex plot.



                  Or the 3D version:



                  ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I, 
                  Mesh -> 10, PlotRange -> All]


                  3D complex plot.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 1 hour ago









                  murraymurray

                  6,42319 silver badges36 bronze badges




                  6,42319 silver badges36 bronze badges























                      Call me potato. is a new contributor. Be nice, and check out our Code of Conduct.









                      draft saved

                      draft discarded


















                      Call me potato. is a new contributor. Be nice, and check out our Code of Conduct.












                      Call me potato. is a new contributor. Be nice, and check out our Code of Conduct.











                      Call me potato. is a new contributor. Be nice, and check out our Code of Conduct.














                      Thanks for contributing an answer to Mathematica 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.

                      Use MathJax to format equations. MathJax reference.


                      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%2fmathematica.stackexchange.com%2fquestions%2f203899%2fto-plot-branch-cut-of-logarithm%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

                      Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                      Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                      François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480