| 1 | initial version |
Here are two ways to solve your first problem.
use the Python version of the complex imaginary unit, 1j.
sage: R.<x,y> = CC['x,y'] sage: f = x + 1jy sage: f x + 1.00000000000000I*y sage: f.parent() Multivariate Polynomial Ring in x, y over Complex Field with 53 bits of precision
redefine I to be the imaginary unit in CC.
sage: I = CC.gen() sage: I = CC.gen() sage: f = x + I * y sage: f x + 1.00000000000000Iy sage: f.parent() Multivariate Polynomial Ring in x, y over Complex Field with 53 bits of precision
Regarding your second problem, the following fails because R is not a principal ideal domain.
sage: span([f], R)
| 2 | No.2 Revision |
Here are two ways to solve your first problem.
use the Python version of the complex imaginary unit, 1j.
sage: R.<x,y> = CC['x,y']
sage: f = x + redefine I to be the imaginary unit in CC.
sage: I = CC.gen()
sage: I = CC.gen()
sage: f = x + I * y
sage: f
x + Regarding your second problem, the following fails because R is not a principal ideal domain.
sage: span([f], R)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.