axiom-developer
[Top][All Lists]
Advanced

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

[Axiom-developer] [#176 Factored Polynomials aren't differentiated corre


From: kratt6
Subject: [Axiom-developer] [#176 Factored Polynomials aren't differentiated correctly] Fix
Date: Tue, 21 Jun 2005 05:55:23 -0500

Changes 
http://page.axiom-developer.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.axiom-developer.org/zope/mathaction/address@hidden




reply via email to

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