Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Re: [mg4997] Module and Block in Mathematica
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Yokoi Takahisa

Posts: 4
Registered: 12/7/04
Re: [mg4997] Module and Block in Mathematica
Posted: Oct 25, 1996 10:18 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

At 0:41 96/10/17 -0400, James R Gutman wrote:
R Gutman>I want mathematica to let me use
R Gutman>the Block and Module commands with
R Gutman>variables that are of the form u[t],
R Gutman>where t can take on various positive
R Gutman>integer values. When I try to do this,
R Gutman>mathematica tells me it isn't a
R Gutman>symbol or an assignment to a symbol.
R Gutman>What to do?

I'm not sure weather I have fully understood your problem or not.

But try "Module[ { u, t }, ..."
instead of "Module[ { u[t] }, ...".

Just as,
Module[ { u[t] },
u[t] = 55;
u[t] += 100
From In[25]:=
Local variable specification {u[t]} contains u[t]
which is not a symbol or an assignment to a symbol.
Module[{u[t]}, u[t] = 55; u[t] += 100]

Module[ { u, t },
u[t] = 55;
u[t] += 100

Gutman, why don't use Wolfram's Technical Support?
Their response is quick and precise.
E-mail address is:
Technical Support <support@wolfram.com>

* Yokoi Takahisa <yokoi@skk.is.tohoku.ac.jp>
** Graduate School of Information Science,
*** Tohoku Univ. <Tonpei>, Sendai, Japan

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.