Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Maple Product Tour
• Buy Maple Now
• View Maple Pricing
• Download a Brochure
• Request a Brochure
• Download a Demo
• Request a Demo
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 12 Professional
Maple 12 Academic
Maple 12 Student Use
Recorded Online Seminars
FREE Training Resources
Maple Application Briefs
Maple Adoption Program

MapleNet
Maple T.A.
MapleConnect
BlockImporter for Simulink
BlockBuilder for Simulink
Maple Toolboxes
Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

Latest Information

New Features: Professional
New Features: Academic
The Maple Reporter Online
Numerical Algorithms Group
(NAG)


Service & Support

Maple Primes
blogs, forums etc

Elite Maintenance Program
Application Centre
Powertools
Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] max element of array

Search email archive for  

[MUG] max element of array
Author: Jeffrey Dambacher    Posted: Tue, 28 Jan 2003 15:54:09 +1100

>> From: "Jeffrey.Dambacher"

Dear Maple User Group,

I was wondering if there was any chance that a question I have regarding
Maple could be put to the Maple User Group. Please let me know what
resources are available to me in regards to the below question.

Thanks for any forthcoming help.

Best regards,

Jeffrey Dambacher
CSIRO Marine Research
Hobart, Tasmania
Australia
"Jeffrey.Dambacher"

-------------------------------------------------------------------
The problem is to find the maximum value of elements of a given array, of
length n, where elements of the array and length vary from one application
to another.

A fixed example given here, where
n:=5:
w:=array(1..n,[1,4,5,3,2]):

how do I pull out the max value of w without listing each w[j] element of w
as above? While I can do it for the above n=5 example with:

max(w[1],w[2],w[3],w[4],w[5]):

If I want to evaluate an array of length 4 or 6, I would have to either add
or subtract a w[j] element from the above command. I need to work off of
one command for any size of n. It seems that

max(w[1..n]);

or

max(entries(w));

should work, but they does not.

Previous by date: [MUG] plotting colors in maple,  Kristian Jantz
Next by date: [MUG] multiple integration, Maple User Group
Previous thread: [MUG] Automata and Maple, Vesa-Matti Sarenius
Next thread: [MUG] multiple integration, Maple User Group



Ready to buy?

Maple - single user licence
Add to shopping basket
$ 1,895.00
Upgrade to Maple 12 from v11
Add to shopping basket
$ 995.00
Upgrade to Maple 12 from v10 & below
Add to shopping basket
$ 1,395.00

Featured Downloads

Maple White Paper: Technical Knowledge - An Asset You Can Afford to Lose?
Maple in Electronics Application Pack
Maple in Robotics & Aerospace Application Pack
Maple in Finance Application Pack

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055