2020年4月5日日曜日

200405

PARI


Ubuntu で使用する方法

①Ubuntu にinstall

$ sudo apt install pari-gp

②起動し、計算してみる。

$ gp
Reading GPRC: /etc/gprc ...Done.

                  GP/PARI CALCULATOR Version 2.9.4 (released)
          amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit version
        compiled: Dec 19 2017, gcc version 7.3.0 (Ubuntu 7.3.0-1ubuntu1)
                           threading engine: pthread
                 (readline v7.0 enabled, extended help enabled)

                     Copyright (C) 2000-2017 The PARI Group

PARI/GP is free software, covered by the GNU General Public License, and comes 
WITHOUT ANY WARRANTY WHATSOEVER.

Type ? for help, \q to quit.
Type ?15 for how to get moral (and possibly technical) support.

parisize = 8000000, primelimit = 500000, nbthreads = 12
? N=40; x='x+O('x^N); Vec(x^2/(1-3*x-2*x^2+3*x^3-x^4))
%1 = [1, 3, 11, 36, 122, 408, 1371, 4599, 15437, 51804, 173860, 583476, 1958173, 6571695, 22054863, 74016936, 248403622, 833651844, 2797766831, 9389410251, 31511212505, 105752809368, 354910389192, 1191092559048, 3997351239929, 13415260479675, 45022116630931, 151095909691404, 507083532136978, 1701791326380624, 5711275430972547, 19167254258959359, 64326023191818277, 215880543126836532, 724503188418240620, 2431459836191899452, 8160070279223488277, 27385501487926378407, 91906768702068654039]
? 

0 件のコメント:

コメントを投稿

注: コメントを投稿できるのは、このブログのメンバーだけです。