Type a GP expression in the third (blue) box then hit
<Shift>-<Enter> or click on the
Evaluate button below it. A trailing semi-colon ; prevents output.
You can assign to variables and define user functions. (Speed is approximately one
fourth of native speed.)
Examples
?eulerphi (short help), ??factor (long help in
new tab),
2*3, 10!, (1+x)^10,
exp(Pi*sqrt(163)),
factor(2^128+1), factor(x^6+I),
intnum(x=-oo,oo,1/(1+x^2)), sumpos(n=1, n^(-3)),
sin(x), ellj(x + O(x^20)),
\p100: change default accuracy to 100 decimal digits
K=bnfinit(x^2+23); (huge: don't forget the ;),
K.clgp
E=ellinit([0,1]*Mod(1,10^50+151)); ellcard(E),
polgalois(x^8-2), ellsearch(11) (loads packages
on demand),
lfun(x^3-2, 2) (Dedekind zeta function from new
Lfun package)
ecm(N, B = 1000!, nb = 100)=
{
for(a = 1, nb,
iferr(ellmul(ellinit([a,1], N), [0,1], B),
E, return(gcd(lift(component(E,2)),N))))
}
ecm(2^101-1)
PARI is compiled using emscripten.
Enter \v for version information.