hermann on Mon, 01 Jan 2024 18:27:52 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: gp_oeis_search (Search integer sequence specified by short PARI/GP script on oeis.org) |
Dear Karim, On 2024-01-01 15:14, Karim Belabas wrote:
I stored that GP script on x86_64 Ubuntu 22.04 desktop system and it just worked.Dear Hermann, Another interesting option is to do it all from gp: oeis(v)= { my(s = ""); for (i=1, #v, s = concat(s, Str(v[i]","))); extern(Str("$BROWSER https://oeis.org/search?q=", s)) } v = vector(40, i, qfbclassno(-4*i)); /* some sequence of interest */ oeis(v);I happen to have a BROWSER environment variable, but you could of coursereplace $BROWSER by a hardcoded path to your favourite browser.
But the aarch64 GP runs into an error, although it does show the correct page in firefox.
What might be the problem? pi@raspberrypi5:~ $ BROWSER=firefox gp oeis.gp Reading GPRC: /etc/gprc GPRC Done. GP/PARI CALCULATOR Version 2.15.4 (released) arm64 running linux (aarch64/GMP-6.2.1 kernel) 64-bit version compiled: Dec 9 2023, gcc version 12.2.0 (Debian 12.2.0-14) threading engine: pthread (readline v8.2 enabled, extended help enabled) Copyright (C) 2000-2022 The PARI GroupPARI/GP is free software, covered by the GNU General Public License, and comes
WITHOUT ANY WARRANTY WHATSOEVER. Type ? for help, \q to quit. Type ?18 for how to get moral (and possibly technical) support. parisizemax = 2000011264, primelimit = 500000, nbthreads = 4 *** syntax error, unexpected ']': [GFX1- *** ]:glxtest:DRMrendernodenotclearlydetecta *** ^---------------------------------------- Regards, Hermann.