# exponential inequality

Hi all, I am trying to solve, using sage, the inequality exp(x) >= 5, but this is what I get

sage: solve(exp(x)>=5,x)
#0: solve_rat_ineq(ineq=%e^_SAGE_VAR_x >= 5)
[[e^x - 5 == 0], [e^x - 5 > 0]]


Can anyone tell me what's wrong and how to solve this kind of inequalities?

Thanks

sorry for the presentation of the code, I am new on this plateform.

edit retag close merge delete

Instead of starting the lines of coes with >, you just have to start each line with 4 spaces. This can be done automatically by selecting your code bloc with the mouse/trackpad and then click on the 101010 icon.

ok, thanks for the comment, but I still don't have an answer to my question^^

Sort by » oldest newest most voted

You can use sympy:

sage: import sympy
sage: x = sympy.Symbol('x')
sage: ineq = sympy.exp(x) >= 5
sage: ineq
exp(x) >= 5
sage: type(ineq)
<class 'sympy.core.relational.StrictGreaterThan'>
sage: sympy.solve_univariate_inequality(ineq,x)
And(log(5) <= x, x < oo)

more