class_group 0.6.1

Rust library for building IQC: cryptography based on class groups (Cl) of imaginary quadratic orders
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Function: elltamagawa
Section: elliptic_curves
C-Name: elltamagawa
Prototype: G
Help: elltamagawa(E): E being an elliptic curve over a number field,
 returns the global Tamagawa number of the curve.
Doc:
 The object $E$ being an elliptic curve over a number field, returns the global
 Tamagawa number of the curve (including the factor at infinite places).
 \bprog
 ? e = ellinit([1, -1, 1, -3002, 63929]); \\ curve "90c6" from elldata
 ? elltamagawa(e)
 %2 = 288
 ? [elllocalred(e,p)[4] | p<-[2,3,5]]
 %3 = [6, 4, 6]
 ? vecprod(%)  \\ since e.disc > 0 the factor at infinity is 2
 %4 = 144
 @eprog