Peter writes:
* As per the documentation, sympy.solveset.solver should be able to do this, but I have no experience with it. Thanks for the tip. Here are the docs for solveset: Solveset - SymPy 1.11 documentation<https://docs.sympy.org/latest/modules/solvers/solveset.html>. Sadly, I think it can only solve for one variable. * Carl From: sympy@googlegroups.com <sympy@googlegroups.com> On Behalf Of Peter Stahlecker Sent: Friday, December 30, 2022 9:13 PM To: sympy@googlegroups.com Subject: Re: [sympy] If a^2+b^2+c^2=1, how do you find all real-valued triplets <a,b,c> that make the equation true? As per the documentation, sympy.solveset.solver should be able to do this, but I have no experience with it. NB: I have scanned your articles, not studied them. Would things like Gödel's incompleteness theorem not prevent you from ever reaching your goal, never mind the practical problems? On Sat 31. Dec 2022 at 05:56 Carl K <ca...@msn.com<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), c is +- sqrt(1-a**2-b**2) Thanks! Carl p.s. I'm looking to follow up my article "Perfect, Infinite-Precision, Game Physics in Python (Part 3): Use Python SymPy to turn Math and Physics into Programming" https://medium.com/towards-data-science/perfect-infinite-precision-game-physics-in-python-part-3-9ea9043e3969<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmedium.com%2Ftowards-data-science%2Fperfect-infinite-precision-game-physics-in-python-part-3-9ea9043e3969&data=05%7C01%7C%7C80f22aa838404f3f42f408daeaedc584%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638080604183201870%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EFt7IJ37bxXRd114cOQrZ%2BENSUi0VEhKl9HvPfk8Jws%3D&reserved=0> -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com<mailto:sympy%2bunsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CH0P223MB02196A6B41CDBF75CBECF6EAB2F19%40CH0P223MB0219.NAMP223.PROD.OUTLOOK.COM<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fsympy%2FCH0P223MB02196A6B41CDBF75CBECF6EAB2F19%2540CH0P223MB0219.NAMP223.PROD.OUTLOOK.COM&data=05%7C01%7C%7C80f22aa838404f3f42f408daeaedc584%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638080604183201870%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zFsiRD8ktMOlCfyP3AQLBzYMEnCKEK%2BX%2BcuQZ1lVtic%3D&reserved=0>. -- Best regards, Peter Stahlecker -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com<mailto:sympy+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CABKqA0Y5HoVyHMJ3PXXO9HA1jiQpi8PeQYMgT6_FMXOxJ_ib%2Bw%40mail.gmail.com<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fsympy%2FCABKqA0Y5HoVyHMJ3PXXO9HA1jiQpi8PeQYMgT6_FMXOxJ_ib%252Bw%2540mail.gmail.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7C%7C80f22aa838404f3f42f408daeaedc584%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638080604183201870%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=73LfL5i1FVT8O4sleknLEcFk646PxZw8fm%2Bg3oKyxU4%3D&reserved=0>. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/DM8P223MB02213978BCBF9012E2CD98E5B2F19%40DM8P223MB0221.NAMP223.PROD.OUTLOOK.COM.