Hello, @Alex89! I don't know exactly why this is failing. I even try using Sympy
as solver for the problem, but my computer crashed (in SageCell, I got a "Memory Error"). However, you can cleverly solve this system. Check this out:
Let's make a change of variables, making x=log10(a2) and y=log10(b2). Then, your code can be rewritten as
var('a2,b2')
solve([x + 435*y == 50.88, 435*x + 8555*y == 979.15], x, y)
That gives the following solution:
[[x == (-921/17800), y == (60439/516200)]]
This implies that log10(a2)=−921/17800 and log10(b2)=60439/516200. Now, if you apply the definition of the logarithm, these in turn imply that a2=10−921/17800 and b2=1060439/516200. If you want these values as numerical values, you do
a2 = N(10^(-921/17800))
b2 = N(10^(60439/516200))
which gives you
a2 = 0.887684071389383
b2 = 1.30943656287307
That's it! I hope this helps!
![]() | 2 | No.2 Revision |
Hello, @Alex89! I don't know exactly why this is failing. I even try using Sympy
as solver for the problem, but my computer crashed (in SageCell, I got a "Memory Error"). However, you can cleverly solve this system. Check this out:
Let's make a change of variables, making x=log10(a2) and y=log10(b2). Then, your code can be rewritten as
var('a2,b2')
solve([x + 435*y == 50.88, 435*x + 8555*y == 979.15], x, y)
That gives the following solution:
[[x == (-921/17800), y == (60439/516200)]]
This implies that log10(a2)=−921/17800 log10(a2)=−921/17800 and log10(b2)=60439/516200. log10(b2)=60439/516200. Now, if you apply the definition of the logarithm, these in turn imply that a2=10−921/17800 and b2=1060439/516200. If you want these values as numerical values, you do
a2 = N(10^(-921/17800))
b2 = N(10^(60439/516200))
which gives you
a2 = 0.887684071389383
b2 = 1.30943656287307
That's it! I hope this helps!