Hi list,
i have some equatione, wich i want to solove using the solve function:
q0,q1,q2,q3 = var("q0,q1,q2,q3")
eq = (q0 - q3, q1 - q3, q2 - q3)
solve(eq,q0,q1,q2,q3) returns
[[q1 == r5, q2 == r5, q3 == r5, q0 == r5]]
this is correct, but i want to have r5 in \N r5 \neq 0 with
gcd(q1,q2,q3,q0) = 1, meaninga in this case, r5 = 1.
i tried to extend eq to
eq = [(q0 * v0 ) + (q1 * v1) + (q2 * v2) + (q3 * v3) , gcd(q0,q1) == 1,
gcd(q1,q2) == 1, gcd(q2,q3) == 1]
and i get this:
[[q1 == r8, q2 == r7, q3 == r7, q0 == r6]]
thats not even waht i want to have.
how do i have to do it?
greatz Johannes
--
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