Solving non linear equation for a constant
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Rakesh Jain
am 10 Feb. 2017
Beantwortet: Torsten
am 10 Feb. 2017
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
0 Kommentare
Akzeptierte Antwort
Torsten
am 10 Feb. 2017
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!