Is there any method to solve log functions in sympy and get answer without ConditionSetHow do I return multiple values from a function?How do you get the logical xor of two variables in Python?Solving Equations with Python and Sympy and getting numerical answersSympy - not converting `solve()` correctlySympy solve will not return an answerSympy solveset() returns ConditionSet() when it should be returning a numerical answerSolving a system of equation with Sympy, python2.7sympy solve equation set: results in error: only zero-dimensional systems supportedTrouble making a SymPy Solved Equation Solution into a FunctionHow to solve “Absolute values cannot be inverted in the complex domain” error in sympy

Can European countries bypass the EU and make their own individual trade deal with the U.S.?

Closest Proximity of Oceans to Freshwater Springs

Why did NASA wet the road in front of the Space Shuttle crawler?

13th chords on guitar

How did researchers find articles before the Internet and the computer era?

Sharing referee/AE report online to point out a grievous error in refereeing

What verb for taking advantage fits in "I don't want to ________ on the friendship"?

I hit a pipe with a mower and now it won't turn

Will writing actual numbers instead of writing them with letters affect readership?

Comment traduire « That screams X »

Why would anyone even use a Portkey?

How to unit test methods which using static methods?

Is there reliable evidence that depleted uranium from the 1999 NATO bombing is causing cancer in Serbia?

Why wasn't EBCDIC designed with contiguous alphanumeric characters?

Was it really unprofessional of me to leave without asking for a raise first?

Why was Mal so quick to drop Bester in favour of Kaylee?

Thin wall to block LED light from hitting photodiode?

What exactly did Ant-Man see that made him say that their plan worked?

What will happen if I checked in for another room in the same hotel, but not for the booked one?

I need help with pasta

How did Lefschetz do mathematics without hands?

Could human civilization live 150 years in a nuclear-powered aircraft carrier colony without resorting to mass killing/ cannibalism?

What is this mount with two buttons on side of Vivitar 75-205mm lens?

Does a return economy-class seat between London and San Francisco release 5.28 tonnes of CO2 equivalents?



Is there any method to solve log functions in sympy and get answer without ConditionSet


How do I return multiple values from a function?How do you get the logical xor of two variables in Python?Solving Equations with Python and Sympy and getting numerical answersSympy - not converting `solve()` correctlySympy solve will not return an answerSympy solveset() returns ConditionSet() when it should be returning a numerical answerSolving a system of equation with Sympy, python2.7sympy solve equation set: results in error: only zero-dimensional systems supportedTrouble making a SymPy Solved Equation Solution into a FunctionHow to solve “Absolute values cannot be inverted in the complex domain” error in sympy






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








1















I have one variable equation and want to get the values for 'y'. But only return ConditionaSet. So is there any way to get the answer or are there any errors in my code?



import sympy as sp

y = sp.symbols('y', real = True)
f = 5.0*y - 5.0*y/(y**2 + 36.0) - 0.397887357729738*sp.log((-2.0*y**2 - 1.0*y - 72.0)**2/(y**2 + 36.0)**2 + 36.0/(y**2 + 36.0)**2) + 0.397887357729738*sp.log((y - 2.0)**2 + 36.0)
eq = sp.Eq(f,-18.435561204278)
p = sp.solveset(eq, domain=sp.S.Reals)
print p









share|improve this question






























    1















    I have one variable equation and want to get the values for 'y'. But only return ConditionaSet. So is there any way to get the answer or are there any errors in my code?



    import sympy as sp

    y = sp.symbols('y', real = True)
    f = 5.0*y - 5.0*y/(y**2 + 36.0) - 0.397887357729738*sp.log((-2.0*y**2 - 1.0*y - 72.0)**2/(y**2 + 36.0)**2 + 36.0/(y**2 + 36.0)**2) + 0.397887357729738*sp.log((y - 2.0)**2 + 36.0)
    eq = sp.Eq(f,-18.435561204278)
    p = sp.solveset(eq, domain=sp.S.Reals)
    print p









    share|improve this question


























      1












      1








      1








      I have one variable equation and want to get the values for 'y'. But only return ConditionaSet. So is there any way to get the answer or are there any errors in my code?



      import sympy as sp

      y = sp.symbols('y', real = True)
      f = 5.0*y - 5.0*y/(y**2 + 36.0) - 0.397887357729738*sp.log((-2.0*y**2 - 1.0*y - 72.0)**2/(y**2 + 36.0)**2 + 36.0/(y**2 + 36.0)**2) + 0.397887357729738*sp.log((y - 2.0)**2 + 36.0)
      eq = sp.Eq(f,-18.435561204278)
      p = sp.solveset(eq, domain=sp.S.Reals)
      print p









      share|improve this question
















      I have one variable equation and want to get the values for 'y'. But only return ConditionaSet. So is there any way to get the answer or are there any errors in my code?



      import sympy as sp

      y = sp.symbols('y', real = True)
      f = 5.0*y - 5.0*y/(y**2 + 36.0) - 0.397887357729738*sp.log((-2.0*y**2 - 1.0*y - 72.0)**2/(y**2 + 36.0)**2 + 36.0/(y**2 + 36.0)**2) + 0.397887357729738*sp.log((y - 2.0)**2 + 36.0)
      eq = sp.Eq(f,-18.435561204278)
      p = sp.solveset(eq, domain=sp.S.Reals)
      print p






      python sympy equation






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 14:14









      bummi

      25.4k8 gold badges53 silver badges92 bronze badges




      25.4k8 gold badges53 silver badges92 bronze badges










      asked Mar 25 at 14:12









      Lahiru DilshanLahiru Dilshan

      62 bronze badges




      62 bronze badges






















          0






          active

          oldest

          votes










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55339784%2fis-there-any-method-to-solve-log-functions-in-sympy-and-get-answer-without-condi%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes




          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







          Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


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

          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%2fstackoverflow.com%2fquestions%2f55339784%2fis-there-any-method-to-solve-log-functions-in-sympy-and-get-answer-without-condi%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

          Obelisk of Theodosius Contents History Description Notes Bibliography Further reading External links Navigation menuAge of spirituality : late antique and early Christian art, third to seventh centuryOver 60 picturesObelisks of the World41°00′21.24″N 28°58′31.43″E / 41.0059000°N 28.9753972°E / 41.0059000; 28.97539727724550-7235741376235741376

          밀양 대씨 역사 각주 함께 보기 둘러보기 메뉴밀양 대씨

          1973년 목차 사건 문화 탄생 사망 노벨상 달력 둘러보기 메뉴