Skip to content

Commit

Permalink
added: another computeCost test
Browse files Browse the repository at this point in the history
  • Loading branch information
vasnake committed Apr 1, 2014
1 parent 47e2044 commit da61458
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ex1/test_computeCost.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ function test_computeCost ()
a = 7.0175;
assert(x, a, epsilon);

x = computeCost( [1 2; 1 3; 1 4; 1 5], [7;6;5;4], [0.1;0.2] );
a = 11.9450;
assert(x, a, epsilon);

endfunction

0 comments on commit da61458

Please sign in to comment.