[Math] Numerical solution in Matlab or any other solver

mathematicaMATLABnumerical methods

I need to find x of this equation:

1.0221044505936159^x +
1.0446975079232772^x +
1.0677899723724409^x +
1.091392883061106^x +
1.1155175231229544^x +
1.140175425099138^x +
1.1653783764512973^x +
1.1911384251964328^x +
1.2174678856663448^x +
1.24437934439437^x +
1.2718856661322526^x +
1.3287357857717006^x +
1.3581067603002603^x +
1.3881269640841731^x +
1.4188107479794378^x +
1.3^x == 21

Most probably, it's not possible to solve it analytically but numerically…

I tried Mathematica, but the respond was like:

The equations appear to involve the variables to be solved for in an essentially non-algebraic way.

Any idea if there is a numerical solver online that could solve it?
How about Matlab?

Best Answer

I think that you should obtain solution using Mathematica NSolve command :

NSolve[1.0221044505936159^x + 1.0446975079232772^x + 
1.0677899723724409^x + 1.091392883061106^x + 
1.1155175231229544^x + 1.140175425099138^x + 
1.1653783764512973^x + 1.1911384251964328^x + 
1.2174678856663448^x + 1.24437934439437^x + 1.2718856661322526^x + 
1.3287357857717006^x + 1.3581067603002603^x + 
1.3881269640841731^x + 1.4188107479794378^x + 1.3^x == 
21, x, Reals]

$x=1.4091$

Related Question