3

gmpy-1.11rc1.win32-py2.6.exe をインストールしましたが、使い方がわかりません。mpz、mpq、mpf などのエクスポートされた関数がいくつか表示されますが、次のような関数を呼び出すにはどうすればよいですかGNU MP C ライブラリの mpz_probab_prime_p()?

Google Codeで gmpy を見ましたが、まだわかりません。gmpy のドキュメントもどこにも見つかりませんでした。ありがとう。

4

4 に答える 4

4

For now the txt file jbochi mentions is all there is -- and unfortunately it's not structured in the terms the OP requires, i.e., showing what underlying GMP functions are used in each gmpy-exposed function or method. If you're a GMP expert you can search the gmpy code here -- specifically in this file, which implements MPZ functionality, you'll see the call you seek at line 1538 (within the is_prime function/method).

I did recently acquire site gmpy.org with the idea of developing better online docs, but haven't gotten started yet (of course I could equally well use the wiki pages at gmpy's google code hosting site) -- as always in open source, volunteers are welcome!-)

于 2010-01-16T16:02:22.457 に答える
4

ドキュメントはこちらにあります

于 2010-01-16T14:12:58.263 に答える
3

GMPY2 のドキュメントは ReadTheDocs にあります。インストール手順と API リファレンスがあります。

于 2013-02-17T07:36:41.283 に答える
1

これも役に立つかもしれません:

>>> import(gmpy)
>>> help(gmpy)
于 2013-07-21T13:27:53.243 に答える