cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Solving equations

nono
3-Newcomer

Solving equations

Hello, I'm Mathcad newbie and I can't get it to do anything useful...

Given the following set of equations:

eq2.png

I provide values for f and Cs:

eq3.png

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 ?

 

ACCEPTED SOLUTION

Accepted Solutions
Fred_Kohlhepp
23-Emerald I
(To:nono)

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:

Capture.PNGAs with all math, "some experience required."

View solution in original post

12 REPLIES 12
-MFra-
21-Topaz II
(To:nono)

Hi nono,

fornono.jpg

nono
3-Newcomer
(To:-MFra-)

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...

 

Werner_E
25-Diamond I
(To:nono)


@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:
B.png

Fred_Kohlhepp
23-Emerald I
(To:nono)

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...

 Capture.PNG


 


@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.

 

Fred_Kohlhepp
23-Emerald I
(To:nono)

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:

Capture.PNGAs with all math, "some experience required."

-MFra-
21-Topaz II
(To:nono)

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.

Werner_E
25-Diamond I
(To:nono)

If you can live with the red errors from the numeric processor you could do it that way

B2.png

Otherwise you have to turn Q and equ into functions

nono
3-Newcomer
(To:Werner_E)

I tried writing the exact same in a blank worksheet and the first solve output is "No solution found".

Untitled.png

Thanks for your time... I give up with Mathcad.

 

 

Werner_E
25-Diamond I
(To:nono)


@nono wrote:

I tried writing the exact same in a blank worksheet and the first solve output is "No solution found".

Untitled.png

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.

Announcements

Top Tags