Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Nikola de Lange
git.practice
Commits
8558ccb0
Commit
8558ccb0
authored
Jan 19, 2017
by
Jennifer Modamio
Browse files
new function
parent
3589f1c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
sqrt_jenn.m
View file @
8558ccb0
% 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
))
function s = sqrt_jenn(a)
s = sqrt(a);
end
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