## 119 Reputation

15 years, 163 days

## Seq...

Hi Tim,

My goal is to calculate the distances between two points like

d := sqrt( (x2 - x1)^2 + (y2 - y1)^2), what I'm missing that is causing the error.

Regards

Moses

## List in Procedure...

Good Afternoon Acer,

Here are the correct data and spelling. Please, how can I read the list x in the procedure to generate a list of values for AY. Kindly demonstate the approach.

x := [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 7.5, 10.0, 12.5, 15.0, 17.5, 20.0, 22.5, 25.0, 30.0]*[ft]

T := 1.887*[m]

AY := proc(x, T)
local Z, Ay, Ratio, beta;
Ratio := simplify(evalf(x / T));
Z := [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0, 3.0, 4.0, 5.0];
Ay := [2.435, 2.273, 2.112, 1.952, 1.796, 1.644, 1.496, 1.353, 1.216, 1.086, 0.962, 0.738, 0.544, 0.381, 0.247, 0.142, -0.075, -0.050, -0.009];
beta := evalf[4](CurveFitting:-ArrayInterpolation(Z, Ay, Ratio));
end proc;

Regards

Moses

## List in Procedure...

Good Afternoon Acer,

Here are the correct data and spelling. Please, how can I read the list x in the procedure to generate a list of values for AY. Kindly demonstate the approach.

x := [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 7.5, 10.0, 12.5, 15.0, 17.5, 20.0, 22.5, 25.0, 30.0]*[ft]

T := 1.887*[m]

AY := proc(x, T)
local Z, Ay, Ratio, beta;
Ratio := simplify(evalf(x / T));
Z := [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0, 3.0, 4.0, 5.0];
Ay := [2.435, 2.273, 2.112, 1.952, 1.796, 1.644, 1.496, 1.353, 1.216, 1.086, 0.962, 0.738, 0.544, 0.381, 0.247, 0.142, -0.075, -0.050, -0.009];
beta := evalf[4](CurveFitting:-ArrayInterpolation(Z, Ay, Ratio));
end proc;

Regards

Moses

## Interpolation with list variable...

Good Afternoon,

Thank you for your help, I have modify the worksheek as per your comment and the procedure works.

My second question is not being answered. I have a variable   x := [0, 2.0, 4.0, 6.0, 10.0, 15.0, 20.0, 25.0, 30.0]*ft which is the different depth of pile below the ground surface, my question is how could I modify the procedure such that its take a list as a variable and then output a list of values for each A_y(x,T) and B_y(x, T).

Regards,

Moses

## Interpolation with list variable...

Good Afternoon,

Thank you for your help, I have modify the worksheek as per your comment and the procedure works.

My second question is not being answered. I have a variable   x := [0, 2.0, 4.0, 6.0, 10.0, 15.0, 20.0, 25.0, 30.0]*ft which is the different depth of pile below the ground surface, my question is how could I modify the procedure such that its take a list as a variable and then output a list of values for each A_y(x,T) and B_y(x, T).

Regards,

Moses

## Thank you...

Thank you so much.

Regards,

Moses

## Thank you...

Thank you so much.

Regards,

Moses

## Sum Function in Maple...

Gentlemen,

My special thanks to all of you for the discussion.

Regards,

Moses

## Sum Function in Maple...

Gentlemen,

My special thanks to all of you for the discussion.

Regards,

Moses

## Good Afternoon Dr...

Good Afternoon Dr Israel,

xbar := sum(abs(x[i]) , i = 1..n_pile)

and

ybar := sum(abs(y[i]) , i = 1..n_pile)

Please see the attached file for the modified worksheet.

Regards,

Moses

## Good Afternoon Dr...

Good Afternoon Dr Israel,

xbar := sum(abs(x[i]) , i = 1..n_pile)

and

ybar := sum(abs(y[i]) , i = 1..n_pile)

Please see the attached file for the modified worksheet.

Regards,

Moses

## Thank you so much...

Good Morning Jakubi,

Thank you so much for your help. The worksheet is working fine, of course with your help.

Regards,

## Thank you so much...

Good Morning Jakubi,

Thank you so much for your help. The worksheet is working fine, of course with your help.

Regards,

## Thank you for your Help, Still one probl...

Good Morning  Jakubi,

Thank you so much for your help, I stiil have one problem in the output of inertia, the values of the list Lx, Ly and Lz coordinate would not substitute in the output, after making the changes as per your comments. Please see attached.

Regards,

## Thank you for your Help, Still one probl...

Good Morning  Jakubi,

Thank you so much for your help, I stiil have one problem in the output of inertia, the values of the list Lx, Ly and Lz coordinate would not substitute in the output, after making the changes as per your comments. Please see attached.

Regards,

 1 2 3 4 Page 3 of 4
﻿