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
Hello, dear Mathcad community!
I am working with 18 equations and I need to get the result of 18 unknowns symbolically.
I have searched through the PTC community and tutorials, but Mathcad is telling me about the error with undefined parameter in the function. Can you please help to figure that out? And is it possible to solve such many equations symbolically in Prime 3.1?
Solved! Go to Solution.
Alas, (fully) symbolic appears to be beyond Mathcad capacity. The combination of many variables with 2nd order term may result in a problem exceeding 4th order, for which there is no symbolic solution possible in Mathcad.
But numerically you can get the values of all your output variables as a function of t:
This is how it was set up:
From there you can extract the variables as a function:
Next you can plot them as shown above.
Oh, don't forget. I assumed that your x.J0 (and y.J0 and z.J0) knowns are on the 4th row (the one with index 3) of you HP matrix. The Prime file didn't (appear to) use these matrix elements. You forgot them?
Success!
Luc
The very first thing you should do is check the labels of all your variables. Start with phi. Are all your phi's labelled the same? If one is labelled as a 'variable' and another is labelled '-' the symbolic processor may treat them as different variables.
Success!
Luc
If you want solve symbolical a system of equations try at first to solve one equation!
The reason you get this error is because you can't solve symbolically for variables which already have been assigned a value.
You have to clear those variables - either with "clear(...)" or at least with "clear.sym(...)" for symbolic calculations
I did this and now the region still fails (tried it with Prime 5) with an "unknown error".
I might be worth to follow Luc's suggestion an label ALL variables the same (either all "Variable" or all "-"(automatic)). Don't forget the variables in the vector after "solve" !
Alas, (fully) symbolic appears to be beyond Mathcad capacity. The combination of many variables with 2nd order term may result in a problem exceeding 4th order, for which there is no symbolic solution possible in Mathcad.
But numerically you can get the values of all your output variables as a function of t:
This is how it was set up:
From there you can extract the variables as a function:
Next you can plot them as shown above.
Oh, don't forget. I assumed that your x.J0 (and y.J0 and z.J0) knowns are on the 4th row (the one with index 3) of you HP matrix. The Prime file didn't (appear to) use these matrix elements. You forgot them?
Success!
Luc
Hello, Luc!
Thank you for your replies! I was pretty sure that this is not kind of the task to solve the way I was trying to 🙂
That is absolutely the result I was trying to get, Luc! I have tried it in Prime 3.1 and it worked!
And about the 3'd row in the HP matrix... Yes, I missed it on purpose, since I am assuming that the upper point of the spring is the same as the upper point of the strut. But in the general case, you are right and we should consider the 3'd row also.
All the best,
Anton