Hello Simon thanks for this. One problem with the solution you mention is that I can't do the general case. What I need is the sage equivalent of mathematica's Reduce[] function.
Is there one? rksh On Thu, Aug 19, 2010 at 10:06 PM, Simon King <simon.k...@nuigalway.ie> wrote: > Hi! > > On 19 Aug., 22:41, robin hankin <hankin.ro...@gmail.com> wrote: >> sage>solve([a*b==15*I-5,a*conjugate(b)==-13*I+9],[a,b]) >> [] >> >> So, from the first two lines I know that a=2+I, b=1+7I should >> be a solution to the system in the third, yet solve() returns empty. > > Admittedly I am no expert for symbolics, and I don't know if maxima > (which is used when you do the above solve command) can do those > things in principle. > > But it would certainly be allowed to reformulate the equations in a > way that makes it more easy to solve: Express the equations by real > and imaginary part. Hence, writing a as xa+I*ya and b as xb+Iyb, you > would do > sage: var('xa ya xb yb') > (xa, ya, xb, yb) > sage: solve([xa*xb-ya*yb==-5, xa*yb+ya*xb==15, xa*xb+ya*yb==9, - > xa*yb+ya*xb==-13],[xa,ya,xb,yb]) > [[xa == 2/r1, ya == (1/r1), xb == r1, yb == 7*r1]] > > So, r1=1 yields the solution that you found. > > Cheers, > Simon > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- Robin Hankin Uncertainty Analyst hankin.ro...@gmail.com -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org