Skip to main content
1-Visitor
March 31, 2015
Solved

Create Vector of Vectors that is sorted?

  • March 31, 2015
  • 6 replies
  • 2017 views

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.

Best answer by RichardJ

Is this what you are after?

6 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite
March 31, 2015

Is this what you are after?

dsochor1-VisitorAuthor
1-Visitor
March 31, 2015

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.

19-Tanzanite
March 31, 2015

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.