Make sage script in notes/design.rs work with sage 3.9.

Sage is now using python3.
This commit is contained in:
Michele Orrù 2019-11-28 15:57:35 +01:00
parent 1a2e9f3af8
commit c9d17f6ab7
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@
//! y = psqrt(rhs)
//! p = ec(x, y) * g1_h(param)
//! if (not p.is_zero()) and (p * r).is_zero():
//! print "g1 generator: %s" % p
//! print("g1 generator: {}".format(p))
//! break
//! Fqx.<j> = PolynomialRing(Fq, 'j')
//! Fq2.<i> = GF(q^2, modulus=j^2 + 1)
@ -57,7 +57,7 @@
//! if rhs.is_square():
//! y = psqrt(rhs)
//! p = ec2(Fq2(x), y) * g2_h(param)
//! if (not p.is_zero()) and (p * r).is_zero():
//! print "g2 generator: %s" % p
//! if not p.is_zero() and (p * r).is_zero():
//! print("g2 generator: {}".format(p))
//! break
//! ```