119 Reputation

15 years, 125 days

seq and list in procedure...

Maple

Good Day Everyone,

My first question is with regards to sequence function in Maple. I have input into Maple the following

xp := map(z->z*[ft], [0.0, 3.3, 3.3, 0.0])

yp := map(z->z*[ft], [0.0, 0.0, -3.3, -3.3])

npile := nops(xp)

d := [seq(sqrt((xp[i] - xp[i + 1])^2 + (yp[i] - yp[i + 1])^2), i = 1..npile)]

I was getting an error message from Maple, "Error, invalid subscript selector", what have I done wrong in Maple?

Numerical output from procedure...

Maple

Good Afternoon Everybody,

Attached is copy of Maple file that I'm working on. My first question is, I have used Maple to do linear interpolation inside the procedure to output the coefficient of A(x,T) and B(x,T) with no results would anybody please help.

My second question is if  the variable is a list of values along the length of pile x := [0.0, 2.0, 4.0, 10.0, 15.0, 20.0, 25.0, 30.0]*ft , how should I modify the procedure such that the each value in the list generate A(x,T) and B(x,T).

Regards,

Moses

Subs in Maple...

Maple

Good Afternoon Everyone,

Would any body be kind to see why Maple would not replace the following in the attached differential equation.

Regards,

Moses

Sum function and For loop in Maple...

Maple

Good Evening,

Would anybody please tell me what I'm doing wrong in the attached Maple worksheet. My first problem is to sum a vector and divide by the nops(x) to determine the CG of a pile group.

My second problem is a For loop with units at the bottom of the page. Please Help.

Regards,

Moses

Procedure...

Maple

Good Afternoon everybody,

Would anybody please see why Maple would not substitute the list  Lx :=[...], and Lz[....] into the equation in the attached procedure called inertia. My goal is to output the mass moment of inertia of the machine foundation.

Regards,

 1 2 3 4 5 6 Page 4 of 6
﻿