Skip to main content
10-Marble
Feb 4, 2015 9:22 PM UTC
Solved

Programming in MathCAD Prime 3

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

Werner_E
Werner_EAnswer
25-Diamond I
Feb 4, 2015 9:41 PM UTC

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
Feb 4, 2015 9:41 PM UTC

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

Translate
19-Tanzanite
Feb 4, 2015 10:20 PM UTC

Personally I prefer to use the default ORIGIN=1.

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

Translate
Werner_E
25-Diamond I
Feb 5, 2015 12:01 AM UTC

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.

Translate