1) Function TransformationCurves( C : y 2 = f ( x ) ).
2) Computation of the roots of f.
3) Choose a root of f.
4) a ← f ( a ) = 0 .
5) Compute: F = x 2 g + 2 f ( 1 + a x x ) .
6) C ′ = Hyperelliptic(F).
7) Return C ′ .