Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Need to solve this
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi guys I need away to solve these 3 equations and get the value of a b and c
a+b = 204
a+b*exp(-105*c) = 192.6
a+b*exp(-180*c) = 177.6
I have tried to use vpasolve but it gives wrong answer. What other way to use?
0 Kommentare
Antworten (2)
Stephan
am 1 Jun. 2019
I assume you want real Solutions. Then try:
syms a b c
assume ([a b c], 'real')
eq = [a+b == 204;...
a+b*exp(-105*c) == 192.6;...
a+b*exp(-180*c) == 177.6];
[a, b, c] = vpasolve(eq,[a b c])
Best regards
Stephan
2 Kommentare
Walter Roberson
am 12 Jul. 2019
vpasolve() works to finite precision according to the digits() setting, and the calculations are suffering from massive loss of precision.
You can give a search range:
[A,B,C] = vpasolve(eq,[a b c],[200 230;-50 -1/2;-5 5])
Alex Sha
am 12 Jul. 2019
Hi, How about the results belows:
a: 214.703486863113
b: -10.7034868631133
c: -0.00690634104047918
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!