The Beastie Forums
For those who failed task 4 - Printable Version

+- The Beastie Forums (http://beastie.cs.ua.edu/mybb)
+-- Forum: Programming Languages (http://beastie.cs.ua.edu/mybb/forumdisplay.php?fid=14)
+--- Forum: Assignment 1 (http://beastie.cs.ua.edu/mybb/forumdisplay.php?fid=15)
+--- Thread: For those who failed task 4 (/showthread.php?tid=177)



For those who failed task 4 - davidmccoy - 09-11-2017

Check out the exercises in Chapter 1.1 to improve your good-enuf? function (they don't provide an answer, just a hint).

Quick test for your improved function:

Code:
echo "(3.600000e-07)" > task4.args
scam -r task4.scm task4.args > results.txt
echo "(3.400000e-07)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(1.600000e-07)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(9.500000e-07)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(4.400000e-07)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(2)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(3)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(4)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(12)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(63246)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(5179)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(1)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(0)" > task4.args
scam -r task4.scm task4.args >> results.txt

Code:
0.2904191222
0.2890390868
0.2714417617
0.3148789538
0.2953165071
1.0594630944
1.0958726911
1.1224620483
1.2300755056
2.5123844031
2.0394848923
1.0000000000
0.000000e+00



RE: For those who failed task 4 - mmrahman - 09-12-2017

Thank you Mccoy, finally figured it out, my output comes out the same now.