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













2












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










share|improve this question









New contributor




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







$endgroup$
















    2












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










    share|improve this question









    New contributor




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







    $endgroup$














      2












      2








      2





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










      share|improve this question









      New contributor




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







      $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






      share|improve this question









      New contributor




      Villa 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




      Villa 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 Apr 29 at 1:37









      m_goldberg

      89.4k873201




      89.4k873201






      New contributor




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









      asked Apr 28 at 22:14









      VillaVilla

      1133




      1133




      New contributor




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





      New contributor





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






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




















          2 Answers
          2






          active

          oldest

          votes


















          6












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







          share|improve this answer











          $endgroup$












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


















          2












          $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 of Re[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 of Re[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 in ComplexExpand[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 that ComplexExpand assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)


          • $u = e = -1$: The limit of Re[gamma[x]] is $-s/2$, but your formula gives $s/2$.


          • $u = e = mathrmi$: The limit of Re[gamma[x]] is $infty$, but your formula gives $s/2$.


          • $u = mathrmi, e = 0, s = 1$: The limit of Re[gamma[x]] is $0$, but your formula involves division by zero.





          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
            );



            );






            Villa 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%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









            6












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







            share|improve this answer











            $endgroup$












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















            6












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







            share|improve this answer











            $endgroup$












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













            6












            6








            6





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







            share|improve this answer











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








            share|improve this answer














            share|improve this answer



            share|improve this answer








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











            2












            $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 of Re[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 of Re[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 in ComplexExpand[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 that ComplexExpand assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)


            • $u = e = -1$: The limit of Re[gamma[x]] is $-s/2$, but your formula gives $s/2$.


            • $u = e = mathrmi$: The limit of Re[gamma[x]] is $infty$, but your formula gives $s/2$.


            • $u = mathrmi, e = 0, s = 1$: The limit of Re[gamma[x]] is $0$, but your formula involves division by zero.





            share|improve this answer









            $endgroup$

















              2












              $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 of Re[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 of Re[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 in ComplexExpand[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 that ComplexExpand assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)


              • $u = e = -1$: The limit of Re[gamma[x]] is $-s/2$, but your formula gives $s/2$.


              • $u = e = mathrmi$: The limit of Re[gamma[x]] is $infty$, but your formula gives $s/2$.


              • $u = mathrmi, e = 0, s = 1$: The limit of Re[gamma[x]] is $0$, but your formula involves division by zero.





              share|improve this answer









              $endgroup$















                2












                2








                2





                $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 of Re[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 of Re[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 in ComplexExpand[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 that ComplexExpand assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)


                • $u = e = -1$: The limit of Re[gamma[x]] is $-s/2$, but your formula gives $s/2$.


                • $u = e = mathrmi$: The limit of Re[gamma[x]] is $infty$, but your formula gives $s/2$.


                • $u = mathrmi, e = 0, s = 1$: The limit of Re[gamma[x]] is $0$, but your formula involves division by zero.





                share|improve this answer









                $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 of Re[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 of Re[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 in ComplexExpand[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 that ComplexExpand assumes variables are real unless it is explicitly told otherwise, so it assumes more than we have explicitly established.)


                • $u = e = -1$: The limit of Re[gamma[x]] is $-s/2$, but your formula gives $s/2$.


                • $u = e = mathrmi$: The limit of Re[gamma[x]] is $infty$, but your formula gives $s/2$.


                • $u = mathrmi, e = 0, s = 1$: The limit of Re[gamma[x]] is $0$, but your formula involves division by zero.






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 days ago









                Eric TowersEric Towers

                2,396713




                2,396713




















                    Villa is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    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.




                    draft saved


                    draft discarded














                    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





















































                    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

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?