Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9700

function Get, but, returning all evaluated expression

From Guilherme CorrĂȘa Teixeira <gui.cor.tei@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject function Get, but, returning all evaluated expression
Date 2012-04-20 11:45 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jmri8q$lam$1@smc.vnet.net> (permalink)

Show all headers | View raw


I have a lot of files named problem1.m, problem2.m, problem3.m, ... ,
problem20.m

In these files i set a lot of instructions like Initial conditions of
my problem and some equations...

My main program is called Lagrange.m

this program / file, solve the problems 1, 2, 3 , ... , 20...
and show a lot of graphics and also a huge Animate...

for now, i'm using the command "<< problem1.m" in the first line above
the codes inside the Lagrange.m, to solve the problem1.m...
and, if I need to solve the problem20.m, I need to change the text
inside my Lagrange.m to "<< problem20.m"...

So...
I don't want to open and reopen  the Lagrange.m a million of times...
I want to open the problem1.m and insert "<< Lagrange.m" in the end of
the code...

finally, my problem is...
when i use it: "<< Lagrange.m", i only receive the last evaluated
feedback...
and I need to receive all the graphics and all the animations inside
the Problem1.m...

HOW CAN I DO THIS??
I think I can't use the "<<", because in the Documention Center it
says:

<<name
reads in a file, evaluating each expression in it, and returning the
last one.
-----------------------------

so, It will return the last one...

i need a function to to this:
reads in a file, evaluating each expression in it, and returning ALL
OF THEM!!


Can you help me?

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

function Get, but, returning all evaluated expression Guilherme CorrĂȘa Teixeira <gui.cor.tei@gmail.com> - 2012-04-20 11:45 +0000

csiph-web