3.6 KiB
Assessment for Homework 05
This is the automated grading for homework 5. More grading will be done for the written components of this assignment.
Total score: 65 / 65
Run on April 14, 14:04:12 PM.
- Pass: Change into directory "Hwk_05".
Feedback for hwk_05.ml
-
Pass: Check that file "hwk_05.ml" exists.
-
Pass: Check that an OCaml file "hwk_05.ml" has no syntax or type errors.
OCaml file "hwk_05.ml" has no syntax or type errors.
-
2 / 2 : Pass: Check that the result of evaluating
ands [ true; true; true ]
matches the pattern
true
. -
1 / 1 : Pass: Check that the result of evaluating
ands [ ]
matches the pattern
true
. -
2 / 2 : Pass: Check that the result of evaluating
ands [ true; false; true ]
matches the pattern
false
.
Feedback for streams.ml
-
Pass: Check that file "streams.ml" exists.
-
Pass: Check that an OCaml file "streams.ml" has no syntax or type errors.
OCaml file "streams.ml" has no syntax or type errors.
cubes_from
-
2 / 2 : Pass: Check that the result of evaluating
head (cubes_from 2)
matches the pattern
8
. -
3 / 3 : Pass: Check that the result of evaluating
take 5 (cubes_from 3)
matches the pattern
[27; 64; 125; 216; 343]
.
drop
-
2 / 2 : Pass: Check that the result of evaluating
head ( drop 3 nats )
matches the pattern
4
. -
3 / 3 : Pass: Check that the result of evaluating
take 2 ( drop 3 ( squares ) )
matches the pattern
[ 16; 25 ]
.
drop_until
-
2 / 2 : Pass: Check that the result of evaluating
head (drop_until (fun v -> v > 35) squares)
matches the pattern
36
. -
3 / 3 : Pass: Check that the result of evaluating
take 3 (drop_until (fun x -> x > 10) nats)
matches the pattern
[11; 12; 13]
.
map
-
2 / 2 : Pass: Check that the result of evaluating
head (map (fun x -> x mod 2 = 0) nats)
matches the pattern
false
. -
3 / 3 : Pass: Check that the result of evaluating
take 4 (map (fun x -> x mod 2 = 0) nats)
matches the pattern
[false; true; false; true]
.
squares_again
-
2 / 2 : Pass: Check that the result of evaluating
head squares_again
matches the pattern
1
. -
3 / 3 : Pass: Check that the result of evaluating
take 5 squares_again
matches the pattern
[1; 4; 9; 16; 25]
.
square root approximations
-
5 / 5 : Pass: Check that the result of evaluating
head (sqrt_approximations 49.0)
is within 1.0 of25.
. -
5 / 5 : Pass: Check that the result of evaluating
head (drop 4 (sqrt_approximations 49.0))
is within 0.5 of8.5
. -
5 / 5 : Pass: Check that the result of evaluating
head diminishing
is within 1.0 of16.0
. -
5 / 5 : Pass: Check that the result of evaluating
head (drop 6 diminishing)
is within 0.05 of0.25
. -
5 / 5 : Pass: Check that the result of evaluating
epsilon_diff 0.3 diminishing
is within 0.3 of0.25
. -
5 / 5 : Pass: Check that the result of evaluating
precise_calculation
is within 0.05 of7.07
.
another square root approximation
- 5 / 5 : Pass: Check that the result of evaluating
sqrt_threshold 50.0 3.0
is within 0.5 of7.12
.