File r37/lisp/csl/html/r37_0146.html artifact 28d4ea93c9 part of check-in b7c3de82ef



<A NAME=DEG>

<TITLE>DEG</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>



<B>DEG</B> _ _ _  _ _ _  _ _ _  _ _ _ <B>operator</B><P>
<P>
 
 <P>
<P>
The operator <em>deg</em> returns the highest degree of its variable argument 
found in its expression argument. 
<P>
<P>
 <P> <H3> 
syntax: </H3>
<em>deg</em>(&lt;expression&gt;,&lt;kernel&gt;) 
<P>
<P>
<P>
&lt;expression&gt; is expected to be a polynomial expression, not a rational 
expression. Rational expressions are accepted when the switch 

<A HREF=r37_0322.html>ratarg</A> is on. &lt;variable&gt; must be a 
<A HREF=r37_0002.html>kernel</A>. The 
results are returned in a list. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>

deg((x+y)**5,x); 

  5 



deg((a+b)*(c+2*d)**2,d); 

  2 



deg(x**2 + cos(y),sin(x)); 


deg((x**2 + sin(x))**5,sin(x)); 

  5

</TT></PRE><P>

REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]