Skip to content
Snippets Groups Projects
Commit 8558ccb0 authored by Jennifer Modamio's avatar Jennifer Modamio
Browse files

new function

parent 3589f1c4
No related branches found
No related tags found
No related merge requests found
% 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment