Ask Your Question

ceee's profile - activity

2020-07-16 21:59:08 +0200 received badge  Student (source)
2020-04-24 15:54:41 +0200 received badge  Famous Question (source)
2019-03-08 21:24:10 +0200 received badge  Notable Question (source)
2017-04-03 16:32:51 +0200 received badge  Popular Question (source)
2017-03-20 12:17:13 +0200 commented answer Substituting variable/function

Thank you! My lack of understanding was the difference between P and 'p'. This helped a lot

2017-03-20 12:15:07 +0200 received badge  Scholar (source)
2017-03-19 22:26:09 +0200 asked a question Substituting variable/function

I got a problem with substituting a solution into another equation. I could break down my problem to a simple example:

r = var('r');
p = function('p')(r);
v = var('v');
v = p + p.derivative(r);
p1(r)=desolve(p.derivative(r)==0,p,ivar=r); p1(r)
v.subs(p(r)==p1)

Output:

_C
_C + diff(p(r), r)

What's happening here? Why is p substituted, but not diff(p,r)=0? What's the correct way to do this substitution?