Karim Belabas on Mon, 01 Jan 2024 19:21:30 +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)
|
- To: hermann@stamm-wilbrandt.de
- Subject: Re: gp_oeis_search (Search integer sequence specified by short PARI/GP script on oeis.org)
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Mon, 1 Jan 2024 19:21:24 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1704133286; c=relaxed/relaxed; bh=8xQIuT9VucG8icinF547javIC9CIGiON+UUavQLj3mE=; h=DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; b=n7SnQteJXvykAf44WW9bXDn8mPBuGoFqDfgW/pjOQyU+Ys8PZCx52HS4ZlQsSrku0mgiHq4Ej3lUfCKVBH+HHfVPou/fgbvLvU3INGHLZs1JvJKtvGJTJ0XvAScK9bVkEjp4x87LZXOFvcwwMKe+EHVEOFVEXVgGBtK9lHNBpBLdUzA10HcKX9RsMMZ/mhHt1OnVUHmdhkkg7VJ8Qr+CaB/wEa6MH0LtnksHc6QdNtNNB6cSuEmHDNkrN+nz/hrlkQDmqxh9DgfXUdi0SfNJwU9SCNYYSUdcPOSGf25znL2ITXCnK5HuxSCaJSK5dru8D7+Bte5weoW4HL//W7J723xvo86J1E/5Fpl6rbJXDW+/O3MyDGElG3Uw1YVjXGCKC+mLZ/jtO3Cx8hZ9UrxPWtddACTgDIHlH5M9C8Jz9D+/rWKXrzNSuWZj8e464ytPZBq1EO3p99mDKoClG0IKHgkH3mreDEsp3Z74CkSgV9uRzAWXyuOsBf7J0Sh/Wq+K8jzvoAXz9OCwIOBdfCxRiVho/DTuG6GSSMKLuiRBFmehHiY28Xks8ONgWsdsVZS/RsTOf6HCWqWDcR+kQAmiyv4SzhgwZQtsdCx6wlY7oTPgiDC67HlUZOL/G54KIpt71SvAZPXh/aSc/WlUstiYbPW4uMsu7A83jzGcLFJPQtw=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1704133286; cv=none; b=ZBgjmiudk+GRUJzM8gyIwQqSf1ESnQpa8I3rDEsNs27//f9uY/AVkaR+8us5/xd+pWTr+mz0b69Vi+E08KWaIEXqborZaYjUx8OFEi5B0HxqDOlNi0l8bFy9AT7603VvPxquiVGhVcafS8NpD7yEgk9wxwEqEDClDF9vo5N4PTHQhmmKkhLBbc1wOw+m5VPdtmepzovdWqmzha0QwDvxoa+tci6oigkzC5R2zzo3ZhJXCadSFxuWUdugHIELUmwfc74tIq7jwGhkhNTDvHGb+IelhQ2X8RZKXjQ02NNaJymaW96KT6XQ1U4QqL+xzmxZSJLnM0MM6Iv86KpHqSDD5o/apItbzmE9w/cZOt7wTtrsihXrbU7rnPwuuH3/n/OXtSTSfLByMkH1KGqyFSIlR35HoDnabsAf9OMyX/jKuyAU9Iq047NZEjFANk9FIR9w/VKj8F8PwAi9UVClp3SJB/dpCnuZjItaZZzEc1LK+AdeD/kmH4bwNJBjeGWPv6Cvlcpc3fMcefmlkA3hekGXBIk11iXRFqv9iNoWLKWbw5N795ap95sCPyWALHqQLBiEklhUvT5uHDuBY6/NmkHDyYPtDotx0lgtSn+ViAQbRtlSEoXhIdJ2hNTOf5OiuunCdXdUqxahSy2/HobSMwEr+U1BO32zlwDi+ZIxd5JIyr4=
- Authentication-results: smail; arc=none
- Cc: pari-users@pari.math.u-bordeaux.fr
- Delivery-date: Mon, 01 Jan 2024 19:21:30 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1704133286; bh=8xQIuT9VucG8icinF547javIC9CIGiON+UUavQLj3mE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KJLumx3KWkAG2ZNfMp900P25q/J0OnCzy1vNBDuBZb1M7fSGXLkSKq3+UvhEuv/Iq twUiWtVx3HUNcRvtLCi5wzy22HXNF4YXQ9iDDjmMCMNJo+BygZ1SCHjP7HlUjjZl0d ZwWHYUh4iwwTKdDsa37iwrZ+igHiaXsuJ4qBGfy62luKlROknGlRjqHLJ3YMhwLjAu y/h8vHBJcom+z0jBcX7gmLgxh3+zOUIcqKVabbP+UPKa0MkHK/283PMMS0/SIe2qUZ exquJtu39l2N5hvRFbNMik+e729WCxNkmx18z6QcfmMQV1xqjCW30eHTh23CSADDSQ BCBbac/EYTlFR03OqfwbeWxjy2Lqwe8GqPrWnpgmzDPpPlfqkiOsOc6fW1pGEevLPc u/5/N/qEFYJauF0q6g8McPeODoTR47j5T5KBm+Rrh4hHl10P9A3sM84S2G/zmKxsWB o3zdNFKrPmEPEZuiFmGNpaKpafK0zfypSYmHh24PHSwaqkqCmEHXkoXQtOZnOE1Q95 vXNrNEc9raW5WYgIsXE2h+rCCjH7X5jj/DEmrZBEzBfc75zlha40A/9HmXzfMOro93 /aSRWhFHvEn6G7AdCjImLjsErRSFRiAxCYyST08pEN0MHgxPaiXS54lbg0VYWXo4c1 mU0kdDAcp4wA2ytcRjd45brk=
- In-reply-to: <bb6af425a0b26bda5e0b45107ed90ee6@stamm-wilbrandt.de>
- Mail-followup-to: hermann@stamm-wilbrandt.de, pari-users@pari.math.u-bordeaux.fr
- References: <c993f70d496bf8608461d8c78505c945@stamm-wilbrandt.de> <ZZLI32mJuNvkcVJq@math.u-bordeaux.fr> <bb6af425a0b26bda5e0b45107ed90ee6@stamm-wilbrandt.de>
* hermann@stamm-wilbrandt.de [2024-01-01 18:27]:
> Dear Karim,
>
> On 2024-01-01 15:14, Karim Belabas wrote:
> > 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 course
> > replace $BROWSER by a hardcoded path to your favourite browser.
> >
> I stored that GP script on x86_64 Ubuntu 22.04 desktop system and it just
> worked.
>
> But the aarch64 GP runs into an error, although it does show the correct
> page in firefox.
> What might be the problem?
Sorry. Just use 'system' instead of 'extern': ѕtandard error/output are
simply printed (with extern, stdout is run as gp commands).
Another possibility in this context is to use 'externstr'; then standard
error is still printed but standard output is returned as a gp vector of
strings.
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/