kill(all)$

    Continued Fraction Representation of Common Constants

van=facebook.com/LearningCalculus$

percentError(about, x):=(float(about)-float(x))*100$

number(x):=first(x)+1/(second(x)+1/(third(x)+1/(fourth(x))));

aboutPi:number([3,7,15,1]);

float(aboutPi);

percentError(aboutPi, %pi);

aboutPhi:number([1,1,1,1]);

percentError(aboutPhi, %phi);

aboutE: number([2,1,2,1]);

percentError(aboutE, %e);