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
- Follow-Ups:
- Re: mathematica newbie ?
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: mathematica newbie ?