Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hello, I'm Mathcad newbie and I can't get it to do anything useful...
Given the following set of equations:
I provide values for f and Cs:
Now I'd like to
1/ Provide Rp value and get Rs value
OR
2/ Provide Rs value and get Rp value.
How can it be done without duplicating the equations ?
Solved! Go to Solution.
You are correct, the solve block will find a solution, but not the one you expect. If you look at the grayed-out section where we solve for Rs, there are two answers. If I turn that into a function, we get two real answers:
As with all math, "some experience required."
Hi nono,
Thanks -MF- for taking time to answer.
However, your (or should I say Mathcad) solution is wrong : if you compute Rp "normally" with Rs = 100ohm you'll get Rp=2.6kOhm, not 1.6kOhm
This is scarying me about using such tool...
@nono wrote:
Thanks -MF- for taking time to answer.
However, your (or should I say Mathcad) solution is wrong : if you compute Rp "normally" with Rs = 100ohm you'll get Rp=2.6kOhm, not 1.6kOhm
This is scarying me about using such tool...
No reason to be scared. If you look closely you will see that in FM's attempt, both intial values of Rp AND Rs change. FM had set Q=3 for reasons unknown to me.
In my answer above I forgot to square Q.
Here's the correct equation and we get the results you expected and also both results for R.s if we supply R.p:
MF missed the square on Q
@nono wrote:
Thanks -MF- for taking time to answer.
However, your (or should I say Mathcad) solution is wrong : if you compute Rp "normally" with Rs = 100ohm you'll get Rp=2.6kOhm, not 1.6kOhm
This is scarying me about using such tool...
@Fred_Kohlhepp wrote:
MF missed the square on Q
No, that was me 😉
FM's solution had another flaw - see my answer above.
@Werner_E wrote:
@Fred_Kohlhepp wrote:
MF missed the square on Q
No, that was me 😉
FM's solution had another flaw - see my answer above.
More coffee! 😉
@Fred_Kohlhepp the spreadsheet you attached is okay for Rs computation but not for the reverse computation.
1/ Try computing Rp with Rs=9.9 ohm. It gives Rp=25.207kohm which is fine.
2/ Try computing Rs with Rp=25.207kohm. It gives Rss=25.2kohm which is wrong. Unless I didn't understood how to inject Rp and readout Rss.
You are correct, the solve block will find a solution, but not the one you expect. If you look at the grayed-out section where we solve for Rs, there are two answers. If I turn that into a function, we get two real answers:
As with all math, "some experience required."
Hi nono,
The initial estimates (or initial guess) of the unknowns are the values that are assigned to the unknowns at the beginning of an iterative process that at each iteration approaches more and more to the solution based on the established tolerance. Once this value has been reached, the process stops and the calculated values satisfy the given equations. We have three unknowns and two equations and we know that the number of equations must be equal to those of the unknowns.
It is difficult if not impossible to find a perfect software, just think, for example about the fact that for decades we have been updating the operating system . Mathcad isn't perfect because it has some flaws, but it comes close to perfection. It is a big nonsense to abandon it.
If you can live with the red errors from the numeric processor you could do it that way
Otherwise you have to turn Q and equ into functions
I tried writing the exact same in a blank worksheet and the first solve output is "No solution found".
Thanks for your time... I give up with Mathcad.
@nono wrote:
I tried writing the exact same in a blank worksheet and the first solve output is "No solution found".
Thanks for your time... I give up with Mathcad.
Chances are you have defined R.p above and assigned it a value.
Try the command clear.sym(R.p) before attempting to symbolically solve.