Tonelli-Shanks algorithm: Difference between revisions

m
m (Minor code reformatting.)
m (→‎{{header|Wren}}: Minor tidy)
 
(One intermediate revision by one other user not shown)
Line 1,430:
result = ( result + b ) % modulus;
};
b = ( b *<< 21 ) % modulus;
a >>= 1;
}
Line 4,022:
{{libheader|Wren-dynamic}}
{{libheader|Wren-big}}
<syntaxhighlight lang="ecmascriptwren">import "./dynamic" for Tuple
import "./big" for BigInt
 
var Solution = Tuple.create("Solution", ["root1", "root2", "exists"])
9,476

edits