Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For those who failed task 4
#1
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
UA ACM Vice President
ACM has bi-weekly meetings Tuesdays at 5:15pm
We're UA's best organization for CS majors (website)
Join us on Slack for all kinds of discussion channels (including one for CS403)
Reply
#2
Thank you Mccoy, finally figured it out, my output comes out the same now.
WINTER IS COMING Exclamation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)