Karim Belabas on Sun, 17 Jun 2018 22:31:48 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: adding orders? |
* Bill Allombert [2018-06-17 20:59]: > On Wed, Jun 13, 2018 at 02:41:46PM +0100, J E Cremona wrote: > > Is there a pari or gp function to add two orders in a number field? Here > > of course I mean to return the smallest order containing both the summands, > > not just their sum as Z-modules, so the sum of Z[a] and Z[b] would Z[a,b]. > > I do not think this is readily available, though it is probably > done inside nfmaxord. > Do you have an algorithm for this task ? It's mostly available (internally). What would be a suitable name ? nforderadd ? (not too fond of that one...). Maybe, just nforder(nf, a, {b}) ? (cf idealhnf(nf, a, {b}). Cheers, K.B. -- Karim Belabas, IMB (UMR 5251) Tel: (+33) (0)5 40 00 26 17 Universite de Bordeaux Fax: (+33) (0)5 40 00 21 23 351, cours de la Liberation http://www.math.u-bordeaux.fr/~kbelabas/ F-33405 Talence (France) http://pari.math.u-bordeaux.fr/ [PARI/GP] `