Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • R3/school/git/basic-practice
  • beatriz.garcia/git.practice
  • daniel.duarte/git.practice
  • diana.hendrickx/git.practice
  • sonja.fixemer/git.practice
  • guadalupe.garcia/git.practice
  • nikola.maria/git.practice
  • NifEklej/git.practice
  • vanja.vlasov/git.practice
  • Trefex/git.practice
  • susheel.busi/git.practice
  • alice.oldano/git.practice
12 results
Show changes
Commits on Source (3)
function c = addTwoNumbers_myName(a, b)
% addTwoNumbers_myName(a, b) returns the sum of a and b
c = a - b;
c = a + b;
end
function y = sqrt_diana(x)
y = sqrt(x)
endfunction
% Test file
c = addTwoNumbers_myName(1, 2)
c = addTwoNumbers_diana(1, 2)
% test if the addition function works as expected
assert(c == 3)
% d = multiplyTwoNumbers_myName(c, c)
% d = multiplyTwoNumbers_diana(c, c)
% test if the multiplication function works as expected
% assert(d == 9)
% Test for the homework
% test my sqrt function
% assert(sqrt_myName(d) == sqrt(d))
assert(sqrt_diana(d) == sqrt(d))