Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi,
I would like to determine 4 variables with equations but it's returning (0, 0, 0, 0) which is not correct.
I think the way I placed the equations is not right.
Can anyone help me with this?
Thanks!!
For the symbolic "solve", the equations must be put in a vector, not a program structure.
As it seems you are just searching for a numeric answer, you may also consider using a Given-Find() solve block instead.
You are trying to solve for eight unknowns (the real and imaginary parts of B1, C1 etc) with only four equations.
Plus, what Werner said.
Alan
Seems like there are no solutions for this system.
Is it correct?
Max Gomes wrote:
Seems like there are no solutions for this system.
Is it correct?
Yes, unless you assume that the variables are real numbers 😉
See below.
From the way the equations are set up I guess we have to assume that the solved for variables should be real valued
Another possibility is to set all the imaginary parts to zero to give four more equations, but this depends on what the system of equations represents.
Alan
Werner, I just opened your file.
Why did I receive this error?
Not sure what happens here. I just loaded my file from my post and it works OK and shows what my screenshot shows.
One thing I noticed when i worked on your file was that the B's in your file are not "normal" B's but the style of those variables is still "normal"!?. They look bold (you can see it on my first screenshot) and I have no idea how you created them. maybe retyping all variable names cures the problem.
Which version of Mathcad are you using?
Version 14.0.0.163
It's the capital BETA.
It can be found at the Greek Symbol Toolbar.
Max Gomes wrote:
Version 14.0.0.163
It's the capital BETA.
It can be found at the Greek Symbol Toolbar.
I've just run Werner's worksheet in M14.0.0.286 and it works as shown in Werner's message.
Stuart
It's the capital BETA.
Ah! Tricky!
Werner,
I've added one more equation to the system, could you please open in your Mathcad to check if it still has solution?
Thanks
I've added one more equation to the system, could you please open in your Mathcad to check if it still has solution?
No, it hasn't. Five equations but just 4 variables to solve for - you must have great luck for an overdetermined system to get solved. Mathcads symbolic solver is especially sensitive wrt over- but also underdetermined systems.
What are you trying to do here?
Would a "best fit" (least sq.error) be an option? So you might try a numeric solve block with minerr or minimize.