stockoverflow
stockoverflow

Reputation: 1457

Question about using Maple's arrow (->) notation

Hi can someone show me how to do this:

Your function should take a Maple list of complex numbers as its input and return the largest modulus from that list.

Upvotes: 0

Views: 1502

Answers (1)

acer
acer

Reputation: 7271

Hint: Use the map command to apply the abs command to some such list. Then apply the max command to that. Now repeat, by composing that second operation around the first. Finally, create an operator which takes L to that composed operation applied to L.

Look to the help-pages ?max, ?map, ?abs, and ?operators,functional, if necessary.

Upvotes: 1

Related Questions