hi there,

I like to know if there is any way of sage resolving the fowling system of 
equations. I try with the solve method:

var('a,b,s,g')
sys=[exp(i*(a-b/2-s/2))*cos(g/2) == 1/2*sqrt(2),exp(i*(a+b/2+s/2))*cos(g/2) == 
-1/2*sqrt(2),exp(i*(a+b/2-s/2))*sin(g/2) == 
1/2*sqrt(2),-exp(i*(a-b/2+s/2))*sin(g/2) == 1/2*sqrt(2)]
solve(sys,[a,b,s,g])

The correct values are a = pi, b = pi, s = 0, g = -pi/2.

After inputing the above commands in sage (notebook mode) the return is:
[e^(I*a - 1/2*I*b - 1/2*I*s)*cos(1/2*g) == 1/2*sqrt(2), e^(I*a + 1/2*I*b
- 1/2*I*s)*sin(1/2*g) == 1/2*sqrt(2), -e^(I*a - 1/2*I*b +
1/2*I*s)*sin(1/2*g) == 1/2*sqrt(2), e^(I*a + 1/2*I*b +
1/2*I*s)*cos(1/2*g) == -1/2*sqrt(2)]

Mac OS X 10.7.4
sage version 4.7.1

tks anyway!

-- 
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/sage-support
URL: http://www.sagemath.org

Reply via email to