To plot branch cut of logarithmVisualizing Riemann surface (two branches) of logarithmHow to plot the contour...

Ask for a paid taxi in order to arrive as early as possible for an interview within the city

Co-author responds to email by mistake cc'ing the EiC

Shouldn't the "credit score" prevent Americans from going deeper and deeper into personal debt?

Defense against attacks using dictionaries

Why were movies shot on film shot at 24 frames per second?

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

How can I support the recycling, but not the new production of aluminum?

What can I do to keep a threaded bolt from falling out of its slot?

The sound of thunder's like a whip

Is it safe to remove the bottom chords of a series of garage roof trusses?

Why is Boris Johnson visiting only Paris & Berlin if every member of the EU needs to agree on a withdrawal deal?

Metal that glows when near pieces of itself

Why does my house heat up, even when it's cool outside?

(Why) May a Beit Din refuse to bury a body in order to coerce a man into giving a divorce?

Turn TDE off when restoring SQL databases

Should my "average" PC be able to discern the potential of encountering a gelatinous cube from subtle clues?

Taking out number of subarrays from an array which contains all the distinct elements of that array

Why is 日本 read as "nihon" but not "nitsuhon"?

How to dismiss intrusive questions from a colleague with whom I don't work?

Are there nouns that change meaning based on gender?

What is "Wayfinder's Guide to Eberron"?

Why we don't have vaccination against all diseases which are caused by microbes?

Are illustrations in novels frowned upon?

Is it appropriate for a prospective landlord to ask me for my credit report?



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 $sqrt{x^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;
}







4












$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
    2 days ago










  • $begingroup$
    @Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
    $endgroup$
    – Call me potato.
    2 days 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
    2 days ago






  • 2




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


















4












$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
    2 days ago










  • $begingroup$
    @Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
    $endgroup$
    – Call me potato.
    2 days 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
    2 days ago






  • 2




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














4












4








4





$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 2 days 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 2 days ago









Call me potato.Call me potato.

504 bronze badges




504 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
    2 days ago










  • $begingroup$
    @Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
    $endgroup$
    – Call me potato.
    2 days 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
    2 days ago






  • 2




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














  • 1




    $begingroup$
    Add the plot option: PlotRange -> All
    $endgroup$
    – Fraccalo
    2 days ago










  • $begingroup$
    @Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
    $endgroup$
    – Call me potato.
    2 days 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
    2 days ago






  • 2




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








1




1




$begingroup$
Add the plot option: PlotRange -> All
$endgroup$
– Fraccalo
2 days ago




$begingroup$
Add the plot option: PlotRange -> All
$endgroup$
– Fraccalo
2 days ago












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




$begingroup$
@Fraccalo Many thanks! Can we have a smooth line for the brach cut rather than "white line" discontinuity?
$endgroup$
– Call me potato.
2 days 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
2 days 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
2 days ago




2




2




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




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










2 Answers
2






active

oldest

votes


















5












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























    3












    $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









      5












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




















        5












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


















          5












          5








          5





          $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 2 days ago









          FraccaloFraccalo

          2,9706 silver badges18 bronze badges




          2,9706 silver badges18 bronze badges




























              3












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




















                3












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


















                  3












                  3








                  3





                  $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 2 days ago









                  murraymurray

                  6,44319 silver badges36 bronze badges




                  6,44319 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

                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...