Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 17 for fractions (0.029 sec.)
9.5. fractions --- 有理数 — Python 3.6.5 ドキュメント 15277
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... リ » 9. 数値と数学モジュール » 9.5. fractions --- 有理数 ¶ ソースコード: Lib/fractions.py fracti ... 数、他の有理数、または文字列から生成されます。 class fractions. Fraction ( numerator=0 , denominator=1 ) ¶ class ... fractions. Fraction ( other_fraction ) class fractions. Fraction ( float ) class fractions. Fraction ( de ... cimal ) class fractions. Fraction ( string ) 最初のバージョンは numerator ...
https://man.plustar.jp/python/library/fractions.html - [similar]
9.7. statistics --- 数理統計関数 — Python 3.6.5 ドキュメント 9242
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... これらの関数は int , float , decimal.Decimal そして fractions.Fraction をサポートします。他の型 (算術型及びそれ以 ... ean ([ - 1.0 , 2.5 , 3.25 , 5.75 ]) 2.625 >>> from fractions import Fraction as F >>> mean ([ F ( 3 , 7 ), F ( ... 4.5" ), D ( "41.75" )]) Decimal('24.815') >>> from fractions import Fraction as F >>> pvariance ([ F ( 1 , 4 ), ... 5" ), D ( "41.75" )]) Decimal('31.01875') >>> from fractions import Fraction as F >>> variance ([ F ( 1 , 6 ), ...
https://man.plustar.jp/python/library/statistics.html - [similar]
9.1. numbers --- 数の抽象基底クラス — Python 3.6.5 ドキュメント 9138
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 合にはややこしいことになるかもしれません。たとえば、 fractions.Fraction は hash() を以下のように実装しています: d ... 's hash to avoid a high collision rate on # simple fractions. return hash (( self . numerator , self . denomina ... する支援関数を定義することは役に立ちます。たとえば、 fractions.Fraction では次のようなものを利用しています: def _ ...
https://man.plustar.jp/python/library/numbers.html - [similar]
15. 浮動小数点演算、その問題と制限 — Python 3.6.5 ドキュメント 8811
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... の計算を実装しています。 別の正確な計算方法として、 fractions モジュールが有理数に基づく計算を実装しています (1/ ... >>> format ( 0.1 , '.17f' ) '0.10000000000000001' fractions モジュールと decimal モジュールを使うとこれらの計算 ... に行えます: >>> from decimal import Decimal >>> from fractions import Fraction >>> Fraction . from_float ( 0.1 ) ...
https://man.plustar.jp/python/tutorial/floatingpoint.html - [similar]
9. 数値と数学モジュール — Python 3.6.5 ドキュメント 8379
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... を使った処理 9.4.9. レシピ 9.4.10. Decimal FAQ 9.5. fractions --- 有理数 9.6. random --- 擬似乱数を生成する 9.6. ...
https://man.plustar.jp/python/library/numeric.html - [similar]
What's New in Python 2.6 — Python 3.6.5 ドキュメント 8259
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 来ます。Python 2.6 は単純な有理数クラス Fraction を fractions モジュールに追加しています。( Rational ではなく Fr ... 。 R5RS Scheme 仕様の Scheme's number datatypes 。 fractions モジュール ¶ 数値型階層を埋めるべく、 fractions... それぞれ結果の分数の分子と分母になります。: >>> from fractions import Fraction >>> a = Fraction ( 2 , 3 ) >>> b = ... 分数は浮動小数点数に 正確に 合うように試みられます。 fractions モジュールは、ずっと長い間 Python の Demo/classes/ ...
https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
What's New In Python 3.2 — Python 3.6.5 ドキュメント 8259
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ributed by Michael Foord in bpo-9110 .) decimal と fractions ¶ Mark Dickinson は、異なる数値データの型が実際の値 ... ートされたので、 Decimal オブジェクトを直接 float や fractions.Fraction と比較出来ます ( bpo-2531 and bpo-8188 )。 ... 同じ変更が fractions.Fraction にもなされたので、 from_float() も from_d ... o-8294 ): >>> from decimal import Decimal >>> from fractions import Fraction >>> Decimal ( 1.1 ) Decimal('1.100 ...
https://man.plustar.jp/python/whatsnew/3.2.html - [similar]
4. 組み込み型 — Python 3.6.5 ドキュメント 8052
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... (標準ライブラリには、その他の数値型、分数を保持する fractions や、ユーザ定義の精度の浮動小数点数を保持する decim ... 複数の数値型 ( int 、 float 、 decimal.Decimal 、 fractions.Fraction を含みます) 間の効率のため、Python の 数値 ... 数はすべての有理数に対し定義されているため、 int と fractions.Fraction のすべてのインスタンスと、 float と decim ... are integers, with n positive. Equivalent to hash(fractions.Fraction(m, n)). """ P = sys . hash_info . modulus ...
https://man.plustar.jp/python/library/stdtypes.html - [similar]
Pythonモジュール索引 — Python 3.6.5 ドキュメント 8052
ナビゲーション 索引 モジュール | Python » 3.6.5 ドキュメント » Pythonモジュール索引 _ | a | b | ... ide control for floating point exception handling. fractions Rational numbers. ftplib FTP protocol client (requ ...
https://man.plustar.jp/python/py-modindex.html - [similar]
9.4. decimal --- 十進固定及び浮動小数点数の算術演算 — Python 3.6.5 ドキュメント 7931
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... mal オブジェクトは一般に、算術演算で浮動小数点数や fractions.Fraction オブジェクトと組み合わせることができません ... ath --- 複素数のための数学関数 次のトピックへ 9.5. fractions --- 有理数 ナビゲーション 索引 モジュール | 次へ | ...
https://man.plustar.jp/python/library/decimal.html - [similar]
PREV 1 2 NEXT