I am unable to create a differential operator to generate Legendre Polynomials using the Axiom Book prescription or using HyoerDoc?. I have tried on both Windows and Mandrake Linux versions and the result is the same.
Gerald Farmer
Axiom book page 720:
axiom
L n ==
n = 0 => 1
n = 1 => x
(2*n-1)/n * x * L(n-1) - (n-1)/n * L(n-2)
Type: Void
axiom
dx := operator("D") :: OP(POLY FRAC INT)
Type: Operator(Polynomial(Fraction(Integer)))
axiom
Dp(p) == D(p, 'x)
Type: Void
axiom
-- use an explicit function instead of anonymous
evaluate(dx, Dp)
axiom
Compiling function Dp with type Polynomial(Fraction(Integer)) ->
Polynomial(Fraction(Integer))
Type: Operator(Polynomial(Fraction(Integer)))
axiom
E n == (1 - x**2) * dx**2 - 2 * x * dx + n*(n+1)
Type: Void
axiom
L 15
axiom
Compiling function L with type Integer -> Polynomial(Fraction(
Integer))
axiom
Compiling function L as a recurrence relation.
Type: Polynomial(Fraction(Integer))
axiom
E 15
axiom
Compiling function E with type PositiveInteger -> Operator(
Polynomial(Fraction(Integer)))
Type: Operator(Polynomial(Fraction(Integer)))
axiom
(E 15)(L 15)
Type: Polynomial(Fraction(Integer))
Category: Axiom on Linux => Axiom Documentation
Status: open => closed