Top
Back: disc
Forward: CornacchiaModified
FastBack: aksaka_lib
FastForward: crypto_lib
Up: atkins_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.12.2.4 Cornacchia

Procedure from library atkins.lib (see atkins_lib).

Usage:
Cornacchia(d,p);

Return:
x,y such that x^2+d*y^2=p with p prime,
-1, if the Diophantine equation has no solution,
0, if the parameters are wrong selected

Assume:
0<d<p

Example:
 


Top Back: disc Forward: CornacchiaModified FastBack: aksaka_lib FastForward: crypto_lib Up: atkins_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.