    |\^/|     Maple 9.5 (IBM INTEL LINUX)
._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2004
 \  MAPLE  /  All rights reserved. Maple is a trademark of
 <____ ____>  Waterloo Maple Inc.
      |       Type ? for help.
# Kincaid and Cheney Problem 6.8 # 21
# Written December 4 by Eric Olson for Math 761
> restart;
> kernel(printbytes=false):
> l2prod:=(f,g)->int(f*g,x=-1..1);
                                               1
                                              /
                                             |
                        l2prod := (f, g) ->  |   f g dx
                                             |
                                            /
                                              -1

> p[0]:=1;
                                   p[0] := 1

> a[1]:=l2prod(x*p[0],p[0])/l2prod(p[0],p[0]);
                                   a[1] := 0

> p[1]:=x-a[1];
                                   p[1] := x

> for n from 2 to 5 do
>     a[n]:=l2prod(x*p[n-1],p[n-1])/l2prod(p[n-1],p[n-1]);
>     b[n]:=l2prod(x*p[n-1],p[n-2])/l2prod(p[n-2],p[n-2]);
>     p[n]:=sort(collect((x-a[n])*p[n-1]-b[n]*p[n-2],x));
> od;
                                   a[2] := 0

                                  b[2] := 1/3

                                         2
                                p[2] := x  - 1/3

                                   a[3] := 0

                                  b[3] := 4/15

                                        3
                               p[3] := x  - 3/5 x

                                   a[4] := 0

                                  b[4] := 9/35

                                    4        2
                           p[4] := x  - 6/7 x  + 3/35

                                   a[5] := 0

                                           16
                                   b[5] := --
                                           63

                                  5         3
                         p[5] := x  - 10/9 x  + 5/21 x

> quit
bytes used=753184, alloc=655240, time=0.10
