Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-20 Thread Akshay
@certik @asmeurer I have made the changes you suggested. I have put 
everything that i thought of in the application 
https://github.com/sympy/sympy/wiki/GSoC-2014-Application--Akshay--Geometry-Modulehttps://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fsympy%2Fsympy%2Fwiki%2FGSoC-2014-Application--Akshay--Geometry-Modulesa=Dsntz=1usg=AFQjCNFOCh30zlnihG925yryY1mf50SUHg.Do
 
you have any more suggestions?

Thanks,
Akshay

-- 
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 post to this group, send email to sympy@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/2f1888a2-4bbe-4d74-bb4b-7d0405f1039c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-18 Thread Akshay
@certik @asmeurer Could you please review my proposal at melange and post 
your comments as the application deadline is fast approaching? Here is the 
link to my proposal at 
wiki 
https://github.com/sympy/sympy/wiki/GSoC-2014-Application--Akshay--Geometry-Module.

Thanks,
Akshay

-- 
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 post to this group, send email to sympy@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/deb572f1-f757-4021-8159-8d34d7db67d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-17 Thread Akshay
@certik
I have updated my proposal 
at 
https://github.com/sympy/sympy/wiki/GSoC-2014-Application--Akshay--Geometry-Module.
 
Please take some time to review it.
Thanks
Akshay

-- 
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 post to this group, send email to sympy@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/ff7f91f4-124f-4936-8a98-e034b874af82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-05 Thread Akshay


 Hi Certik,

I wrote a wiki page, Please take a look.
https://github.com/sympy/sympy/wiki/GSoC-2014-Application--Akshay--Geometry-Module.
 

-- 
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 post to this group, send email to sympy@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/709e9d16-6728-4be4-b110-b646aa8e1d1f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-05 Thread Ondřej Čertík
On Wed, Mar 5, 2014 at 9:30 AM, Akshay akshaynukal...@gmail.com wrote:
 Hi Certik,

 I wrote a wiki page, Please take a look.
 https://github.com/sympy/sympy/wiki/GSoC-2014-Application--Akshay--Geometry-Module.

Thanks, I like the explicit examples. Put there a section with your
estimate how long it would take you to implement it.

Ondrej

-- 
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 post to this group, send email to sympy@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/CADDwiVDET1pmocqWYNEYbgS4qZY_AwiaTvhgeVR8tUuRfw2nDA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-05 Thread Akshay
I have added the tentative timeline, Do have a look.

-- 
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 post to this group, send email to sympy@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/a2f4a78f-1677-4e5a-a01a-6b6e4cf7f540%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-05 Thread Ondřej Čertík
Thanks. Just curious --- why do you think you'll need 4 weeks to
implement the Line class?

The intersection should be just a matter of a simple formula:

http://mathworld.wolfram.com/Line-LineIntersection.html

On Wed, Mar 5, 2014 at 11:43 AM, Akshay akshaynukal...@gmail.com wrote:
 I have added the tentative timeline, Do have a look.

 --
 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 post to this group, send email to sympy@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/a2f4a78f-1677-4e5a-a01a-6b6e4cf7f540%40googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 post to this group, send email to sympy@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/CADDwiVBhmH4QDFLAZ7_w3iwKej0gQneMpK6-zTAkjNJEx%3DX1gA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-05 Thread Akshay


 I actually expected this question :).Anyway that was the formula for the 
 intersection of 2 lines in 2-d but now we have both 2-d and 3-d and also 
 apart from that there are segments and rays so we have to consider the 
 intersection of line and line in 2-d and 3-d and line and ray in 2-d 3-d 
 and so 
 on(http://docs.sympy.org/latest/_modules/sympy/geometry/line.html#LinearEntity.intersection
  
 Current code in 2-d).There are some additional 15-20 methods which have to 
 implemented from scratch in the line module in both 2-d and 3-d.

-- 
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 post to this group, send email to sympy@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/dda3a99b-790b-4cff-9ea9-5cfabbc50539%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-05 Thread Ondřej Čertík
On Wed, Mar 5, 2014 at 12:17 PM, Akshay akshaynukal...@gmail.com wrote:
 I actually expected this question :).Anyway that was the formula for the
 intersection of 2 lines in 2-d but now we have both 2-d and 3-d and also
 apart from that there are segments and rays so we have to consider the
 intersection of line and line in 2-d and 3-d and line and ray in 2-d 3-d and
 so
 on(http://docs.sympy.org/latest/_modules/sympy/geometry/line.html#LinearEntity.intersection
 Current code in 2-d).There are some additional 15-20 methods which have to
 implemented from scratch in the line module in both 2-d and 3-d.

