Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
school
git
basic-practice
Commits
9e1fbef7
Commit
9e1fbef7
authored
Jan 19, 2017
by
Jennifer Modamio
Browse files
Merge branch 'homework_jenn' into 'master'
Homework jenn See merge request !16
parents
3ffd2dfe
45eef67d
Changes
4
Hide whitespace changes
Inline
Side-by-side
firstCommit/addTwoNumbers_jenn.m
0 → 100644
View file @
9e1fbef7
function
c
=
addTwoNumbers
(
a
,
b
)
% addTwoNumbers(a, b) returns the sum of a and b
c
=
a
+
b
;
end
secondCommit/multiplyTwoNumbers_jenn.m
0 → 100644
View file @
9e1fbef7
function
c
=
multiplyTwoNumbers
(
a
,
b
)
% multiplyTwoNumbers(a, b) returns the product of a and b
c
=
a
*
b
;
end
sqrt_jenn.m
0 → 100644
View file @
9e1fbef7
function s = sqrt_jenn(a)
s = sqrt(a);
end
test_jenn.m
0 → 100644
View file @
9e1fbef7
% Test file
addpath
(
genpath
(
pwd
))
% add this folder and all subfolders to the path
c
=
addTwoNumbers_jenn
(
1
,
1
);
% 1 + 1
d
=
multiplyTwoNumbers_jenn
(
c
,
c
);
% 2 * 2
% test my sqrt function
assert
(
sqrt_jenn
(
d
)
==
sqrt
(
d
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment