Skip to main content
1-Visitor
Mar 31, 2015 2:01 PM UTC
Solved

Create Vector of Vectors that is sorted?

The attached Mathcad 15 worksheet (hopefully more folks can open this instead of Prime 3.1 format) is being created to determine the shear, moment, slope, and deflection of a simply supported beam. Towards the end of the worksheet I am attempting to create a vector that includes the point loads (y), distributed load start points (zs), and distributed load end points (ze). Is it possible to write a function that creates a vector with a total length of the sum of these smaller vectors and sorts the values by increasing length? The points in this vector give the points where the moment function is discontinuous .The total length of the vector will change as the number of point loads and distributed loads change.

Once this vector is created I'd like to use it as integral bounds to determine the centroid of the moment function between discontinuous points. Is it possible to set the vector and the vector +1 as integral bounds?

As always, thank you for your help.

RichardJAnswer
19-Tanzanite
Mar 31, 2015 3:04 PM UTC

Is this what you are after?

6 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite
Mar 31, 2015 3:04 PM UTC

Is this what you are after?

Translate
dsochor1-VisitorAuthor
1-Visitor
Mar 31, 2015 3:38 PM UTC

Thank you Richard, this is great! Is there a way to suppress excess 0s in the case where one of the loads is 0 such as in the attached?

Additionally, is there a to multiply the centroid function by another function, valve by value? It appears the vectorize function won't allow this.

Translate
19-Tanzanite
Mar 31, 2015 6:44 PM UTC

Is there a way to suppress excess 0s in the case where one of the loads is 0 such as in the attached?

Yes, by deleting them

Additionally, is there a to multiply the centroid function by another function, valve by value? It appears the vectorize function won't allow this.

Your Reaction function? The problem is the inline evaluation. You can't have that with a function definition, because there are no values to display.

Translate