I know it can get tricky to do intersection in 3D, but on the link I
sent, it is described
under In three dimensions,

See also this:

http://stackoverflow.com/questions/10551555/need-an-algorithm-for-3d-vectors-intersection/10554546#10554546

One has to code this, using symbolic algebra, but once you have it,
the rest seems straightforward. I would think
it would take a few days to get it right.

Ondrej

-- 
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 post to this group, send email to sympy@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/CADDwiVAQZe6%3D3fD-b2dfQxgBxNkeQY4BnV5NAG_qX0tNKDi4Pg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-05 Thread Akshay


 Only problem is this is not hard but tedious as there are a lot of 
 permutations line , segment and rays(2-d and 3-d) and note that there are 
 no ready made formulas for rays and segments unlike lines .Maybe his might 
 not take the amount of time I mentioned ,If time is left I would like to 
 include all these new geometric entities in the plotting module.Does that 
 sound good?

 

-- 
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 post to this group, send email to sympy@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/315f94ea-3557-4b10-8853-01765a45bca0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-04 Thread Ondřej Čertík
Hi Akshay,

I think in general it is a good idea to be able to work with 3D
geometric objects. Why don't you start by writing some very quick
prototype, as part of your proposal.
For example intersection of 2 lines in 3D, or a plane and a line.
Write up the functions/classes necessary for that. That should give
you a good idea what work
this involves and should give you ideas how to write the proposal.

Ondrej

