Solve two equations with two unknowns parameters

852 views Asked by At

I have these two equations and I want to find the values of these two parameters:

9.393e(16) = ((N*K)/(K + 0.0045))*(1 - exp (-(K + 0.0045)*120))

1.376e (17) = ((N*K)/(K + 0.0045))*(1 - exp (-(K + 0.0045)*240))

How can I solve it in matlab or wolfram please

2

There are 2 answers

0
chappjc On

You can solve simultaneous non-linear equations in MATLAB via FSOLVE or LSQNONLIN. However, this requires the Optimization Toolbox.

See this MathWorks knowledgebase article.

Given the magnitude of the LHS of your equations, I would not be surprised if you see some numerical instability. You might want to do this problem by hand as suggested by Acorbe.

4
Acorbe On

I guess a hand calculator is sufficient for that.

Call:

a = 9.393e(16)
b = 1.376e (17)
Q = (N*K)/(K + 0.0045)
f = exp (-(K + 0.0045)*120)  => exp (-(K + 0.0045)*240) = f^2

You have:

 a = Q (1 - f)
 b = Q (1 - f^2)

so

a/b = (1 - f) / (1 - f^2) = 1 / (1 + f)

thus

f = b/a - 1

You can take the log at both sides and solve for K.

-(K + 0.0045)*120 = log(b/a - 1)

To find N the equation is again just linear.