Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Solve command with assumptions

Hi,

I'm trying to solve the following inequality $$ ce ^{-kt} - 1 < 0 $$ where, c and k are positive real numbers.

Expected result is $$ t < -\frac{1}{k} \ln({\frac{1}{c})} $$

But sage is returning $$ -c + e^{kt} > 0 $$

Code is as follows:

c, k = var('c k')
assume(c > 0, k > 0)
eq3 = (c*e^(-k*t)) -1 < 0
solve(eq3, t)

Is there something wrong with my code? Thanks in advance.