Menu

#3510 another example of odeL returning spurious result for incorrect inputs

None
open
nobody
5
2020-12-23
2018-12-16
No

Hi All,

Consider the following code:

load(odes)$load(contrib_ode)$

assume(R_s>0)$
declare(R_s,constant)$

Eq:'diff(y,r,1) = (R_s * y)/(2 * r * (r-R_s));

sol1:odeL(Eq,y,r),fullratsimp;
method;
ode_check(Eq,sol1),fullratsimp;

sol2:ode2(Eq,y,r),fullratsimp;
method;
is(ev(Eq,sol2,diff,eval,fullratsimp));

method;
ode_check(Eq,sol3);

method;
ode_check(Eq,sol4);

The results of odeL are wrong.

Daniel

Related

Bugs: #3510

Discussion

  • Daniel Volinski

    Daniel Volinski - 2019-01-12

    This bug has not been addressed yet.
    Daniel

     
    • Aleksas

      Aleksas - 2019-01-13

      odeL is function for solving linear ode with constant coefficients in form
      L(y)=f.
      Tray:
      (%i2) eq:'diff(y,r,1) = (R_s * y)/(2 * r * (r-R_s))$
      ode2(eq,y,r),radcan;
      (%o2) y=(%c*sqrt(r-R_s))/sqrt(r)

      best

      2019-01-12, št, 19:42 Daniel Volinski danielvolinski@users.sourceforge.net
      rašė:

      This bug has not been addressed yet.
      Daniel


      Status: open
      Group: None
      Created: Sun Dec 16, 2018 07:25 AM UTC by Daniel Volinski
      Last Updated: Sun Dec 16, 2018 07:25 AM UTC
      Owner: nobody

      Hi All,

      Consider the following code:

      load(odes)$load(contrib_ode)$

      assume(R_s>0)$
      declare(R_s,constant)$

      Eq:'diff(y,r,1) = (R_s * y)/(2 * r * (r-R_s));

      sol1:odeL(Eq,y,r),fullratsimp;
      method;
      ode_check(Eq,sol1),fullratsimp;

      sol2:ode2(Eq,y,r),fullratsimp;
      method;
      is(ev(Eq,sol2,diff,eval,fullratsimp));

      method;
      ode_check(Eq,sol3);

      method;
      ode_check(Eq,sol4);

      The results of odeL are wrong.

      Daniel

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/maxima/bugs/3510/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #3510

  • Daniel Volinski

    Daniel Volinski - 2019-01-13

    I understand, thank you.
    I still think that odeL should issue an error if it can't solve the equation, instead of issuing a wrong answer.
    Daniel

     
  • Robert Dodier

    Robert Dodier - 2020-12-23
    • labels: --> share packages, diff eqs, odeL
    • summary: odeL wrong results --> another example of odeL returning spurious result for incorrect inputs
     
  • Robert Dodier

    Robert Dodier - 2020-12-23

    See also #3511 which is another example of the same issue.

     

Log in to post a comment.

MongoDB Logo MongoDB