| Bill Allombert on Thu, 16 Apr 2026 11:10:30 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: hitting major roadblocks |
On Wed, Apr 15, 2026 at 05:21:19PM -0700, American Citizen wrote:
> Hi
>
> While I have a gp pari file with two read statements embedded in the top of
> the file, and they work great, everything falls apart, after running the
> "gp2c-run" command and the read statements seem to be causing major blowups
> in the my_gp_pari_program.gp.run file.
>
> Sample script:
>
> read("pf1000"); // HUGE DATA VECTOR
>
> read("ellpool.gp"); // sophisticated elliptic curve program to create a
> rational lattice of points on an given elliptic curve to a set height
You should do something like
pf1000 = read("pf1000");
\r ellpool.gp
That is, do not mix data and code:
-- use \r to read GP code
-- use data=read("datafile") to read data
Do not write GP code in your data file, that is write
[1,2,3]
and not
data=[1,2,3]
If you need to read several data, you can use readvec.
Cheers,
Bill