Solve DE with secondary function

asked 9 years ago

FooBar gravatar image

updated 9 years ago

I want to solve

F

where g(a) is logistic.

My code is

a = var('a')
g(a)= 1 /(1 + e^(-(a)))  
F = function('F', a)
de = -diff(F,a, 2) + g(a)*(diff(F,a,1) - F(a))
y = desolve(de, F); y

But I get an error (at the end of the post). If I remove e(a) from the de-term, I get a solution. What do I have to take into account when I add the second function?

TypeError: no canonical coercion from <class 'sage.symbolic.function_factory.NewSymbolicFunction'> to Symbolic Ring
Preview: (hide)

Comments

What Sage version? With 6.6 I get NotImplementedError: Maxima was unable to solve this ODE.

rws gravatar imagerws ( 9 years ago )