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] Re: Swap hunter

Search email archive for  

[MUG] Re: Swap hunter
Author: Maple User Group    Posted: Wed, 1 May 2002 15:19:16 -0400 (

>> From: Maple User Group "maple_gr"

-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Tue, 30 Apr 2002 15:41:07 -0700 (PDT)
From: Robert Israel "israel"
To: "maple-list"
Subject: Swap hunter.


Without knowing more about what you're trying to do, it's hard to give
good advice, but you may be able to change your program so that it uses
less memory. If you don't need to keep all those z[i] values, why call
them z[i]? Maybe you can just use the same variable (or a few of them)
in each iteration. Or if you do need all the values, it should be
much more memory-efficient to use a Vector, particularly if you know what
type of data will go in it. E.g. if they can all be 2-byte integers
(i.e. integers from -32768 to 32767), you can make z a Vector with
datatype=integer[2], and your 3 000 000 entries will only take up 6 MB.

Robert Israel "israel"
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2

On Thu, 25 Apr 2002 "methedras" wrote:

| In a work with Maple, I had something like that:
| while abs(z[i])<2 do:
| i:=i+1;
| od:
| the problem isn't from the syntax as it works perfectly and the problem I have
| isn't a "syntax kind" of problem. The problem is that Maple starts with z[0]
| and keeps in memory every z[i] it computes !! And it should go to over 3 000
| 000 therefore it starts to swap and the process gets extremely slow. Is there
| any function/option that could avoid this behaviour.


-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

From: "Willard, Daniel Dr DUSA-OR" "daniel.willard"
To: "''"
Subject: Swap hunter.
Date: Tue, 30 Apr 2002 16:15:02 -0400


Use remember; maybe plot z over a range to see roughly where significant events occur.

Previous by date: [MUG] Re: Exporting Plots to files, Maple User Group
Next by date: [MUG] Hopfu.mws, C W
Previous thread: [MUG] Interpolation in Maple, Ryan Shannon
Next thread: [MUG] Hopfu.mws, C W



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