Let M denote the generator matrix of the lattice. Suppose M is a 2 by 2 matrix.
sage: var('x', domain=ZZ); sage: var('y', domain=ZZ); sage: v=vector((x,y)); sage: f=(M*v).norm();minimize(f,[1,1]) But the output is Warning: Maximum number of iterations has been exceeded Current function value: 0.000000 Iterations: 400 Function evaluations: 804 Gradient evaluations: 804 (1.07117779258e-121, -7.20701845996e-121) On Wednesday, September 5, 2012 7:31:48 PM UTC+8, David Loeffler wrote: > > > how can I get the minimum norm for the > > ideal lattice (J,\alpha) using sage? > > What have you tried so far? > > David > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.