Checking numerical values of means. To compare with values in script file a3q1script.html.
Course: Math 2120, Fall 2004, Instructor: S.Sadov, Date: Nov 12, 2004.
(Part of Solutions/Comments to Assignment 3).
Test #1
> 1.0/(0.5*(1.0+1/4.0)); harmonic mean
> GaussAGM(1.0,4.0);
Test #6
> 1.0/(0.5*(1/0.25+1/0.4)); harmonic mean
Test #7
> GaussAGM(2.0,3.0);
Test #10 -- Maple is OK with it
>
(2.0+2.0E+7)/2;
(2.0*2.0E+7)^(1/2);
((1/2+1/2.0E+7)/2)^(-1);
GaussAGM(2.0,2.0E+7);
Test #11
>
(2.0+2.0E+6)/2;
(2.0*2.0E+6)^(1/2);
((1/2+1/2.0E+6)/2)^(-1);
GaussAGM(2.0,2.0E+6);
Tests #12-13
>
(2.0+1.0E+7)/2;
(2.0*1.0E+7)^(1/2);
((1/2+1/1.0E+7)/2)^(-1);
GaussAGM(2.0,1.0E+7);
>