June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
17
Task/Mutual-recursion/Maple/mutual-recursion.maple
Normal file
17
Task/Mutual-recursion/Maple/mutual-recursion.maple
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
female_seq := proc(n)
|
||||
if (n = 0) then
|
||||
return 1;
|
||||
else
|
||||
return n - male_seq(female_seq(n-1));
|
||||
end if;
|
||||
end proc;
|
||||
|
||||
male_seq := proc(n)
|
||||
if (n = 0) then
|
||||
return 0;
|
||||
else
|
||||
return n - female_seq(male_seq(n-1));
|
||||
end if;
|
||||
end proc;
|
||||
seq(female_seq(i), i=0..10);
|
||||
seq(male_seq(i), i=0..10);
|
||||
Loading…
Add table
Add a link
Reference in a new issue