[sympy] Pythoncad & sympy.geometry

2010-05-28 Thread Matteo Boscolo
Hi all, I'm New using in sympy I would like to use sympy.geometry for my pythoncad Application. There are any way to find a tangent line of a circle or ellipse given as constraint an external point ?.. somthing like Line=TangentLine(Circle,Point) where point is an external entity of the circle ?

RE: [sympy] Pythoncad & sympy.geometry

2010-05-28 Thread Matteo Boscolo
ike On Fri, May 28, 2010 at 7:13 AM, Matteo Boscolo wrote: Hi all, I'm New using in sympy I would like to use sympy.geometry for my pythoncad Application. There are any way to find a tangent line of a circle or ellipse given as constraint an external point  ?.. somthing like Line=TangentLin

[sympy] Patch for module geometry.ellipse

2010-05-31 Thread Matteo Boscolo
Hi, Working with Ellipse.is_tangent I found an issue at elif isinstance(o, Polygon): The Polygon class is not included in the ellipse module so we get the error. I patch the code in the following way.. Regards, Matteo def is_tangent(self, o): """Returns True if o is tangent to the e

[sympy] Error in the intersection

2010-05-31 Thread Matteo Boscolo
ginal Message- From: sympy@googlegroups.com [mailto:sy...@googlegroups.com] On Behalf Of Vinzent Steinberg Sent: 31 May 2010 00:01 To: sympy Subject: [sympy] Re: Pythoncad & sympy.geometry On 29 Mai, 08:13, "Matteo Boscolo" wrote: > Hi Michael,>If you mean construct a line

RE: [sympy] Re: Error in the intersection

2010-06-01 Thread Matteo Boscolo
Thanks.. It's solve the problem Regards, Matteo -Original Message- From: sympy@googlegroups.com [mailto:sy...@googlegroups.com] On Behalf Of smichr Sent: 01 June 2010 14:05 To: sympy Subject: [sympy] Re: Error in the intersection I would recommend using Rationals rather than Reals. It's

RE: [sympy] Re: Patch for module geometry.ellipse

2010-06-06 Thread Matteo Boscolo
09 pm, Ondrej Certik wrote: > On Mon, May 31, 2010 at 1:04 AM, Matteo Boscolo > > wrote: > > Hi, > > Working with Ellipse.is_tangent I found an issue at elif isinstance(o, > > Polygon): > > > The Polygon class is not included in the ellipse module so we get the err

[sympy] Convertion Units

2010-06-16 Thread Matteo Boscolo
Hi All, I'm trying to use sympy for units conversion.. I use this code to convert from ft to mm.. cad_leng=units.Unit('cad_leng','mm') converter={units.m: cad_leng*Rational(1000)} cad_ft=units.ft cad_mm=cad_ft.subs(converter) mm_value=float(str(cad_mm.evalf()).split('*')[0]) print mm_

RE: [sympy] conversion units

2010-06-17 Thread Matteo Boscolo
>just out of curiosity - how did you get all those trailing zeros ? >From the python schell .. May be the printed velue was 304.80001 I just make a mistake in copy paste .. ;-) Regards, Matteo -Original Message- From: sympy@googlegroups.com [mailto:sy...@googlegroups.com] On Beh

Re: [sympy] Re: Who uses SymPy?

2011-05-15 Thread Matteo Boscolo
hi all, Do not forget PythonCAD .. http://sourceforge.net/projects/pythoncad/ we are using sympy for all geometrical operation .. last yeard I made an youtube video that show how to render sympy data to PythonCAD and how to get sympy data from PythonCAD http://www.youtube.com/watch?v=FnxRDj4qy

[sympy] Problem if I intersec an ellipse and a arc

2011-06-12 Thread Matteo Boscolo
Hi all : I got this two geometrical entity: Ellipse: Center Point : (-22.1368,132.821) , horizontalRadius Axi=641.625758588, Mino Axi=561.422256982 Arc\Circle: Center Point : (-370.288,132.821) , Radius 256.867341765 , StartAngle=0, EndAngle=6.28318530718 if I intersect this two entity I got t