write output of for loop in pari to file

asked 2016-02-07 20:36:16 -0600

Dianbin Bao gravatar image

updated 2016-03-08 14:02:17 -0600

FrédéricC gravatar image

Hi all,

I would like to write the output of a for loop in Pari to a file named 'foo', However the output of a for loop has no numbering contrast with other output. If I look at the numbers labeling the outputs before and after the for loop and use that number in the following command

\w n foo

Then what I get in foo is 0. What happened and how can this be fixed?

edit retag flag offensive close merge delete