Weird result in complex limitLimit of integral gives incorrect outputIntegrate returns unexpected resultLimit problem calculating directional derivativeWhy won't Limit evaluate, and what can be done about itLimit of an inverse functionDoes Mathematica implement Risch algorithm? If it does, in which cases?Limit problem no longer works in Mathematica 11.1.0Evaluating integral seems incorrectReal integral giving complex resultHow to apply NIntegrate three times
Purpose of のは in this sentence?
If your medical expenses exceed your income does the IRS pay you?
String won't reverse using reverse_copy
Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?
How can modem speed be 10 times slower than router?
Why doesn't WotC use established keywords on all new cards?
What matters more when it comes to book covers? Is it ‘professional quality’ or relevancy?
How long would it take for people to notice a mass disappearance?
Is latino sine flexione dead?
Why was the battle set up *outside* Winterfell?
I drew a randomly colored grid of points with tikz, how do I force it to remember the first grid from then on?
Understanding trademark infringements in a world where many dictionary words are trademarks?
What does this colon mean? It is not labeling, it is not ternary operator
Why are prions in animal diets not destroyed by the digestive system?
What are the advantages of luxury car brands like Acura/Lexus over their sibling non-luxury brands Honda/Toyota?
Did we get closer to another plane than we were supposed to, or was the pilot just protecting our delicate sensibilities?
Why do only some White Walkers shatter into ice chips?
Using column size much larger than necessary
Should I replace my bicycle tires if they have not been inflated in multiple years
Why isn't nylon as strong as kevlar?
I need a disease
Are there any Final Fantasy Spirits in Super Smash Bros Ultimate?
In Avengers 1, why does Thanos need Loki?
BOOM! Perfect Clear for Mr. T
Weird result in complex limit
Limit of integral gives incorrect outputIntegrate returns unexpected resultLimit problem calculating directional derivativeWhy won't Limit evaluate, and what can be done about itLimit of an inverse functionDoes Mathematica implement Risch algorithm? If it does, in which cases?Limit problem no longer works in Mathematica 11.1.0Evaluating integral seems incorrectReal integral giving complex resultHow to apply NIntegrate three times
$begingroup$
I am trying to evaluate a limit:
gamma[w_] = Sqrt[-(u*e)w^2 + I*(u*s)w];
Limit[Re[gamma[x]], x -> DirectedInfinity[1]]
I calculated the limit by hand, and the correct answer is (I also checked numerically for some examples of $u,e,s$ using the software):
$qquad frac s2 sqrtfrac ue$
But for some reason, when using Limit, I get
DirectedInfinity[(Sign[e]^2 Sign[u]^2)^(1/4)]
So my questions are:
What is going here?
What issues should I be aware of when using Limit?
calculus-and-analysis complex
New contributor
$endgroup$
add a comment |
$begingroup$
I am trying to evaluate a limit:
gamma[w_] = Sqrt[-(u*e)w^2 + I*(u*s)w];
Limit[Re[gamma[x]], x -> DirectedInfinity[1]]
I calculated the limit by hand, and the correct answer is (I also checked numerically for some examples of $u,e,s$ using the software):
$qquad frac s2 sqrtfrac ue$
But for some reason, when using Limit, I get
DirectedInfinity[(Sign[e]^2 Sign[u]^2)^(1/4)]
So my questions are:
What is going here?
What issues should I be aware of when using Limit?
calculus-and-analysis complex
New contributor
$endgroup$
add a comment |
$begingroup$
I am trying to evaluate a limit:
gamma[w_] = Sqrt[-(u*e)w^2 + I*(u*s)w];
Limit[Re[gamma[x]], x -> DirectedInfinity[1]]
I calculated the limit by hand, and the correct answer is (I also checked numerically for some examples of $u,e,s$ using the software):
$qquad frac s2 sqrtfrac ue$
But for some reason, when using Limit, I get
DirectedInfinity[(Sign[e]^2 Sign[u]^2)^(1/4)]
So my questions are:
What is going here?
What issues should I be aware of when using Limit?
calculus-and-analysis complex
New contributor
$endgroup$
I am trying to evaluate a limit:
gamma[w_] = Sqrt[-(u*e)w^2 + I*(u*s)w];
Limit[Re[gamma[x]], x -> DirectedInfinity[1]]
I calculated the limit by hand, and the correct answer is (I also checked numerically for some examples of $u,e,s$ using the software):
$qquad frac s2 sqrtfrac ue$
But for some reason, when using Limit, I get
DirectedInfinity[(Sign[e]^2 Sign[u]^2)^(1/4)]
So my questions are:
What is going here?
What issues should I be aware of when using Limit?
calculus-and-analysis complex
calculus-and-analysis complex
New contributor
New contributor
edited Apr 29 at 1:37
m_goldberg
89.4k873201
89.4k873201
New contributor
asked Apr 28 at 22:14
VillaVilla
1133
1133
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
I think it's worth reporting the issue to support. If you give appropriate assumptions, then you get your expected result:
Limit[Re[gamma[x]], x -> Infinity, Assumptions -> u>0 && e>0]
(s u)/(2 Sqrt[e u])
$endgroup$
$begingroup$
Thank you, it worked.
$endgroup$
– Villa
Apr 28 at 22:43
$begingroup$
UsingAssumptions -> u >= 0 && e > 0
gives the same form as the OP's hand calculation.
$endgroup$
– Bob Hanlon
Apr 28 at 23:32
add a comment |
$begingroup$
The biggest difference between your hand calculation and the computation performed by Mathematica is that your hand calculation assumes $u$ and $e$ are nonnegative reals. Examples of how this produces different results:
$u = 1$ and $e = -1$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives an imaginary number. A similar thing happens with $u = -1$ and $e = 1$.
$u = 1$ and $e = 0$: The limit ofRe[gamma[x]]
is a directed infinity, directed along $mathrmRe sqrtmathrmis$, which could be $-infty$, $0$, or $infty$, depending on the complex argument of $s$. (Mathematica misses this case in the answer you are seeing. Some insight comes from looking at the leading order term inComplexExpand[Re[Sqrt[-(u*e)w^2 + I*(u*s)s]]]
, which is $(e^2 u^2 w^4)^1/4$. Of course, when $e = 0$, this term is suppressed and then the leading term is $(s^2 u^2 w^2)^1/4$. Note thatComplexExpand
assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)
$u = e = -1$: The limit ofRe[gamma[x]]
is $-s/2$, but your formula gives $s/2$.
$u = e = mathrmi$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives $s/2$.
$u = mathrmi, e = 0, s = 1$: The limit ofRe[gamma[x]]
is $0$, but your formula involves division by zero.
$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
);
);
Villa 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%2f197263%2fweird-result-in-complex-limit%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$
I think it's worth reporting the issue to support. If you give appropriate assumptions, then you get your expected result:
Limit[Re[gamma[x]], x -> Infinity, Assumptions -> u>0 && e>0]
(s u)/(2 Sqrt[e u])
$endgroup$
$begingroup$
Thank you, it worked.
$endgroup$
– Villa
Apr 28 at 22:43
$begingroup$
UsingAssumptions -> u >= 0 && e > 0
gives the same form as the OP's hand calculation.
$endgroup$
– Bob Hanlon
Apr 28 at 23:32
add a comment |
$begingroup$
I think it's worth reporting the issue to support. If you give appropriate assumptions, then you get your expected result:
Limit[Re[gamma[x]], x -> Infinity, Assumptions -> u>0 && e>0]
(s u)/(2 Sqrt[e u])
$endgroup$
$begingroup$
Thank you, it worked.
$endgroup$
– Villa
Apr 28 at 22:43
$begingroup$
UsingAssumptions -> u >= 0 && e > 0
gives the same form as the OP's hand calculation.
$endgroup$
– Bob Hanlon
Apr 28 at 23:32
add a comment |
$begingroup$
I think it's worth reporting the issue to support. If you give appropriate assumptions, then you get your expected result:
Limit[Re[gamma[x]], x -> Infinity, Assumptions -> u>0 && e>0]
(s u)/(2 Sqrt[e u])
$endgroup$
I think it's worth reporting the issue to support. If you give appropriate assumptions, then you get your expected result:
Limit[Re[gamma[x]], x -> Infinity, Assumptions -> u>0 && e>0]
(s u)/(2 Sqrt[e u])
edited Apr 29 at 2:13
m_goldberg
89.4k873201
89.4k873201
answered Apr 28 at 22:31
Carl WollCarl Woll
76.8k3101201
76.8k3101201
$begingroup$
Thank you, it worked.
$endgroup$
– Villa
Apr 28 at 22:43
$begingroup$
UsingAssumptions -> u >= 0 && e > 0
gives the same form as the OP's hand calculation.
$endgroup$
– Bob Hanlon
Apr 28 at 23:32
add a comment |
$begingroup$
Thank you, it worked.
$endgroup$
– Villa
Apr 28 at 22:43
$begingroup$
UsingAssumptions -> u >= 0 && e > 0
gives the same form as the OP's hand calculation.
$endgroup$
– Bob Hanlon
Apr 28 at 23:32
$begingroup$
Thank you, it worked.
$endgroup$
– Villa
Apr 28 at 22:43
$begingroup$
Thank you, it worked.
$endgroup$
– Villa
Apr 28 at 22:43
$begingroup$
Using
Assumptions -> u >= 0 && e > 0
gives the same form as the OP's hand calculation.$endgroup$
– Bob Hanlon
Apr 28 at 23:32
$begingroup$
Using
Assumptions -> u >= 0 && e > 0
gives the same form as the OP's hand calculation.$endgroup$
– Bob Hanlon
Apr 28 at 23:32
add a comment |
$begingroup$
The biggest difference between your hand calculation and the computation performed by Mathematica is that your hand calculation assumes $u$ and $e$ are nonnegative reals. Examples of how this produces different results:
$u = 1$ and $e = -1$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives an imaginary number. A similar thing happens with $u = -1$ and $e = 1$.
$u = 1$ and $e = 0$: The limit ofRe[gamma[x]]
is a directed infinity, directed along $mathrmRe sqrtmathrmis$, which could be $-infty$, $0$, or $infty$, depending on the complex argument of $s$. (Mathematica misses this case in the answer you are seeing. Some insight comes from looking at the leading order term inComplexExpand[Re[Sqrt[-(u*e)w^2 + I*(u*s)s]]]
, which is $(e^2 u^2 w^4)^1/4$. Of course, when $e = 0$, this term is suppressed and then the leading term is $(s^2 u^2 w^2)^1/4$. Note thatComplexExpand
assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)
$u = e = -1$: The limit ofRe[gamma[x]]
is $-s/2$, but your formula gives $s/2$.
$u = e = mathrmi$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives $s/2$.
$u = mathrmi, e = 0, s = 1$: The limit ofRe[gamma[x]]
is $0$, but your formula involves division by zero.
$endgroup$
add a comment |
$begingroup$
The biggest difference between your hand calculation and the computation performed by Mathematica is that your hand calculation assumes $u$ and $e$ are nonnegative reals. Examples of how this produces different results:
$u = 1$ and $e = -1$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives an imaginary number. A similar thing happens with $u = -1$ and $e = 1$.
$u = 1$ and $e = 0$: The limit ofRe[gamma[x]]
is a directed infinity, directed along $mathrmRe sqrtmathrmis$, which could be $-infty$, $0$, or $infty$, depending on the complex argument of $s$. (Mathematica misses this case in the answer you are seeing. Some insight comes from looking at the leading order term inComplexExpand[Re[Sqrt[-(u*e)w^2 + I*(u*s)s]]]
, which is $(e^2 u^2 w^4)^1/4$. Of course, when $e = 0$, this term is suppressed and then the leading term is $(s^2 u^2 w^2)^1/4$. Note thatComplexExpand
assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)
$u = e = -1$: The limit ofRe[gamma[x]]
is $-s/2$, but your formula gives $s/2$.
$u = e = mathrmi$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives $s/2$.
$u = mathrmi, e = 0, s = 1$: The limit ofRe[gamma[x]]
is $0$, but your formula involves division by zero.
$endgroup$
add a comment |
$begingroup$
The biggest difference between your hand calculation and the computation performed by Mathematica is that your hand calculation assumes $u$ and $e$ are nonnegative reals. Examples of how this produces different results:
$u = 1$ and $e = -1$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives an imaginary number. A similar thing happens with $u = -1$ and $e = 1$.
$u = 1$ and $e = 0$: The limit ofRe[gamma[x]]
is a directed infinity, directed along $mathrmRe sqrtmathrmis$, which could be $-infty$, $0$, or $infty$, depending on the complex argument of $s$. (Mathematica misses this case in the answer you are seeing. Some insight comes from looking at the leading order term inComplexExpand[Re[Sqrt[-(u*e)w^2 + I*(u*s)s]]]
, which is $(e^2 u^2 w^4)^1/4$. Of course, when $e = 0$, this term is suppressed and then the leading term is $(s^2 u^2 w^2)^1/4$. Note thatComplexExpand
assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)
$u = e = -1$: The limit ofRe[gamma[x]]
is $-s/2$, but your formula gives $s/2$.
$u = e = mathrmi$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives $s/2$.
$u = mathrmi, e = 0, s = 1$: The limit ofRe[gamma[x]]
is $0$, but your formula involves division by zero.
$endgroup$
The biggest difference between your hand calculation and the computation performed by Mathematica is that your hand calculation assumes $u$ and $e$ are nonnegative reals. Examples of how this produces different results:
$u = 1$ and $e = -1$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives an imaginary number. A similar thing happens with $u = -1$ and $e = 1$.
$u = 1$ and $e = 0$: The limit ofRe[gamma[x]]
is a directed infinity, directed along $mathrmRe sqrtmathrmis$, which could be $-infty$, $0$, or $infty$, depending on the complex argument of $s$. (Mathematica misses this case in the answer you are seeing. Some insight comes from looking at the leading order term inComplexExpand[Re[Sqrt[-(u*e)w^2 + I*(u*s)s]]]
, which is $(e^2 u^2 w^4)^1/4$. Of course, when $e = 0$, this term is suppressed and then the leading term is $(s^2 u^2 w^2)^1/4$. Note thatComplexExpand
assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)
$u = e = -1$: The limit ofRe[gamma[x]]
is $-s/2$, but your formula gives $s/2$.
$u = e = mathrmi$: The limit ofRe[gamma[x]]
is $infty$, but your formula gives $s/2$.
$u = mathrmi, e = 0, s = 1$: The limit ofRe[gamma[x]]
is $0$, but your formula involves division by zero.
answered 2 days ago
Eric TowersEric Towers
2,396713
2,396713
add a comment |
add a comment |
Villa is a new contributor. Be nice, and check out our Code of Conduct.
Villa is a new contributor. Be nice, and check out our Code of Conduct.
Villa is a new contributor. Be nice, and check out our Code of Conduct.
Villa 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%2f197263%2fweird-result-in-complex-limit%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