Re: implementing symbolic solving in python?

yeah, pretty much.  But the example you gave has infinitely many solutions so won't be really useful and you need some extra arguments.  Start with the Sympy getting started, then read the docs I linked.  You'll almost always want to wrap the second part, that is the bit representing the right hand side, in parentheses.
It's been a while since I've done the Sympy getting started, but basically you have to tell Sympy what your variables are called and stuff.  Their docs are pretty good and  I can't really make the basics sections any simpler.
At the level of algebra I suspect you're doing, though, it may just be easier to do the algebra yourself.  And possibly better for you in the long run.  I guess this could be useful as a checking program, but the overhead of using anything you're likely to end up with in a reasonable amount of time is going to be pretty high.  You also run up against this: if you use it wrong it will give the wrong answer, and you're not going to ever know without checking it manually anyway.  The packages you're playing with are kind of like trying to build a tree house with a full set of construction equipment including a bulldozer, when all you really needed was a ladder, a saw, and a drill.  This extends to the fact that you have to know more stuff to use your overpowered solution, and you probably had to spend a lot of extra time to learn it.
Also, it appears that you can actually pass equations to solve without the rearrangement after all, but you have to use something like eq(foo, bar) instead of the equals sign.  The fact that this was not obvious is not surprising given how they word it, but it's there if you scroll down the page some and know what you're looking at.
But I think in terms of effort, this may not be worth it for you.  Your problems are going to take a minute or two each at most. Sy mpy is intended for people with problems that will take 10 or 20 minutes each at minimum.  You don't start seeing these without the stipulation that you also use a specific method until well into college, and when you hit calculus you can't use it either.  Around the point Sympy would actually be useful you also reach the point where your  answer is literally meaningless without all the work that goes with it.  In something like Calculus, there are actually hundreds of right answers.  The professor can only tell by looking at your work, and what something like Sympy gives will be wildly different than yours.  Sympy and similar software packages are intended for real world problems, not academic ones.  Every time I've tried to do what you're doing for school work, I've ended up wasting a lot of time for no meaningful gain.  Maybe it can help you, I don't know, but I think by the time you can trivially swallow somet hing like Sympy you already know a lot of math.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : dhruv via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : dhruv via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : dhruv via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : dhruv via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector

Reply via email to