<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: 'DejaVu Sans'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">--<br class="">Boyan Penkov<br class=""><a href="http://www.boyanpenkov.com" class="">www.boyanpenkov.com</a><br class=""></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Oct 25, 2017, at 18:51, Pauli Virtanen <<a href="mailto:pav@iki.fi" class="">pav@iki.fi</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">ke, 2017-10-25 kello 16:01 -0400, Boyan Penkov kirjoitti:<br class="">[clip]<br class=""><blockquote type="cite" class="">So, can scipy.integrate.solve_bvp be used in problems where there's<br class="">an<br class="">explicit dependence on $r$, for functions where the right-hand side<br class="">is<br class="">F(dq/dx, q, r)?<br class=""></blockquote><br class="">Does "dq/dx" mean "dq/dr" and equation of type<br class=""><br class="">d^2 q/dr^2 = F(dq/dr, q, r)<br class=""></div></div></blockquote><div><br class=""></div><div>Whoops, yeah….  you are correct, I do indeed mean dq/dr...</div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">Then the yes, the independent variable is the first argument in <br class="">"def fun(r, y)". If this is not what you are looking for, if you write<br class="">explicitly the first order system you want to solve maybe better<br class="">answers come.<br class=""></div></div></blockquote><div><br class=""></div>The issue seems to be that I then generally have </div><div><br class=""></div><div>x = linspace(….)</div><div><br class=""></div><div>which makes the output of fun(x,y) have length len(x) + 1 and not just 2, as may be expected.</div><div><br class=""></div><div>Is there a syntactic solution to this?<br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">-- <br class="">Pauli Virtanen<br class="">_______________________________________________<br class="">SciPy-User mailing list<br class=""><a href="mailto:SciPy-User@python.org" class="">SciPy-User@python.org</a><br class="">https://mail.python.org/mailman/listinfo/scipy-user<br class=""></div></div></blockquote></div><br class=""></body></html>