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

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

plotting calculus-and-analysis complex
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$
add a comment |
$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:

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

plotting calculus-and-analysis complex
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 useExclusions -> Noneto get rid of the white line.
$endgroup$
– C. E.
10 hours ago
add a comment |
$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:

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

plotting calculus-and-analysis complex
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:

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

plotting calculus-and-analysis complex
plotting calculus-and-analysis complex
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.
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 useExclusions -> Noneto get rid of the white line.
$endgroup$
– C. E.
10 hours ago
add a comment |
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 useExclusions -> Noneto 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
add a comment |
2 Answers
2
active
oldest
votes
$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]]
$endgroup$
add a comment |
$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] &]

Or the 3D version:
ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I,
Mesh -> 10, PlotRange -> All]

$endgroup$
add a comment |
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.
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%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
$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]]
$endgroup$
add a comment |
$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]]
$endgroup$
add a comment |
$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]]
$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]]
answered 9 hours ago
FraccaloFraccalo
2,9306 silver badges18 bronze badges
2,9306 silver badges18 bronze badges
add a comment |
add a comment |
$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] &]

Or the 3D version:
ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I,
Mesh -> 10, PlotRange -> All]

$endgroup$
add a comment |
$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] &]

Or the 3D version:
ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I,
Mesh -> 10, PlotRange -> All]

$endgroup$
add a comment |
$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] &]

Or the 3D version:
ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I,
Mesh -> 10, PlotRange -> All]

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

Or the 3D version:
ComplexPlot3D[1 - z Log[(1 + z)/z], z, -2 - 2 I, 2 + 2 I,
Mesh -> 10, PlotRange -> All]

answered 1 hour ago
murraymurray
6,42319 silver badges36 bronze badges
6,42319 silver badges36 bronze badges
add a comment |
add a comment |
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.
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.
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%2fmathematica.stackexchange.com%2fquestions%2f203899%2fto-plot-branch-cut-of-logarithm%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

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 -> Noneto get rid of the white line.$endgroup$
– C. E.
10 hours ago