Skip to main content
10-Marble
February 4, 2015
Solved

Programming in MathCAD Prime 3

  • February 4, 2015
  • 4 replies
  • 1876 views

Good Afternoon Community,

If anybody can tell me why I'm not getting an output to the attached file. My goal is to calculate the lateral stiffness of a pile group called alpha_sub_uF, but when I substitute the pile spacing S_p and xi in the procedure, I did not get any output. I have cut and paste the equation I'm trying to program at the bottom of the worksheet. Please help.

Regards,

Boyer

Best answer by Werner_E

Prime numbers by default matrix elements beginning from 0, not from 1. This is determined by the system variable ORIGIN.

So either you rewrite your routine so that the loops run fron 0 to np-1 (as opposed to 1 to np) or you set ORIGIN to 1. Personally I prefer to use the default ORIGIN=1.

As you have created alpha_uF as a function you have to provide arguments when you call it.

1.png

4 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
February 4, 2015

Prime numbers by default matrix elements beginning from 0, not from 1. This is determined by the system variable ORIGIN.

So either you rewrite your routine so that the loops run fron 0 to np-1 (as opposed to 1 to np) or you set ORIGIN to 1. Personally I prefer to use the default ORIGIN=1.

As you have created alpha_uF as a function you have to provide arguments when you call it.

1.png

19-Tanzanite
February 4, 2015

Personally I prefer to use the default ORIGIN=1.

You mean "Personally I prefer to use the default ORIGIN=0".

Werner_E
25-Diamond I
February 5, 2015

Richard Jackson wrote:

Personally I prefer to use the default ORIGIN=1.

You mean "Personally I prefer to use the default ORIGIN=0".

Sure yes - a typo.