diff --git a/src/firstCommit/addTwoNumbers_BUSI.m b/src/firstCommit/addTwoNumbers_BUSI.m new file mode 100644 index 0000000000000000000000000000000000000000..2817d784d7808f7c50d4d615893ac54ef0a97422 --- /dev/null +++ b/src/firstCommit/addTwoNumbers_BUSI.m @@ -0,0 +1,5 @@ +function c = addTwoNumbers_BUSI(a, b) +% addTwoNumbers_BUSI(a, b) returns the sum of a and b + +c = a + b; +end diff --git a/src/secondCommit/multiplyTwoNumbers_BUSI.m b/src/secondCommit/multiplyTwoNumbers_BUSI.m new file mode 100644 index 0000000000000000000000000000000000000000..f7a1b9d3df5a62c459d149486a8fc84b8b4f8059 --- /dev/null +++ b/src/secondCommit/multiplyTwoNumbers_BUSI.m @@ -0,0 +1,5 @@ +function c = multiplyTwoNumbers_BUSI(a, b) +% multiplyTwoNumbers_BUSI(a, b) returns the product of a and b + +c = a * b; +end diff --git a/test/suite/test_myName.m b/test/suite/test_BUSI.m similarity index 60% rename from test/suite/test_myName.m rename to test/suite/test_BUSI.m index e1b6d2e4a80c8c537e0c0a5e0d1cb8d89651ed39..dc9ba6cef7077ff47c04e1de7c22566b9983e3d3 100644 --- a/test/suite/test_myName.m +++ b/test/suite/test_BUSI.m @@ -1,15 +1,15 @@ % Test file -c = addTwoNumbers_myName(1, 2) +c = addTwoNumbers_BUSI(1, 2) % test if the addition function works as expected assert(c == 3) -% d = multiplyTwoNumbers_myName(c, c) +d = multiplyTwoNumbers_BUSI(c, c) % test if the multiplication function works as expected -% assert(d == 9) +assert(d == 9) % Test for the homework % test my sqrt function -% assert(sqrt_myName(d) == sqrt(d)) +assert(sqrt_BUSI(d) == sqrt(d))