From: <fi...@ig...> - 2023-02-02 18:58:36
|
Dear Maxima Users, in physics we often have problems which can be expressed in differentials, like this simple example (it describes gas flow from a leak in a pressure vessel) declare([cp, cv], constant); /* heat capacity */ u : cv * T; /* spec. internal energy */ h : cp * T; /* spec. enthalpy */ U : m * u; /* internal energy */ E : diff(U) = -h * diff(m); /* energy conservation */ (%o5) cv T del(m) + cv m del(T) = - cp T del(m) %o5 is actually a differential equation in T and m. It can easily be solved by separation of variables - but how to do this using Maxima? Actually: how could it be solved using ode2() or how can it be transformed such that ode2() can solve it? Thanks and best regards Torsten -- ------------------------------------------------------------------------ Torsten Finke fi...@ig... ------------------------------------------------------------------------ |