Сергей Дорофеенко
2017-07-19 17:43:55 UTC
Hello!
I need a help to solve an equation like this:
y'' = 0, y(x1)=a, y'(x2)=b
I do it as following, but get wrong result
(%i1) eq: 'diff(y,x,2)=0;
(%o2) 'diff(y,x,2)=0
(%i3) sol: ode2(eq,y,x);
(%o4) y=%k2*x+%k1
(%i5) bc2(sol, x=0,y=100, x=5,'diff(y,x)=10);
(%o6) y=(x*(y-100))/5+100
It is should be y=10x+100
Can Maxima do something like that?
solve(f''(x)=0, f(0)=100, f'(5)=10) --> y=10x+100
Best regards,
S.
I need a help to solve an equation like this:
y'' = 0, y(x1)=a, y'(x2)=b
I do it as following, but get wrong result
(%i1) eq: 'diff(y,x,2)=0;
(%o2) 'diff(y,x,2)=0
(%i3) sol: ode2(eq,y,x);
(%o4) y=%k2*x+%k1
(%i5) bc2(sol, x=0,y=100, x=5,'diff(y,x)=10);
(%o6) y=(x*(y-100))/5+100
It is should be y=10x+100
Can Maxima do something like that?
solve(f''(x)=0, f(0)=100, f'(5)=10) --> y=10x+100
Best regards,
S.