Mathematica Newbie Help Please
Hello everyone, I am currently making the switch over from MathCad to Mathematica...wow the learning curve is rather steep! (Doh)
I am trying to set up a calc to determine different dof's in a simple beam.
If I have in mathematica:
is=range[0,nsupports-1] - this is my iterator
I want to set up a loop:
for x in is:
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 which will give me where each different degree of freedom is located.