Martin Rubey wrote:
> 
> Waldek Hebisch <[EMAIL PROTECTED]> writes:
> 
> > coefficient lowers total degree by a constant, so it should be
> > enough to shift Stream.
> 
> Thanks.  Below a new patch.  If you give OK for 
> 
> +    coefficient(s: %, lv: List Var, ln: List NNI): % == 
> +        map(coefficient(#1, lv, ln), rest(s, reduce(_+, ln)))
> 
> and the generic definition in pscat
> 
>     coefficient(s: %, v: Var, n: NNI): % == coefficient(s, [v], [n])
> 
> I'll write some unittests, run them, and commit.
> 

Code for coefficient looks OK.  Comments about polynomial are somewhat
out of place and I am not sure what you want to do with leadingCoefficient
and friends.

-- 
                              Waldek Hebisch
[EMAIL PROTECTED] 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to