octave-maintainers
[Top][All Lists]
Advanced

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

Re: symbolic pkg help for degree


From: Doug Stewart
Subject: Re: symbolic pkg help for degree
Date: Sun, 3 Jan 2016 16:44:49 -0500



On Sun, Jan 3, 2016 at 4:40 PM, Nicholas Jankowski <address@hidden> wrote:


On Jan 3, 2016 4:38 PM, "Nicholas Jankowski" <address@hidden> wrote:
>
>
> On Jan 3, 2016 10:09 AM, "Svante Signell" <address@hidden> wrote:
> >
> > On Sun, 2016-01-03 at 09:54 -0500, Doug Stewart wrote:
> > >
> > > Function File: n = degree (p)
> > > Function File: n = degree (p, x)
> > > Extract numerator and demoninator of symbolic _expression_.
> > > Examples:
> > > syms x
> > > degree(x^2 + 6)
> > >    ⇒ (sym) 2
> > >
> > >
> > > This function does not "extract numerator and denominator from"
> > > It finds the highest power of a variable.
> >
> > Well, it returns the degree of the numerator polynomial, which is two.
> > In this example, there is no denominator polynomial defined (note the
> > spelling, the help text is wrong!)
> >
>
> This seems to be attempting to emulate the MATLAB mupad function degree which is not defined for rational polynomials. According to the help for that function it returns the degree of the symbolic polynomial. It certainly seems like it could be extended for rational polynomials, but I'm not sure if that's the intent here.



I believe that Colin has fixed this already. 

 Doug

Additionally, what the heck is MuPAD?  MATLAB seems to treat it as some stand alone program not part of core MATLAB or the core symbolic toolbox. Is it inside the scope that Octave tries to maintain compatibility with?




--
DASCertificate for 206392


reply via email to

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