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?
Solved! Go to Solution.
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?
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.