Adept Scientific - English
The world's best software and hardware 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  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Facebook Adept Scientific on Twitter Adept Scientific on YouBube Adept Scientific on LinkedIn


The Next Steps

• Ask us a question
• Watch Maple Video Demonstrations
• Buy Maple Now
• View Maple Pricing
• Download a Brochure
• Request an Evaluation
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 17 Overview
Maple 17 Professional
Maple 17 Academic
Maple 17 Student Use
What's New in Maple 17
Maple Features
Maple History
Recorded Online Seminars

MapleSim
MapleNet
Maple T.A.
BlockImporter™
Maple Toolboxes
The Möbius Project

Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

Latest Information

New Features: Professional
New Features: Academic
Maple Features
The Maple Reporter Online

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] programming a table

Search email archive for  

[MUG] programming a table
Author: Herg2770    Posted: 26/10/2000 02:45:50 GDT
>> From:

Hi,

I am currently in the process of writing a program in Maple to add points of
an elliptic curve over a finite field, and I am having difficulty determining
how to organize my output as a table. I have tried using the array command
but was unsuccessful as it only recognizes the last entry in the loop. Any
help would be most appreciated.

Thank you



[MUG] Re: programming a table
Author: Maple Group    Posted: 01/11/2000 15:07:33 GMT
>> From: Maple Group

On Wed, 25 Oct 2000 wrote:
|> I am currently in the process of writing a program in Maple to add
|> points of an elliptic curve over a finite field, and I am having
|> difficulty determining how to organize my output as a table. I have
|> tried using the array command but was unsuccessful as it only
|> recognizes the last entry in the loop. Any help would be most
|> appreciated.

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

Date: Thu, 26 Oct 2000 15:04:00 -0700 (PDT)
From: Robert Israel
To:
Subject: programming a table


From this message it's very hard to figure out what your actual difficulty
is. In what way does it only recognize the last entry in the loop? The
usual way to put entries into either an array or table inside a loop
would be something like:

> for i from ... to ... do
...
T[i] := ...;
od;

This will automatically set up T as a table. If you want it to be an
array, set up the array first, something like

> T:= array(1..1000);
for i from ... to ... do
...
T[i] := ...;
od;

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



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

Date: Mon, 30 Oct 2000 13:07:31 +0100
From: Barsuhn
Subject: programming a table
To:

A table is the most general random access data structure in Maple. It
will be created as soon as you assign to an indexed symbol. You may use
nearly everything as index expresssion (of course also simple numbers if
desired). The following statements show the creation of the table
My_Table containing some nonsense. The final statement eval(My_Table);
shows its contents and you see that there is not only the final entrance
present. Could it be that you positioned your assignment statement
behind the terminating clause of the loop (end do or od in previous
versions)?

< for i from -2 by 3 to 4 do
> for j in [red,green,blue] do
> for k in [10,100,x^2] do
> My_Table[i,j,k]:=i+j+k
> end do
> end do
> end do;
> eval(My_Table);

All the best Jurgen


--
-------------------
Prof. Dr. Jurgen Barsuhn
Fachhochschule Bielefeld
University of Applied Sciences
Fachbereich Elektrotechnik und Informationstechnik
Wilhelm-Bertelsmann-Str. 10
D-33602 Bielefeld
-----------





Previous by date: [MUG] rootof and allvalues, Don Hartig
Next by date: [MUG] Re: Bug in contourplot in Maple6, Maple Group
Previous thread: [MUG] smooth splines, Cesar Augusto De Freitas Anselmo
Next thread: [MUG] Bug in contourplot in Maple6., Carl Eberhart



Ready to buy?

For more pricing information:
Visit our webstore, call us on +1 800 724 8380 or email us at info@adeptscience.com

Featured Downloads

Maplesoft Product Catalogue
Maple Player for iPad - Datasheet
Maple 17 What's New datasheet
Maple 17 Professional Datasheet
Maple Whitepaper: Driving Innovation - How mathematical modeling and optimisation increase efficiency and productivity in vehicle design.
MapleSim Whitepaper - Technological Superiority in Multi-Domain Physical Modelling and Simulation

Latest Downloads

Maple - Global Optimization Toolbox
The Möbius Project - Create it, Share it, Grade it
Maple 17 Programming Guide
Maple 17 User Manual
Maplesoft Product Catalogue - Academic Maths

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

Latest News

Global Optimization Toolbox: Better Optimization to Solve More Problems, Faster
Global Optimization Toolbox: Better Optimization to Solve More Problems, Faster
New MapleSim release delivers advanced model development and analysis, extended toolchain connectivity and quicker results
Maple 17 offers advanced solving and application development capabilities
New release of Maple advances teaching and research
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2013, Adept Scientific Ltd.
Site designed and maintained by Lyndon Ash

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