Count the coins: Difference between revisions

Content added Content deleted
Line 2,126: Line 2,126:
=={{header|Maple}}==
=={{header|Maple}}==


Straightforward implementation with power series. Not very efficient for large amounts.
Straightforward implementation with power series. Not very efficient for large amounts. Note that in the following, all amounts are in '''cents'''.


<lang maple>assume(p::posint,abs(x)<1):
<lang maple>assume(p::posint,abs(x)<1):