Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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