Problem in geometry topic using the "encloses" function in entity module

21 views
Skip to first unread message

Gaurav Dhingra

unread,
Dec 18, 2014, 4:38:03 AM12/18/14
to sy...@googlegroups.com
 Hi all,

I am new to Sympy (and to symbolic computations...) 
I am having problem in the Geometry topic, i am using the sympy.geometry.entity.encloses function which is as follows


In [1]  from sympy.geometry import *
                from sympy import S

In [2]  t = Triangle(Point(0, 0), Point(1, 0), Point(0, 1))   # a triangle having the vertices (0, 0), (1, 0), (0, 1)

In [3]  c1 = Circle(Point(S(1)/3, S(1)/3), S(1))                   # a circle having the center (1/3, 1/3) and radius 1, the circle "c1" somepart of it lies outside the triangle "t"

In [4]    t.encloses(c1)                                                       # which returns true
Out [4] True
  

Am i having a "bug" here or i am not understanding its use.

Thanking you 
Gaurav Dhingra(  axyd...@gmail.com)

Aaron Meurer

unread,
Dec 20, 2014, 5:01:39 PM12/20/14
to sy...@googlegroups.com
If it's a wrong result I'd say it's a bug.

Aaron Meurer
> --
> 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+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/0923d186-f9fa-44ee-9568-1a2348443e05%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages