GP in your browser

Help / Community
  Mailing Lists
  Ateliers PARI/GP

  Contributed GP scripts

  Latest Changes
  Version Control
  Coding Guidelines

Tests & benchmarks
  Coverage Report
  Doc Coverage
  Refcards test

  WWW Stats

Run PARI/GP in your browser
Stable Version | Development version | WebAssembly Version

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.)


  • ?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)
  • ploth(x=1,100,[sqrt(2/(Pi*x)),besselj(0,x),-sqrt(2/(Pi*x))])
  • ploth(x=0,2*Pi,[sin(2*x),cos(3*x)],1)
  • 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, rnfkummer(bnrinit(K,1))
  • 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)
  • E=ellinit("11a1");L=lfuninit(E,[0,100]); ploth(x=0,100,lfunhardy(L,x))
  • 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))))

PARI is compiled using emscripten. Enter \v for version information.

PARI/GP Development
Last Modified: 2019-02-08 15:06:33
Copyleft © 2003-2018 the PARI group.