2019-10-03 04:41:06 -0600 | received badge | ● Popular Question (source) |

2019-02-16 12:15:36 -0600 | received badge | ● Notable Question (source) |

2018-12-02 10:40:56 -0600 | received badge | ● Popular Question (source) |

2017-11-21 08:11:18 -0600 | asked a question | Error when calling the CRT function I have the following Magma code that I want to rewrite in Sage: and when I run it I get the result of It gives me an error message of:
Any ideas what the problem might be, and how to solve it? For one thing I know that the |

2017-11-21 05:27:38 -0600 | received badge | ● Organizer (source) |

2017-11-21 05:24:11 -0600 | asked a question | Sage code is not finishing the execution I have the following Sage code: And I tried running it in Sage Notebook locally and running it through a VM, but in either case it does not finish with the execution, whereas the same code in Magma finishes immediately. Any ideas what the problem might be? |

2017-11-21 05:17:20 -0600 | commented answer | Inconsistent result between Sage and Magma for sqrt Yes, both return correct answers, no doubt about it. It was just that I was rewriting a Magma code in Sage, and I want to have consistency, and as you say satisfy the |

2017-11-20 12:22:19 -0600 | asked a question | Factorization sequence to enumerated sequence in Sage I have the following Magma code that I want to rewrite in Sage: This basically produces the following result:
Any ideas how can I rewrite this line in Sage? |

2017-11-20 12:05:02 -0600 | commented answer | Inconsistent result between Sage and Magma for sqrt Take this for example |

2017-11-20 10:00:04 -0600 | commented question | Inconsistent result between Sage and Magma for sqrt Quite interesting. Using |

2017-11-20 08:57:39 -0600 | asked a question | Inconsistent result between Sage and Magma for sqrt I have the following Magma code: It basically creates a ring of integers modulo 625, evaluated it for the value of I get a result of |

2017-11-20 07:06:32 -0600 | commented answer | Lattices in Sage Thanks, this works, and using |

2017-11-20 07:05:34 -0600 | received badge | ● Commentator |

2017-11-18 15:04:51 -0600 | commented answer | Lattices in Sage You can use the online Magma calculator for the experimental purposes, it is more than enough: http://magma.maths.usyd.edu.au/calc/ As for the Magma code in my question. It will basically create a lattice of rank 2 and degree 2, which has basis: and Inner Product Matrix: So basically the second matrix is the inner product matrix. I hope this is more clear. |

2017-11-18 12:37:31 -0600 | commented answer | Lattices in Sage Your result will produce more or less correct results (just the sign will be wrong) if one matrix is used. But, in my case as you can see in the original question, there are two matrices used. I added some numeric examples to the original question, to see the contrast. Please note that there is another value called |

2017-11-18 10:48:55 -0600 | asked a question | Convert sqrt to Integer or Rational I have the following Sage code, but it fails whenever I try to coerce the Any ideas how to solve the problem? |

2017-11-16 08:22:29 -0600 | commented answer | Lattices in Sage I think the main problem is not the LLL algorithm per se, but the used method here. If one creates the same matrix both in Sage and Magma and applies the LLL algorithm, the result is the same. But, in my example above, in Magma, a different method is used, which is called I think what I look for is whether Sage supports creating lattices, and if it has method similar to |

2017-11-15 16:30:30 -0600 | commented question | Lattices in Sage @dan_fulea $L$ is supposed to be a lattice generated by two vectors $(N_2,0)$ and $(\tau,1)$. The Magma code is not written by me, I'm just trying to convert it to Sage, that's why I also don't know exactly the need of the second matrix in the lattice generation. |

2017-11-15 16:22:41 -0600 | commented answer | Finite field with a big prime @vdelecroix thanks for the shortcut! |

2017-11-15 09:57:00 -0600 | marked best answer | Finite field with a big prime I have a big prime, more specifically this: And, when I try to create a finite field with it, using |

2017-11-15 09:28:48 -0600 | commented answer | Lattices in Sage Thanks for the answer. Though, I wonder whether it is the correct solution here. Please check the above modified question, with some actual values comparing the results of Magma and Sage. |

2017-11-15 09:27:56 -0600 | edited question | Lattices in Sage I have the following Magma code, and I want to rewrite it in Sage. In Sage I have something like this: Whose output is not exactly the same thing produced by the above Magma code. I think the main problem is that I use a matrix and just apply the LLL algorithm to it in the Sage part. Whereas, in Magma there a lattice created, and then the
How does one create a lattice in Sage? And does Sage have a function similar to As for numeric example, I have the following values: and if I call the above Magma code with these values, I get the following result for the basis matrix: whereas if I call the above Sage code with the above values, I get the following result: |

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.