I tried (in the Sage shell)
K = QuadraticField(-3)
b = 1 / sqrt(-3) + (1 + sqrt(-3)) / 2
K(b)
But that failed with a TypeError exception. What is the problem?
1 | initial version |
I tried (in the Sage shell)
K = QuadraticField(-3)
b = 1 / sqrt(-3) + (1 + sqrt(-3)) / 2
K(b)
But that failed with a TypeError exception. What is the problem?
2 | simplify |
I tried (in the Sage shell)
K a = QuadraticField(-3)
b = 1 / sqrt(-3) + (1 + sqrt(-3)) / 2
K(b)
QuadraticField(-3)(sqrt(-3))
But that failed fails with a TypeError exception. What is the problem?
3 | No.3 Revision |
I tried (in the Sage shell)
K = QuadraticField(-3)
a = QuadraticField(-3)(sqrt(-3))
K(sqrt(-3))
But that fails with a TypeError exception. What is the problem?
I know that I can get the generator by K.gen()
but I want to be able to convert expressions to K
.