[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiomdeveloper] [#176 Factored Polynomials aren't differentiated corre
From: 
kratt6 
Subject: 
[Axiomdeveloper] [#176 Factored Polynomials aren't differentiated correctly] Fix 
Date: 
Tue, 21 Jun 2005 05:55:23 0500 
Changes
http://page.axiomdeveloper.org/zope/mathaction/176FactoredPolynomialsArentDifferentiatedCorrectly/diff

??changed:
It intends to use the formula

It intends to use the formula
$$\frac{d}{dx} f(x)) = \sum_{i=1}^n \frac{f(x)}{f_i(x)}\frac{d}{dx}f_i(x)$$
where
$$f(x)=\prod_{i=1}^n f_i(x).$$
Therefore, the fix is to leave away the 'fr'::
differentiate(u:%, deriv: R > R) ==
ans := deriv(unit u) * ((u exquo unit(u)::%)::%)
ans + (_+/[fact.xpnt * deriv(fact.fctr) *
((u exquo nilFactor(fact.fctr, 1))::%) for fact in factorList u])
Martin

forwarded from http://page.axiomdeveloper.org/zope/mathaction/address@hidden
 [Axiomdeveloper] [#176 Factored Polynomials aren't differentiated correctly] Fix,
kratt6 <=