1
$\begingroup$

Are there any libraries available for solving problems at the level of college physics?

In particular, I'm interested in libraries for general purpose programming languages that can calculate results both numerically and symbolically.

Libraries which could be used for implementing something like this are SymPy (Python), GiNaC (C++), or SymbolicC++ (C++).

I'm asking this question because I've started cooking up a C# library for symbolic computation and have used it to solve a few projectile motion problems, but would like to review other work out there.

Here's an example of a program which solves such a problem.

Here's what the program outputs when run:

photo

Any pointers or suggestions welcome. Thanks!

$\endgroup$

closed as too broad by Anton Menshov, Christian Clason, nicoguaro Nov 8 '18 at 13:37

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    $\begingroup$ dharmatech, welcome to SciComp! Your question looks a little broad to me. There are many libraries available that set up math problems. There are also many libraries that will provide functions useful to calculate quantities for various application areas. Examples would be libraries like OpenFOAM for fluid mechanics, and Cantera for combustion chemistry. Are you looking for applications libraries that overlap with college physics (mechanics, electricity & magnetism), or math libraries you can adapt for your needs? $\endgroup$ – Geoff Oxberry Mar 10 '13 at 1:03
  • $\begingroup$ Hi @GeoffOxberry. I'm interested in math libraries which can be adapted to (for example) problems at the college physics and engineering level. But if there are particular libraries which support things like projectile motion, I'd be interested in reviewing those as well. $\endgroup$ – dharmatech Mar 10 '13 at 1:11
  • 1
    $\begingroup$ I suggest refining further what you would like in a math library. As it stands right now, I can recommend libraries that implement basic matrix-vector operations, solve linear equations, integrate ordinary differential equations, solve partial differential equations, and frameworks that do most (or all) of the above. Few of them (that I know of, if any) interoperate with symbolic computation smoothly, but all will work with standard double precision arithmetic, and some will even work in extended (or arbitrary) precision. $\endgroup$ – Geoff Oxberry Mar 10 '13 at 1:15
  • 4
    $\begingroup$ sympy.physics sounds great. $\endgroup$ – Machine Mar 10 '13 at 13:45