Ask Your Question

CCorio's profile - activity

2014-08-29 19:38:58 +0200 received badge  Scholar (source)
2014-08-29 19:31:49 +0200 commented answer Solving system of equations using approximation

can you help me understand this equation set a bit more? eq = [x*x+y*y-d*d,y-t*x,(x-h)**2+(y-k)**2-r**2,h-1,k-1,r-6,t-2] What does the "h-1,k-1,r-6,t-2" signify? Why is it -1 or -6, etc.?

2014-08-29 18:58:46 +0200 asked a question Solving system of equations using approximation

Hello - I'm an experienced software developer but new to Sage. I'm trying to solve a system of equations in various ways using Sage online.

Here's the system of equations

var('x y h k r t d')

eq1 = x^2 + y^2 == d^2

eq2 = y == tan(t) * x

eq3 = (x-h)^2 + (y-k)^2 == r^2

eq4 = -1 * r < h < r

eq5 = -1 * r < k < r

I'm trying to solve this in two ways:

  1. I'm trying to solve for h and k for a given r using a set of t and d values. This will obviously be an approximation.

  2. I'm trying to get all values of d given h, k, r, and t. I think there should be two values. I was trying to get the equations for d but that might not be possible...

If you could provide any insight into the functions to use to get these results or any sample code, I'd appreciate it.

Thanks, Chris