[sympy] Perfect, Infinite-Precision Game Physics with SymPy and Python

2022-11-29 Thread Carl K
Greetings, I so love SymPy! I had the idea of creating a simple physics engine using symbolic math rather than numerical methods. Using SymPy, I got it working. It is 2D with circles, infinite walls, and elastic collisions. On the downside, after too many events, the expressions can get too lon

[sympy] If a^2+b^2+c^2=1, how do you find all real-valued triplets that make the equation true?

2022-12-30 Thread Carl K
Greetings, I'm playing with physics problems. Can SymPy solve problem like this? Question: a**2+b**2+c**2==1 (real valued) Answer: -1<=a<=1, -sqrt(1-a**2)<=b<=sqrt(1-a**2), c is +- sqrt(1-a**2-b**2) Thanks! Carl p.s. I'm looking to follow up my article "Perfect

RE: [sympy] If a^2+b^2+c^2=1, how do you find all real-valued triplets that make the equation true?

2022-12-30 Thread Carl K
On Sat 31. Dec 2022 at 05:56 Carl K mailto:ca...@msn.com>> wrote: Greetings, I'm playing with physics problems. Can SymPy solve problem like this? Question: a**2+b**2+c**2==1 (real valued) Answer: -1<=a<=1, -sqrt(1-a**2)<=b<=sqrt(1-a**2),

Re: [sympy] pickle for Function and Derivative

2023-01-28 Thread Carl K
I've had good luck with CloudPickle, a package, when Pickle doesn't work. From: sympy@googlegroups.com on behalf of Thomas Ligon Sent: Saturday, January 28, 2023 8:38:46 AM To: sympy Subject: [sympy] pickle for Function and Derivative Should pickle work for Fun

[sympy] SymPy talk at PyData 2023 (Seattle)

2023-03-24 Thread Carl K
Greetings, I'm happy to report that I'll be giving a talk about SymPy at the PyData conference next month. Here is the listing for the presentation: A Perfect, Infinite-Precision, Game Physics in Python :: PyData Seattle 2023 :: pretalx Previou

[sympy] Let users run SymPy in their browser with PyScript

2023-04-26 Thread Carl K
PyScript (https://pyscript.net/) is system for easily running Python (including numpy and SymPy) in the browser. Here is a live demo of my "perfect" physics simulator using SymPy in the browser: https://carlkcarlk.github.io/perfect-physics/pyscript/. * Carl p.s. I'll be presenting "Perfect