That's the first time I use Sage<->Magma interface. Am I doing something wrong? Thanks in advance. (Latest sage beta, magma 2.19-2) sage: p = next_prime(1<<4) sage: n = next_prime(1<<3) sage: k = GF(p) sage: R.<x> = PolynomialRing(k) sage: f = R.irreducible_element(n) sage: g = R.irreducible_element(n, algorithm='random') sage: k1 = GF(p**n, name='a', modulus=f) sage: k2 = GF(p**n, name='b', modulus=g) sage: k1mgm = magma(k1) sage: k2mgm = magma(k2) sage: k1mgm.Embed(k2mgm) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-11-5209af6b0e8b> in <module>() ----> 1 k1mgm.Embed(k2mgm)
/home/jp/boulot/sage/sage.git/local/lib/python2.7/site-packages/sage/interfaces/magma.pyc in __call__(self, *args, **kwds) 1652 [self._obj.name()] + list(args), 1653 params = kwds, -> 1654 nvals = nvals) 1655 1656 def _sage_doc_(self): /home/jp/boulot/sage/sage.git/local/lib/python2.7/site-packages/sage/interfaces/magma.pyc in function_call(self, function, args, params, nvals) 1122 fun = "%s(%s%s)"%(function, ",".join([s.name() for s in args]), par) 1123 -> 1124 return self._do_call(fun, nvals) 1125 1126 def _do_call(self, code, nvals): /home/jp/boulot/sage/sage.git/local/lib/python2.7/site-packages/sage/interfaces/magma.pyc in _do_call(self, code, nvals) 1172 ans = None 1173 elif nvals == 1: -> 1174 return self(code) 1175 else: 1176 v = [self._next_var_name() for _ in range(nvals)] /home/jp/boulot/sage/sage.git/local/lib/python2.7/site-packages/sage/interfaces/magma.pyc in __call__(self, x, gens) 752 pass 753 --> 754 A = Expect.__call__(self, x) 755 if has_cache: 756 x._magma_cache[self] = A /home/jp/boulot/sage/sage.git/local/lib/python2.7/site-packages/sage/interfaces/interface.pyc in __call__(self, x, name) 197 198 if isinstance(x, basestring): --> 199 return cls(self, x, name=name) 200 try: 201 return self._coerce_from_special_method(x) /home/jp/boulot/sage/sage.git/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc in __init__(self, parent, value, is_name, name) 1310 else: 1311 try: -> 1312 self._name = parent._create(value, name=name) 1313 # Convert ValueError and RuntimeError to TypeError for 1314 # coercion to work properly. /home/jp/boulot/sage/sage.git/local/lib/python2.7/site-packages/sage/interfaces/interface.pyc in _create(self, value, name) 387 def _create(self, value, name=None): 388 name = self._next_var_name() if name is None else name --> 389 self.set(name, value) 390 return name 391 /home/jp/boulot/sage/sage.git/local/lib/python2.7/site-packages/sage/interfaces/magma.pyc in set(self, var, value) 589 13/5 590 """ --> 591 out = self.eval("%s:=%s"%(var, value)) 592 if out.lower().find("error") != -1: 593 raise TypeError("Error executing Magma code:\n%s"%out) /home/jp/boulot/sage/sage.git/local/lib/python2.7/site-packages/sage/interfaces/magma.pyc in eval(self, x, strip, **kwds) 528 ans = Expect.eval(self, x, **kwds).replace('\\\n','') 529 if 'Runtime error' in ans or 'User error' in ans: --> 530 raise RuntimeError("Error evaluating Magma code.\nIN:%s\nOUT:%s"%(x, ans)) 531 return ans 532 TypeError: Error evaluating Magma code. IN:_sage_[7]:=Embed(_sage_[6],_sage_[5]); OUT: >> _sage_[7]:=Embed(_sage_[6],_sage_[5]); ^ Runtime error in 'Embed': Bad argument types (possibly calling function signature of intrinsic as a procedure) Argument types given: FldFin, FldFin sage: k1mgm.Type() FldFin sage: magma_console() Magma V2.19-2 Thu Sep 4 2014 21:05:21 on jp-x220 [Seed = 4205189429] Type ? for help. Type <Ctrl>-D to quit. > p := 11; > n := 3; > k1 := GF(p, n); > k2 := GF(p, n); > Embed(k1, k2); > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.