I tried the following on SymPy Live
b,c,t = symbols('b c t')
g = 1/(1+exp(c*(b-t)))
integrate(g,t)
The result is Integral(1/(exp(c*(b - t)) + 1), t)
which I understand as "could not handle this".
However, when I try
g = 1/(1+exp(0.1*(b-t)))
integrate(g,t)
I get:
1.0*t + 10.0*log(exp(-0.1*b) + exp(-0.1*t))
and I can easily replace the 0.1
and 10
by c
and 1/c
. What did I do wrong to make SymPy choke on c but handle 0.1?
Edited
I just noted that
g = 1/(1+exp(c*b-c*t)))
can be handled by integrate.