Sharedsupport / 2015-09-17-080944-conversions.sagewsOpen in CoCalc
Examples for support purposes...
K.<x> = GF(25)
L.<y> = GF(25)
phi = K.hom([y])
phi(x + 3)
y + 3
psi = K.hom([y^2])
Error in lines 1-1 Traceback (most recent call last): File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 879, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "sage/structure/parent_gens.pyx", line 463, in sage.structure.parent_gens.ParentWithGens.hom (build/cythonized/sage/structure/parent_gens.c:4944) return parent.Parent.hom(self, im_gens, codomain, check) File "sage/structure/parent.pyx", line 1729, in sage.structure.parent.Parent.hom (build/cythonized/sage/structure/parent.c:13038) return self.Hom(codomain)(im_gens, check=check) File "/projects/sage/sage-6.7/local/lib/python2.7/site-packages/sage/rings/finite_rings/homset.py", line 100, in __call__ raise TypeError("images do not define a valid homomorphism") TypeError: images do not define a valid homomorphism