LCOF INDEX

LCOF _ _ _ _ _ _ _ _ _ _ _ _ operator

The lcof operator returns the leading coefficient of a given expression with respect to a given variable.

syntax:

lcof(<expression>,<kernel>)

<expression> is ordinarily a polynomial. If ratarg is on, a rational expression may also be used, otherwise an error results. <kernel> must be a kernel.

examples:


lcof((x+2*y)**5,y); 

  32 


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


        2
  COS(X)  + Y 


lcof(x**2 + 3*x + 17,y); 

   2
  X  + 3*X + 17

If the kernel does not appear in the expression, lcof ret urns the expression.