Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 17 for Fraction (0.031 sec.)
9.5. fractions --- 有理数 — Python 3.6.5 ドキュメント 15346
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... リ » 9. 数値と数学モジュール » 9.5. fractions --- 有理数 ¶ ソースコード: Lib/fractions.py fract ... ons モジュールは有理数計算のサポートを提供します。 Fraction インスタンスは一対の整数、他の有理数、または文字列 ... から生成されます。 class fractions. Fraction ( numerator=0 , denominator=1 ) ¶ class ... fractions. Fraction ( other_fraction ) class fractions. Fra ...
https://man.plustar.jp/python/library/fractions.html - [similar]
9.7. statistics --- 数理統計関数 — Python 3.6.5 ドキュメント 9259
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ( ... 1 , 21 ), F ( 5 , 3 ), F ( 1 , 3 )]) Fraction(13, 21) >>> from decimal import Decimal as D >>> m ... 果やありえない結果が返ることがあります。 Decimal と Fraction がサポートされています: >>> from decimal import De ...
https://man.plustar.jp/python/library/statistics.html - [similar]
What's New In Python 3.1 — Python 3.6.5 ドキュメント 8707
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ショナルな step 引数を取るようになり、そして数え方に fractions.Fraction や decimal.Decimal を含む任意の数値型を使 ... 1 , 0 , 0 ])) [2, 3, 5, 7] >>> c = count ( start = Fraction ( 1 , 2 ), step = Fraction ( 1 , 6 )) >>> [ next ( ... c ), next ( c ), next ( c ), next ( c )] [Fraction(1, 2), Fraction(2, 3), Fraction(5, 6), Fraction(1, ...
https://man.plustar.jp/python/whatsnew/3.1.html - [similar]
9.1. numbers --- 数の抽象基底クラス — Python 3.6.5 ドキュメント 8638
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 合にはややこしいことになるかもしれません。たとえば、 fractions.Fraction は hash() を以下のように実装しています: ... 's hash to avoid a high collision rate on # simple fractions. return hash (( self . numerator , self . denomin ... する支援関数を定義することは役に立ちます。たとえば、 fractions.Fraction では次のようなものを利用しています: def ... def forward ( a , b ): if isinstance ( b , ( int , Fraction )): return monomorphic_operator ( a , b ) elif isi ...
https://man.plustar.jp/python/library/numbers.html - [similar]
15. 浮動小数点演算、その問題と制限 — Python 3.6.5 ドキュメント 8414
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... できません。基数 2 では、1/10 は循環小数 (repeating fraction) となります 0.000110011001100110011001100110011001 ... の計算を実装しています。 別の正確な計算方法として、 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]
4. 組み込み型 — Python 3.6.5 ドキュメント 8293
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... se 数値型におけるゼロ: 0 , 0.0 , 0j , Decimal(0) , Fraction(0, 1) 空のシーケンスまたはコレクション: '' , () , ... (標準ライブラリには、その他の数値型、分数を保持する fractions や、ユーザ定義の精度の浮動小数点数を保持する deci ... 下の書式となります: [ sign ] [ '0x' ] integer [ '.' fraction ] [ 'p' exponent ] sign は必須ではなく、 + と - の ... どちらかです。 integer と fraction は 16 進数の文字列で、 exponent は 10 進数で符号も ...
https://man.plustar.jp/python/library/stdtypes.html - [similar]
What's New in Python 2.6 — Python 3.6.5 ドキュメント 8242
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... への変換が出来ます。Python 2.6 は単純な有理数クラス Fractionfractions モジュールに追加しています。( Rationa ... l ではなく Fraction なのは、 numbers.Rational と名前が衝突するのを避け ... 。 R5RS Scheme 仕様の Scheme's number datatypes 。 fractions モジュール ¶ 数値型階層を埋めるべく、 fractions モ ... 似しか出来ない 2/3 のような数を正確に表現出来ます。 Fraction のコンストラクタは 2 つの Integral 値を取り、それら ...
https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
What's New In Python 3.2 — Python 3.6.5 ドキュメント 8173
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ributed by Michael Foord in bpo-9110 .) decimal と fractions ¶ Mark Dickinson は、異なる数値データの型が実際の ... スキームを作り上げました ( bpo-8188 ): assert hash ( Fraction ( 3 , 2 )) == hash ( 1.5 ) == \ hash ( Decimal ( " ... ートされたので、 Decimal オブジェクトを直接 float や fractions.Fraction と比較出来ます ( bpo-2531 and bpo-8188 ) ... 。 同じ変更が fractions.Fraction にもなされたので、 from_float() も from_ ...
https://man.plustar.jp/python/whatsnew/3.2.html - [similar]
2. 字句解析 — Python 3.6.5 ドキュメント 8000
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... float | exponentfloat pointfloat ::= [ digitpart ] fraction | digitpart "." exponentfloat ::= ( digitpart | po ... oat ) exponent digitpart ::= digit (["_"] digit )* fraction ::= "." digitpart exponent ::= ("e" | "E") ["+" | ...
https://man.plustar.jp/python/reference/lexical_analysis.html - [similar]
9.6. random --- 擬似乱数を生成する — Python 3.6.5 ドキュメント 7948
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... できるような、あらゆる型を使用できます (int、float、fraction を含みますが、decimal は除きます)。 バージョン 3.6 ... 再現性について 9.6.7. 例とレシピ 前のトピックへ 9.5. fractions --- 有理数 次のトピックへ 9.7. statistics --- 数理 ...
https://man.plustar.jp/python/library/random.html - [similar]
PREV 1 2 NEXT