sympy_gamma
sympy_gamma copied to clipboard
Geometry in SymPy Gamma
Google recently added a feature that lets you solve various geometric problems with their search engine (http://googlesystem.blogspot.com/2014/03/google-geometry-calculator.html, https://support.google.com/websearch/answer/4572089), e.g. calculate the diagonal of a square with 6 cm edge, calculate the area of a triangle with height 4 and base 5. Something like this would be nice for Gamma (perhaps without the NLP for now), especially with interactive results. It's also nice how Google shows the formula.
SymPy has some geometry support, but:
- No 3D support (which Google has)
- Some things like diagonal length don't seem to be implemented
- Does plotting of these shapes work?
This one is quite impressive, it highlights the corresponding part of the formula when the input field is clicked and shows you the necessary constraints:
It also gives you a little derivation of the answer:
Oh, and it can solve for all possibilities in a triangle:
There is a GSoC proposal about 3d geometry support. I wonder if Google is going to hire SymPy developers now. ;)
This would be nice.. if implemented. There is a GSoC proposal about NLP too. :+1: