Chris, when I execute your code I get the error: TypeError: sympify() got an unexpected keyword argument 'rational'.
I installed sympy using apt-get install python-sympy and synaptic reports 0.6.7-1.1 as the installed version. When I execute ?S I don't see any options for rational. Call def: S(a, locals=None, convert_xor=True) The same is true for nsimplify(2.3, rational=1) from sympy import nsimplify nsimplify(2.3, rational=1) TypeError: nsimplify() got an unexpected keyword argument 'rational' Again executing ?nsimplify mentions no rational param. Definition: nsimplify(expr, constants=[], tolerance=None, full=False) Any ideas? Cathal from sympy.geometry import * from sympy import S def rat(d): return S(str(d), rational=True) p1 = Point(rat(-694310.42867240659), rat(7051910.5392115889)) TypeError: sympify() got an unexpected keyword argument 'rational' p2 = Point(rat(-694286.161023414), rat(7051916.4164796043)) l=Line(p1,p2) p = Point(rat(-694210.80222825997), rat(7051914.7562929001)) s = l.perpendicular_segment(p) s.length -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
