ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 17 Oct 2022 21:04:49 +0200Solve an ODE in Sagemath where the the value of the function and the value of its derivative is known at different pointshttps://ask.sagemath.org/question/64490/solve-an-ode-in-sagemath-where-the-the-value-of-the-function-and-the-value-of-its-derivative-is-known-at-different-points/I am new to SageMath (migrating from Mathematica), and I am having trouble solving differential equations where the value of the function and the value of its derivatives are available at different points. As for example,
$$y(x)+y''(x)=x^{2}$$
where, $y(1)=1$ and $y'(2)=1$.
In SageMath, it seems that the boundary conditions needs to be given in the form $[x_0,y_0,x_1,y_1]$ or $[x_0,y_0,{y_0}']$, implying that the value of the function and its derivative needs to be specified at the same point.
Any help on how to solve such equations would be highly appreciated. Thank you!
Kindly note, I am not interested in the actual solution to this problem, but in the Sage implementation of such problems.g117chMon, 17 Oct 2022 21:04:49 +0200https://ask.sagemath.org/question/64490/