On Mon, Feb 24, 2014 at 12:03 AM, Akshay akshaynukal...@gmail.com wrote:
 @smichr I agree that there are a lot of visualisation libraries for
 geometry but there are very few computational geometry libraries especially
 in python(atleast that's what googlesaid). With sympy's features we
 could make a more flexible 3d module for example using symbols and
 restricting it's value to only positive,we have already blocked imaginary
 points so that is one less thing to worry about and making use of vector
 module in  some  algorithms.

 --
 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 post to this group, send email to sympy@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/45ffeb28-a20f-406a-b81a-e5dc29975ef6%40googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 post to this group, send email to sympy@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/CADDwiVA7fX677EKB%2B8dn_wuRNzYQVKeU64LKCqD-hoH9xDZkkw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-04 Thread Akshay


 @ondrej Thanks for the quick reply .

 As you pointed out I have been working on the prototype for past few days 
and for the intersection of two lines it looks something like this:
a = Line(Point(1,2,3),Point(2,3,4))
b = Line(Point(5,5,5),Point(-8,-6,-3)) 
a.interection(b) = Point(-1.5, -0.5, 0.5)

a.arbitrary_point() = Point(t+1,t+2,t+3)
b.arbitrary_point('z') = Point(-13*z +5, -11*z+5, -8z+5)
c=Line(Point(2,3), Point(3,5))  # Here the default value of z is taken as 0
a.intersection(c)
Point(2,3,4)

Apart from this I have been thinking about a class which does this   
x,y,z = map(Symbol, 'xyz')
p1,p2,p3 = Point(x, y), Point(y, z), Point(2*x*y, y)
Point.is_collinear(p1, p2, p3) this returns false but it is better to 
return this 
Points are collinear if z - y - 2*y*z + 2*y**2 == 0
This class should support the following methods at least:
is_similar is_parallel is_concyclic is_perpendicular encloses_point 
is_tangent is_convex contains collinear 





-- 
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 post to this group, send email to sympy@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/9bea9c0e-a1f3-4863-bfca-0ff0ecbb22ab%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-04 Thread Ondřej Čertík
Hi Akshay,

On Tue, Mar 4, 2014 at 12:28 PM, Akshay akshaynukal...@gmail.com wrote:
 @ondrej Thanks for the quick reply .

  As you pointed out I have been working on the prototype for past few days
 and for the intersection of two lines it looks something like this:
 a = Line(Point(1,2,3),Point(2,3,4))
 b = Line(Point(5,5,5),Point(-8,-6,-3))
 a.interection(b) = Point(-1.5, -0.5, 0.5)

 a.arbitrary_point() = Point(t+1,t+2,t+3)
 b.arbitrary_point('z') = Point(-13*z +5, -11*z+5, -8z+5)
 c=Line(Point(2,3), Point(3,5))  # Here the default value of z is taken as 0
 a.intersection(c)
 Point(2,3,4)

 Apart from this I have been thinking about a class which does this
 x,y,z = map(Symbol, 'xyz')
 p1,p2,p3 = Point(x, y), Point(y, z), Point(2*x*y, y)
 Point.is_collinear(p1, p2, p3) this returns false but it is better to return
 this
 Points are collinear if z - y - 2*y*z + 2*y**2 == 0
 This class should support the following methods at least:
 is_similar is_parallel is_concyclic is_perpendicular encloses_point
 is_tangent is_convex contains collinear

Very good. I think this makes sense.

Ondrej

-- 
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 post to this group, send email to sympy@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/CADDwiVAf4_1zqB-%3D7RapFqe21ZYp_z_XGmyHBhPmvoo0mYHNqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-04 Thread Christophe Bal
Hello.

In your prototype, you have written :

b.arbitrary_point('z') = Point(-13*z +5, -11*z+5, -8z+5)
c=Line(Point(2,3), Point(3,5))  # Here the default value of z is taken as 0

Why don't you work with a symbolic variable z ?

You will also have to take care of point in segment for example.


2014-03-04 20:28 GMT+01:00 Akshay akshaynukal...@gmail.com:

 @ondrej Thanks for the quick reply .

  As you pointed out I have been working on the prototype for past few days
 and for the intersection of two lines it looks something like this:
 a = Line(Point(1,2,3),Point(2,3,4))
 b = Line(Point(5,5,5),Point(-8,-6,-3))
 a.interection(b) = Point(-1.5, -0.5, 0.5)

 a.arbitrary_point() = Point(t+1,t+2,t+3)
 b.arbitrary_point('z') = Point(-13*z +5, -11*z+5, -8z+5)
 c=Line(Point(2,3), Point(3,5))  # Here the default value of z is taken as 0
 a.intersection(c)
 Point(2,3,4)

 Apart from this I have been thinking about a class which does this
 x,y,z = map(Symbol, 'xyz')
 p1,p2,p3 = Point(x, y), Point(y, z), Point(2*x*y, y)
 Point.is_collinear(p1, p2, p3) this returns false but it is better to
 return this
 Points are collinear if z - y - 2*y*z + 2*y**2 == 0
 This class should support the following methods at least:
 is_similar is_parallel is_concyclic is_perpendicular encloses_point
 is_tangent is_convex contains collinear





  --
 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 post to this group, send email to sympy@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/9bea9c0e-a1f3-4863-bfca-0ff0ecbb22ab%40googlegroups.comhttps://groups.google.com/d/msgid/sympy/9bea9c0e-a1f3-4863-bfca-0ff0ecbb22ab%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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 post to this group, send email to sympy@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/CAAb4jGmPOtXYsmQBsaoNJ%3DMysZk1czPT40M4Hm%2B58eJJzeKUQw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-04 Thread Akshay


 c=Line(Point(2,3), Point(3,5))  # Here the default value of z is taken as 0
 I meant that the z co-ordinate of the point is taken as 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 post to this group, send email to sympy@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/566bdfcc-445e-4530-a572-648fd22237d5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sympy] Re: Gsoc-14 3-Dimensional Geometry.

2014-03-04 Thread Christophe Bal
Sorry for my message, I was drunk... ;-)


2014-03-04 21:32 GMT+01:00 Akshay akshaynukal...@gmail.com:


 c=Line(Point(2,3), Point(3,5))  # Here the default value of z is taken as 0
 I meant that the z co-ordinate of the point is taken as 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 post to this group, send email to sympy@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/566bdfcc-445e-4530-a572-648fd22237d5%40googlegroups.comhttps://groups.google.com/d/msgid/sympy/566bdfcc-445e-4530-a572-648fd22237d5%40googlegroups.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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 post to this group, send email to sympy@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/CAAb4jGmTQvGwt4MetC-1NcDXNKE1ieyR52nip4uvUnDz%2B4et_g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.