MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

mathematica newbie ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92376] mathematica newbie ?
  • From: Jared.webb at yahoo.com
  • Date: Tue, 30 Sep 2008 07:33:18 -0400 (EDT)

I am extremely new to mathematica and am having trouble following the
documentation.

I would like to set up the following loop and have it send the output
to a vector.

If I have in mathematica:

nsupports=3
ndof=10
nels=2
int=range[0,nsupports-1]        - this is my iterator

I want to set up a loop:

for x in int:
if x=0, return 0
if x=nsupports-1, return ndof-2
otherwise, return x*nels*2

I want the output to go to a column vector.

Thanks
Jared


  • Prev by Date: Re: Re: How to debug init.m?
  • Next by Date: ContourStyle -> {{Dashing[0.15, 0.5]}} has no effect
  • Previous by thread: Glitch in NumberFieldFundamentalUnits
  • Next by thread: Re: mathematica newbie ?