Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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
Solved! Go to Solution.
You can't define a function and use inline evaluation (The = at the end)
Guess that the attached file should help.
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 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?
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.