sympy_gamma icon indicating copy to clipboard operation
sympy_gamma copied to clipboard

Geometry in SymPy Gamma

Open lidavidm opened this issue 10 years ago • 3 comments

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?

image

image

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:

image

It also gives you a little derivation of the answer:

image

lidavidm avatar Mar 20 '14 23:03 lidavidm

Oh, and it can solve for all possibilities in a triangle: image

lidavidm avatar Mar 20 '14 23:03 lidavidm

There is a GSoC proposal about 3d geometry support. I wonder if Google is going to hire SymPy developers now. ;)

certik avatar Mar 21 '14 04:03 certik

This would be nice.. if implemented. There is a GSoC proposal about NLP too. :+1:

sahilshekhawat avatar Mar 22 '14 05:03 sahilshekhawat