[Date Index] [Thread Index] [Author Index]
mathematica newbie ?
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