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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

problems with variables

AS_10152308
2-Explorer

problems with variables

Hi folks, I'm a beginner in Mathcad. I have a problem but unfortunately I have no idea how to solve it. Can anyone help me? 

Kind regards,

Arvid

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:AS_10152308)

You can't define a function and use inline evaluation (The = at the end)

Guess that the attached file should help.

 

View solution in original post

5 REPLIES 5
Werner_E
25-Diamond I
(To:AS_10152308)

The error message tells you quite clearly that you have a unit mismatch.

The first summand (p(x)*LB has unit kN but the second (p(x)*x^2) has unit  kN*m.

You can't add quantities with different dimensions. So you'll have to either check your equation and make it unit consistent or, if its an empirical equation, you'll have to make it unitless.

Many thanks for the quick response. Unfortunately, that's not the real problem. I made the equation unit consistent. Although I defined x as a variable above. Mathcad gives me an error message: This variable is not defined. Check that the caption is set correctly.
How do I have to define x to make it work?

Werner_E
25-Diamond I
(To:AS_10152308)

You can't define a function and use inline evaluation (The = at the end)

Guess that the attached file should help.

 

You are correct with your assumption. I need the values of x and MEd.y(x) for further calculations. How can I solve this?

Werner_E
25-Diamond I
(To:AS_10152308)

You already have a function to calculate MED.y for any value of x you like.

What would you need a vector of values for?

Thinking in terms of lists of values may stem from working with a spreadsheet and usually isn't necessary when working with Mathcad.

 

Anyway, for whatever it may be worth, find attached a sheet which shows one way to create a vector of x-values and the vector with the appropriate M-values. It also shows a simple but undocumented way to turn a range into a vector. As its undocumented there is no guarantee that it works the same in future versions.

 

Announcements

Top Tags