cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Mathcad quadratic equation of an arch

george_geo56
4-Participant

Mathcad quadratic equation of an arch

Hi PTC Community,

 

I would like to find a solution and better understand of how I can define this type of equation and how to get the results for the arch height at different points. I am attaching a sketch for a better understanding.

 

I thank you all!

 

arch sketch.png

6 REPLIES 6

Hi,

 

Enclosed is result.

Capture.JPG

Thank you so much!

Here is a way to do it using the symbolic "solve"

Werner_E_0-1589073650601.png

 

george_geo56
4-Participant
(To:Werner_E)

Thank you so much!

 

For my own learning, if you have the time, could you explain to me the solve statement, or at least how the programming line and "Local Assignment Operator" works in this statement.

 

Such a beautiful community, never thought this way of solving an equation, like yours or  @terryhendicott 


@george_geo56 wrote:

Thank you so much!

 

For my own learning, if you have the time, could you explain to me the solve statement, or at least how the programming line and "Local Assignment Operator" works in this statement.

 


To use the symbolic "solve" you have to put all equations of the system line by line in a vector and then apply the symbolic solve where you have to state which variables you want it to solve for.

The local assignment operator was necessary to be able to evaluate the first derivative at position L.d/2. Unfortunately Mathcad 15 does not provide an operator like the prime symbol in MC-Prime (one of the few advantages of Prime) where we simply could write y'(L.d/2)=0.

Another way, which also may look cleaner, is to define the derivative as a function yourself. I had chosen the name "y1(x)" but of course you may make it look like "y'(x)" using the Ctrl-K feature.

Werner_E_0-1589127910948.png

The red error stems from the numeric because its moaning about the variable(s) not defined. A probably more correct but also more elaborate approach which makes the numeric happy, too, is this:

Werner_E_1-1589128066298.png

Because this last approach also is compatible with Mathcads numeric engine, you may use a numeric solve block to get the very same results:

Werner_E_2-1589128452506.png

The symbolic engine in Mathcad is rather weak compared to Maple or Mathematica and if at the end you are only after numeric results, it may be better to use numeric methods, only. Chances are that the symbolic "solve" will choke in case of more complex/complicated equations.

 

 

 

Solution without units is not solution!

And second/

Try to solve a problem symbolic and than numeric!

qu.png

Top Tags