octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53863] [octave forge] (symbolic) Octave not s


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #53863] [octave forge] (symbolic) Octave not solving right
Date: Tue, 8 May 2018 15:55:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Update of bug #53863 (project octave):

                Category:         Octave Function => Octave Forge Package   
                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 
                 Summary: Octave not solving right => [octave forge]
(symbolic) Octave not solving right

    _______________________________________________________

Follow-up Comment #2:

The answer is correct when you factor your assumptions into the solution.

With no assumptions, you get the result that you have seen. Because in
general, sqrt(a*b) is not equal to sqrt(a)*sqrt(b).

If you assume your symbols 'a' and 'b' are positive real numbers, then you get
the result that you want


syms a b positive real
syms c p
y = a - b / (c + p) ^ 2;
solve (y,p)


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53863>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]