Results of 1 - 10 of about 135 for Real (0.005 sec.)
- numbers --- 数の抽象基底クラス — Python 3.14.8 ドキュメント 12227
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » numbers --- 数の抽象基底クラス テーマ 自動 ライト ダーク | numbers --- 数の抽象基底クラス ¶ ソースコード: Li
...この型のサブクラスは複素数を表し、組み込みの complex 型を受け付ける演算を含みます。それらは: complex および bool への変換、 real , imag , + , - , * , / , ** , abs() , conjugate() , == , != です。 - と != 以外の全てのものは抽象メソッドや抽象プロパティで...す。 real ¶ 抽象プロパティ。この数の実部を取り出します。 imag ¶ 抽象プロパティ。この数の虚部を取り出します。 abstractmethod conjugat...e ( ) ¶ 抽象プロパティ。複素共役を返します。たとえば、 (1+3j).conjugate() == (1-3j) です。 class numbers. Real ¶ To Complex , Real adds the operations that work on real numbers. 簡潔に言うとそれらは: float への変換, math.trunc() , ro... - https://man.mtool.work/python/3.14/library/numbers.html
- numbers --- 数の抽象基底クラス — Python 3.14.8 ドキュメント 12227
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » numbers --- 数の抽象基底クラス テーマ 自動 ライト ダーク | numbers --- 数の抽象基底クラス ¶ ソースコード: Li
...この型のサブクラスは複素数を表し、組み込みの complex 型を受け付ける演算を含みます。それらは: complex および bool への変換、 real , imag , + , - , * , / , ** , abs() , conjugate() , == , != です。 - と != 以外の全てのものは抽象メソッドや抽象プロパティで...す。 real ¶ 抽象プロパティ。この数の実部を取り出します。 imag ¶ 抽象プロパティ。この数の虚部を取り出します。 abstractmethod conjugat...e ( ) ¶ 抽象プロパティ。複素共役を返します。たとえば、 (1+3j).conjugate() == (1-3j) です。 class numbers. Real ¶ To Complex , Real adds the operations that work on real numbers. 簡潔に言うとそれらは: float への変換, math.trunc() , ro... - https://man.mtool.work/python/3.14/library/numbers.html
- cmath --- 複素数用の数学関数 — Python 3.14.8 ドキュメント 11975
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » cmath --- 複素数用の数学関数 テーマ 自動 ライト ダーク | cmath --- 複素数用の数学関数 ¶ このモジュールは、複
...e use the sign of zero to distinguish one side of the branch cut from the other: for a branch cut along (a portion of) the real axis we look at the sign of the imaginary part, while for a branch cut along the imaginary axis we look at the sign of the...real part. For example, the cmath.sqrt() function has a branch cut along the negative real axis. An argument of -2-0j is treate...ython complex number z is stored internally using rectangular or Cartesian coordinates. It is completely determined by its real part z.real and its imaginary part z.imag . 極座標 は複素数を表現する別の方法です。極座標では、複素数 z は半径 r と位相角... - https://man.mtool.work/python/3.14/library/cmath.html
- cmath --- 複素数用の数学関数 — Python 3.14.8 ドキュメント 11975
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » cmath --- 複素数用の数学関数 テーマ 自動 ライト ダーク | cmath --- 複素数用の数学関数 ¶ このモジュールは、複
...e use the sign of zero to distinguish one side of the branch cut from the other: for a branch cut along (a portion of) the real axis we look at the sign of the imaginary part, while for a branch cut along the imaginary axis we look at the sign of the...real part. For example, the cmath.sqrt() function has a branch cut along the negative real axis. An argument of -2-0j is treate...ython complex number z is stored internally using rectangular or Cartesian coordinates. It is completely determined by its real part z.real and its imaginary part z.imag . 極座標 は複素数を表現する別の方法です。極座標では、複素数 z は半径 r と位相角... - https://man.mtool.work/python/3.14/library/cmath.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 8653
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...分からメソッドが正しい引数で呼び出されたかどうかを確認するために、そのオブジェクトのメソッドを置き換えることができます: >>> real = SomeClass () >>> real . method = MagicMock ( name = 'method' ) >>> real . method ( 3 , 4 , 5 , key = 'value' ) <MagicMoc...k name='method()' id='...'> モック(上の例では real.method )が利用された場合、どう使われたかを assert できるようにする属性やメソッドがモックにあります。 注釈 この例のような場...ass : ... def method ( self ): ... self . something ( 1 , 2 , 3 ) ... def something ( self , a , b , c ): ... pass ... >>> real = ProductionClass () >>> real . something = MagicMock () >>> real . method () >>> real . something . assert_called_once_wi... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 8484
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...分からメソッドが正しい引数で呼び出されたかどうかを確認するために、そのオブジェクトのメソッドを置き換えることができます: >>> real = SomeClass () >>> real . method = MagicMock ( name = 'method' ) >>> real . method ( 3 , 4 , 5 , key = 'value' ) <MagicMoc...k name='method()' id='...'> モック(上の例では real.method )が利用された場合、どう使われたかを assert できるようにする属性やメソッドがモックにあります。 注釈 この例のような場...ass : ... def method ( self ): ... self . something ( 1 , 2 , 3 ) ... def something ( self , a , b , c ): ... pass ... >>> real = ProductionClass () >>> real . something = MagicMock () >>> real . method () >>> real . something . assert_called_once_wi... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- 複素数オブジェクト — Python 3.14.8 ドキュメント 8328
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 複素数オブジェクト テーマ 自動 ライト ダーク | 複素数オブジェクト ¶ Python's complex
...ions for dealing with complex number objects use structures of this type as input or output values, as appropriate. double real ¶ double imag ¶ The structure is defined as: typedef struct { double real ; double imag ; } Py_complex ; Py_complex _Py_c_...er object from a C Py_complex value. Return NULL with an exception set on error. PyObject * PyComplex_FromDoubles ( double real , double imag ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . Return a new PyComplexObject object from real and imag ....Return NULL with an exception set on error. double PyComplex_RealAsDouble ( PyObject * op ) ¶ 次に属します: Stable ABI . op の実数部分を C の double 型で返します。 If op is not a Python co... - https://man.mtool.work/python/3.14/c-api/complex.html
- 複素数オブジェクト — Python 3.14.8 ドキュメント 8328
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 複素数オブジェクト テーマ 自動 ライト ダーク | 複素数オブジェクト ¶ Python's complex
...ions for dealing with complex number objects use structures of this type as input or output values, as appropriate. double real ¶ double imag ¶ The structure is defined as: typedef struct { double real ; double imag ; } Py_complex ; Py_complex _Py_c_...er object from a C Py_complex value. Return NULL with an exception set on error. PyObject * PyComplex_FromDoubles ( double real , double imag ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . Return a new PyComplexObject object from real and imag ....Return NULL with an exception set on error. double PyComplex_RealAsDouble ( PyObject * op ) ¶ 次に属します: Stable ABI . op の実数部分を C の double 型で返します。 If op is not a Python co... - https://man.mtool.work/python/3.14/c-api/complex.html
- json --- JSON エンコーダーとデコーダー — Python 3.14.8 ドキュメント 7076
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » json --- JSON エンコーダーとデコーダー テーマ 自動 ライト ダーク | json --- JSON エンコーダーとデコ
...する: >>> import json >>> def custom_json ( obj ): ... if isinstance ( obj , complex ): ... return { '__complex__' : True , 'real' : obj . real , 'imag' : obj . imag } ... raise TypeError ( f 'Cannot serialize object of { type ( obj ) } ' ) ... >>> jso...n . dumps ( 1 + 2 j , default = custom_json ) '{"__complex__": true, "real": 1.0, "imag": 2.0}' JSON のデコーディング: >>> import json >>> json . loads ( '["foo", {"bar":["baz", null, 1.0, 2]}]' )...法をカスタマイズする: >>> import json >>> def as_complex ( dct ): ... if '__complex__' in dct : ... return complex ( dct [ 'real' ], dct [ 'imag' ]) ... return dct ... >>> json . loads ( '{"__complex__": true, "real": 1, "imag": 2}' , ... object_hook... - https://man.mtool.work/python/3.14/library/json.html
- 10. 完全な文法仕様 — Python 3.14.8 ドキュメント 6992
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた
...al_expr : | signed_number ! ( '+' | '-' ) | complex_number | strings | 'None' | 'True' | 'False' complex_number : | signed_real_number '+' imaginary_number | signed_real_number '-' imaginary_number signed_number : | NUMBER | '-' NUMBER signed_real_nu...mber : | real_number | '-' real_number real_number : | NUMBER imaginary_number : | NUMBER capture_pattern : | pattern_capture_target pat... - https://man.mtool.work/python/3.14/reference/grammar.html