nyy 发表于 2024-1-8 12:01:55

无心人 发表于 2023-11-27 16:56
9)fold, prod, sum

fold(f, A)


我给你添加一个
\l
打开log记录,把输入、输出都保存到log文件里面,也非常有用

nyy 发表于 2024-1-8 13:20:09

https://spaces.ac.cn/archives/2775/comment-page-1

初试在Python中使用PARI/GP

nyy 发表于 2024-1-8 13:30:16

本帖最后由 nyy 于 2024-1-8 14:04 编辑

关于起始init文件,主要是两个
C:\Program Files (x86)\Pari64-2-15-4\gprc.txt
C:\Program Files (x86)\Pari64-2-15-4\gprc_dft.txt

第一个是修改的配置起始init文件,
第二个是配置文件的参考修改文件。

在第一个文件中加入
log=1
那么将开始记录log

所有记录进入
C:\Program Files (x86)\Pari64-2-15-4\pari.log
这个文件里面

nyy 发表于 2024-1-8 16:02:33

pari/gp支持在线搜索帮助文件了
https://bbs.emath.ac.cn/thread-18897-1-1.html
(出处: 数学研发论坛)

这个也很重要呀

nyy 发表于 2024-1-8 16:14:56

本帖最后由 nyy 于 2024-1-8 16:16 编辑

log
This can be either 0 (off) or 1, 2, 3 (on, see below for the various modes). When logging mode is turned on, gp opens a log file, whose exact name is determined by the logfile default. Subsequently, all the commands and results will be written to that file (see \l). In case a file with this precise name already existed, it will not be erased: your data will be appended at the end.

The specific positive values of log have the following meaning

1: plain logfile

2: emit color codes to the logfile (if colors is set).

3: write LaTeX output to the logfile (can be further customized using TeXstyle).

The default value is 0.

Note. Logging starts as soon as log is set to a nonzero value. In particular, when log is set in gprc, warnings and errors triggered from the rest of the file will be written in the logfile. For instance, on clean startup, the logfile will start by Done. (from the Reading GPRC:...Done. diagnostic printed when starting gp), then the gp header and prompt.

居然能把结果输出成\(\rm\LaTeX\),这软件有牛逼的地方!

http://pari.math.u-bordeaux.fr/dochtml/html/GP_defaults.html

nyy 发表于 2024-1-10 12:19:12

http://pari.math.u-bordeaux.fr/pub/pari/manuals/2.15.4/refcard.pdf

Pari-GP reference card

这个听过吗?

nyy 发表于 2024-1-12 11:22:36

\\ Limit PARI stack size to 400 Mbytes = 4*10^8 bytes
parisizemax = 400M

\\ Set PARI typical stack size to 40 Mbytes = 4*10^7 bytes (will grow as
\\ needed, up to parisizemax)
parisize = 200M


这个是控制内存使用的两个指标!
页: 1 [2]
查看完整版本: PARI/GP的一些笔记