Need some advice on integration
I'm new on scipy (and new with numerical methods), so excuse me if you found trivial my question, but I spent time searching for an answer. Well, the problem: I want to integrate this equation: dv = [K/(m-dm)] dm where where d means differential (of course). dm is in the numerator and denominator. -Is there chance to solve this integral analytically? -how can I use scipy to integrate this equation (knowh the initial values)? TIA
This is better suited for sympy than scipy: https://docs.sympy.org/latest/modules/integrals/integrals.html On Fri, Nov 30, 2018 at 3:17 AM Joan Quintana <joanqc@gmail.com> wrote:
I'm new on scipy (and new with numerical methods), so excuse me if you found trivial my question, but I spent time searching for an answer. Well, the problem:
I want to integrate this equation:
dv = [K/(m-dm)] dm
where where d means differential (of course). dm is in the numerator and denominator.
-Is there chance to solve this integral analytically? -how can I use scipy to integrate this equation (knowh the initial values)?
TIA _______________________________________________ SciPy-User mailing list SciPy-User@python.org https://mail.python.org/mailman/listinfo/scipy-user
That does not look like a valid integral expression... dm should never be in a denominator.... Cheers Le ven. 30 nov. 2018 à 14:44, Denis Akhiyarov <denis.akhiyarov@gmail.com> a écrit :
This is better suited for sympy than scipy:
https://docs.sympy.org/latest/modules/integrals/integrals.html
On Fri, Nov 30, 2018 at 3:17 AM Joan Quintana <joanqc@gmail.com> wrote:
I'm new on scipy (and new with numerical methods), so excuse me if you found trivial my question, but I spent time searching for an answer. Well, the problem:
I want to integrate this equation:
dv = [K/(m-dm)] dm
where where d means differential (of course). dm is in the numerator and denominator.
-Is there chance to solve this integral analytically? -how can I use scipy to integrate this equation (knowh the initial values)?
TIA _______________________________________________ SciPy-User mailing list SciPy-User@python.org https://mail.python.org/mailman/listinfo/scipy-user
_______________________________________________ SciPy-User mailing list SciPy-User@python.org https://mail.python.org/mailman/listinfo/scipy-user
-- Sasha
I don't understand what your equation means. You can't have an expression like m - dm, that is, you can't additively combine scalars with differentials. They exist in different spaces. Maybe you mean: dv = [K/(m - (dm/dv))] dm ? Then rewrite it as (dv/dm) [m - (dm/dv)] = K m(dv/dm) - 1 = K dv/dm = (K+1)/m v = -(K+1)/(m**2) + constant But I am guessing your intentions, and I might be missing something. ________________________________________ On Fri, Nov 30, 2018 at 3:17 AM Joan Quintana <joanqc@gmail.com<mailto:joanqc@gmail.com>> wrote: I'm new on scipy (and new with numerical methods), so excuse me if you found trivial my question, but I spent time searching for an answer. Well, the problem: I want to integrate this equation: dv = [K/(m-dm)] dm where where d means differential (of course). dm is in the numerator and denominator. -Is there chance to solve this integral analytically? -how can I use scipy to integrate this equation (knowh the initial values)? TIA _______________________________________________ SciPy-User mailing list SciPy-User@python.org<mailto:SciPy-User@python.org> https://mail.python.org/mailman/listinfo/scipy-user
participants (4)
-
Denis Akhiyarov -
Joan Quintana -
Montgomery-Smith, Stephen -
Oleksandr Huziy