CS 2213, Spring 2005 Test input data for the translation program with its output piped into the evaluation program. These are actual runs of my program written for this recitation. (The high-precision values accurate to 30 decimal places are given for reference.) 1+1/(2+1/(2+1/(2+1/(2+1/(2+1/(2+1/(2+1/(2+1/(2+1/(2+1 /(2+1/(2+1/(2+1/(2+1/(2+1/(2+1/(2+1/(2+1/(2+1/(2 ))))))))))))))))))))$ Result is: 1.4142135623730949 (Note:sqrt(2) = 1.414213562373095048801688724209...) 2+1/(1+1/(2+1/(1+1/(1+1/(4+1/(1+1/(1+1/(6+1/(1+1/(1+1 /(8+1/(1+1/(1+1/(2*5+1/(1+1/(1+1/(2*6+1/(1+1/(1+1/(2* 7+1 ))))))))))))))))))))$ Result is: 2.7182818284590455 (Note:e = 2.718281828459045235260287471352...) 3+1/(7+1/(5*3+1/(1+1/((4*(9*8+1))+1/(1+1/(1+1/(1+1/(2+1/(1+1 /(3+1/(1+1/(2*7+1/(2+1) ))))))))))))$ Result is: 3.1415926535897931 (Note:pi = 3.141592653589793238462643383279...) 1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1 /(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1 /(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1/(1+1 )))))))))))))))))))))))))))))))))))$ Result is: 1.6180339887498940 (Note: f = 1.618033988749894848204586834365 ... 4/(1+1/( 3 +( 2 * 2)/ ( 5 +( 3 * 3)/ ( 7 +( 4 * 4)/ ( 9 +( 5 * 5)/ ((9+2) +( 6 * 6)/ ((9+4) +( 7 * 7)/ ((9+6) +( 8 * 8)/ ((9+8) +( 9 * 9)/ ((6*3+1)+((9+1)*(9+1))/ ((6*3+3)+((9+2)*(9+2))/ ((6*3+5)+((9+3)*(9+3))/ ((6*3+7)+((9+4)*(9+4))/ ((6*3+9)+((9+5)*(9+5))/ ((9*3+2)+((9+6)*(9+6))/ ((9*3+4)+((9+7)*(9+7))/ ((9*3+6)+((9+8)*(9+8))/ ((9*3+8)+((9+9)*(9+9))/ ((7*5+2)+((6*3+1)*(6*3+1))/ ((7*5+4)+((6*3+2)*(6*3+2))/ ((7*5+6)+((6*3+3)*(6*3+3))/ ((7*5+8)+((6*3+4)*(6*3+4)) ) ) ))))) ))))) ))))) )))))$ Output translation to RPN: 411322*533*744*955*92+66*94+77*96+88*98+99*63*1+91+91+*63*3+92+92+*63*5+93+93+*63*7+94+94+*63*9+95+95+*93*2+96+96+*93*4+97+97+*93*6+98+98+*93*8+99+99+*75*2+63*1+63*1+*75*4+63*2+63*2+*75*6+63*3+63*3+*75*8+63*4+63*4+*+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/$ Result is: 3.1415926535897936 (Note:pi = 3.141592653589793238462643383279...)