フィルターのクリア

Solving non linear equation for a constant

1 回表示 (過去 30 日間)
Rakesh Jain
Rakesh Jain 2017 年 2 月 10 日
回答済み: Torsten 2017 年 2 月 10 日
I have got(after writing some code) 1) y = A1/2 - (A1*exp(-(2*t)/3))/2 and yred = exp(-2*t)/2 - exp(-t) + 1/2. I need to equate the constants and find A1. It is possible that there might be some other y and yred if some other inputs are given by users.As an example here A1/2 = 1/2, therefore A1= 1. So in in any case I need to equate the 2 constants in these two equations. How should I do it. Note that even approximate answers(like A1 = 0.99 instead of 1) are fine with me. I can think of two approaches, one either separate the constants somehow and equate them or take large t for eg 10000 and then equate both equations, that will also give almost exact A1. How should I translate any of the approach into matlab. Or in other words, how should I solve the above problem

採用された回答

Torsten
Torsten 2017 年 2 月 10 日
syms A t
y = A/2-(A*exp(-(2*t)/3))/2;
z = exp(-2*t)/2-exp(-t)+1/2;
eqn = limit(y,t,inf)==limit(z,t,inf);
solA = solve(eqn,A);
Best wishes
Torsten.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by