Hello,

I try to calculate the tangent of a circle. This is a quite simple system 
of equations (one is quadratic),
but sympy fails (empty solution set). Any idea why?

from __future__ import division
from sympy import *
from sympy.solvers import solve

init_printing(use_latex = True)
r, phi_0, phi_1, phi_2, beta_0, beta_1, beta_2= symbols('r phi_0, phi_1, 
phi_2, \
     beta_0, beta_1, beta_2')

if True:
    if True:
        phi_0 = 0
        beta_0 = 0
        phi_1 = 1.
        beta_1 = 1.
        r=1.
    eq1 = Eq((phi_2 - phi_1) * (phi_2 - phi_1) + (beta_2 - beta_1) * 
(beta_2 - beta_1) - r*r)
    eq2 = Eq((phi_2 - phi_0) * (phi_2 - phi_1) + (beta_2 - beta_0) * 
(beta_2 - beta_1))
    result = solve([eq1, eq2], phi_2)
    print result

The result is an empty list. Any idea, how to fix this?
Expected result: phi_2 = 1.

Any hints appreciated!

U. Fechner, TU Delft

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/09115c90-e2b9-40e4-93e1-42e9696adc22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to