Karmaşık
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
All Implemented Interfaces: com.aspose.ms.System.IEquatable
public class Complex extends Struct<Complex> implements System.IEquatable<Complex>
Bu karmaşık sayı yapısı.
Yapıcılar
| Yapıcı | Açıklama |
|---|---|
| Complex() | |
| Complex(double real, double imaginary) | Yeni bir örnek başlatır Complex yapısını. |
| Complex(Complex c) | Yeni bir örnek başlatır Complex yapısını. |
Alanlar
| Alan | Açıklama |
|---|---|
| SIZE_OF_DOUBLE | double‘ın boyutu. |
| SIZE_OF_COMPLEX | karmaşık’ın boyutu. |
| ZERO | Sıfır karmaşık. |
| ONE | Re(#getRe.getRe/#setRe(double).setRe(double)) ve Im(#getIm.getIm/#setIm(double).setIm(double)) 1’e eşit olan bir karmaşık. |
| I | Im(#getIm.getIm/#setIm(double).setIm(double)) 1’e eşit olan bir i karmaşık. |
Yöntemler
Complex()
public Complex()
Complex(double real, double imaginary)
public Complex(double real, double imaginary)
Yeni bir örnek başlatır Complex yapısını.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| gerçek | double | Gerçek kısım. |
| sanal | double | Sanal kısım. |
Complex(Complex c)
public Complex(Complex c)
Yeni bir örnek başlatır Complex yapısını.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| c | Complex | Karmaşık sayı. |
SIZE_OF_DOUBLE
public static final int SIZE_OF_DOUBLE
double‘ın boyutu.
SIZE_OF_COMPLEX
public static final int SIZE_OF_COMPLEX
karmaşık’ın boyutu.
ZERO
public static final Complex ZERO
Sıfır karmaşık.
ONE
public static final Complex ONE
Re(#getRe.getRe/#setRe(double).setRe(double)) ve Im(#getIm.getIm/#setIm(double).setIm(double)) 1’e eşit olan bir karmaşık.
I
public static final Complex I
Im(#getIm.getIm/#setIm(double).setIm(double)) 1’e eşit olan bir i karmaşık.
to_Complex(double value)
public static Complex to_Complex(double value)
double‘dan Complex‘a açık dönüşüm gerçekleştirir.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| değer | double | Değer. |
Returns: Complex - The result of the conversion.
to_Complex(float value)
public static Complex to_Complex(float value)
float‘dan Complex‘a açık dönüşüm gerçekleştirir.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| değer | float | Değer. |
Returns: Complex - The result of the conversion.
op_Equality(Complex a, Complex b)
public static boolean op_Equality(Complex a, Complex b)
== operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: boolean - Operatörün sonucu.
op_Inequality(Complex a, Complex b)
public static boolean op_Inequality(Complex a, Complex b)
!= operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: boolean - Operatörün sonucu.
op_UnaryNegation(Complex a)
public static Complex op_UnaryNegation(Complex a)
- operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
Returns: Complex - The result of the operator.
op_Addition(Complex a, Complex b)
public static Complex op_Addition(Complex a, Complex b)
- operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: Complex - The result of the operator.
op_Addition(Complex a, double s)
public static Complex op_Addition(Complex a, double s)
- operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
Returns: Complex - The result of the operator.
op_Addition(double s, Complex a)
public static Complex op_Addition(double s, Complex a)
- operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | double | s değeri. |
| a | Complex | “a” karmaşık. |
Returns: Complex - The result of the operator.
op_Subtraction(Complex a, Complex b)
public static Complex op_Subtraction(Complex a, Complex b)
- operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: Complex - The result of the operator.
op_Subtraction(Complex a, double s)
public static Complex op_Subtraction(Complex a, double s)
- operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
Returns: Complex - The result of the operator.
op_Subtraction(double s, Complex a)
public static Complex op_Subtraction(double s, Complex a)
- operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | double | s değeri. |
| a | Complex | “a” karmaşık. |
Returns: Complex - The result of the operator.
op_Multiply(Complex a, Complex b)
public static Complex op_Multiply(Complex a, Complex b)
* operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: Complex - The result of the operator.
op_Multiply(double s, Complex a)
public static Complex op_Multiply(double s, Complex a)
* operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | double | s değeri. |
| a | Complex | “a” karmaşık. |
Returns: Complex - The result of the operator.
op_Multiply(Complex a, double s)
public static Complex op_Multiply(Complex a, double s)
* operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
Returns: Complex - The result of the operator.
op_Division(Complex a, Complex b)
public static Complex op_Division(Complex a, Complex b)
/ operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: Complex - The result of the operator.
op_Division(Complex a, double s)
public static Complex op_Division(Complex a, double s)
/ operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
Returns: Complex - The result of the operator.
op_Division(double s, Complex a)
public static Complex op_Division(double s, Complex a)
/ operatörünü uygular.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | double | s değeri. |
| a | Complex | “a” karmaşık. |
Returns: Complex - The result of the operator.
add(Complex a, Complex b)
public static Complex add(Complex a, Complex b)
a ve b‘yi toplar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: Complex - The sum complex.
add(Complex a, double s)
public static Complex add(Complex a, double s)
a ve s‘yi toplar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
Returns:
Complex - The complex with its Re increased by s.
add(Complex a, Complex b, Complex[] result)
public static void add(Complex a, Complex b, Complex[] result)
a ve b‘yi toplar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
| result | Complex[] | Sonuç. |
add(Complex a, double s, Complex[] result)
public static void add(Complex a, double s, Complex[] result)
a ve s‘yi toplar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
| result | Complex[] | Sonuç. |
subtract(Complex a, Complex b)
public static Complex subtract(Complex a, Complex b)
a‘dan b‘yi çıkarır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: Complex - The result of subtraction.
subtract(Complex a, double s)
public static Complex subtract(Complex a, double s)
a‘dan s‘yi çıkarır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
Returns: Complex - The result of subtraction.
subtract(double s, Complex a)
public static Complex subtract(double s, Complex a)
a‘dan s‘yi çıkarır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | double | s değeri. |
| a | Complex | “a” karmaşık. |
Returns: Complex - The result of subtraction.
subtract(Complex a, Complex b, Complex[] result)
public static void subtract(Complex a, Complex b, Complex[] result)
a‘dan b‘yi çıkarır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
| result | Complex[] | Sonuç. |
subtract(Complex a, double s, Complex[] result)
public static void subtract(Complex a, double s, Complex[] result)
a‘dan s‘yi çıkarır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
| result | Complex[] | Sonuç. |
subtract(double s, Complex a, Complex[] result)
public static void subtract(double s, Complex a, Complex[] result)
s‘dan a‘yi çıkarır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | double | s değeri. |
| a | Complex | “a” karmaşık. |
| result | Complex[] | Sonuç. |
multiply(Complex a, Complex b)
public static Complex multiply(Complex a, Complex b)
a‘yı b ile çarpar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: Complex - The result of multiplication.
multiply(Complex a, double s)
public static Complex multiply(Complex a, double s)
a‘yı s ile çarpar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
Returns: Complex - The result of multiplication.
multiply(Complex a, Complex b, Complex[] result)
public static void multiply(Complex a, Complex b, Complex[] result)
a‘yı b ile çarpar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
| result | Complex[] | Sonuç. |
multiply(Complex a, double s, Complex[] result)
public static void multiply(Complex a, double s, Complex[] result)
a‘yı s ile çarpar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
| result | Complex[] | Sonuç. |
divide(Complex a, Complex b)
public static Complex divide(Complex a, Complex b)
a‘yı b‘ye böler.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: Complex - The result of division.
divide(Complex a, double s)
public static Complex divide(Complex a, double s)
a‘yı s‘ye böler.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
Returns: Complex - The result of division.
divide(double s, Complex a)
public static Complex divide(double s, Complex a)
a‘yı s‘ye böler.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | double | s değeri. |
| a | Complex | “a” karmaşık. |
Returns: Complex - The result of division.
divide(Complex a, Complex b, Complex[] result)
public static void divide(Complex a, Complex b, Complex[] result)
a‘yı b‘ye böler.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
| result | Complex[] | Sonuç. |
divide(Complex a, double s, Complex[] result)
public static void divide(Complex a, double s, Complex[] result)
a‘yı s‘ye böler.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| s | double | s değeri. |
| result | Complex[] | Sonuç. |
divide(double s, Complex a, Complex[] result)
public static void divide(double s, Complex a, Complex[] result)
s‘yi a‘ya böler.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | double | s değeri. |
| a | Complex | “a” karmaşık. |
| result | Complex[] | Sonuç. |
negate(Complex a)
public static Complex negate(Complex a)
a‘yı negatif yapar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
Returns: Complex - The result of negation.
approxEqual(Complex a, Complex b)
public static boolean approxEqual(Complex a, Complex b)
Yaklaşık eşitliği kontrol eder.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
Returns: boolean - Yaklaşık eşitlik sonucu.
approxEqual(Complex a, Complex b, double tolerance)
public static boolean approxEqual(Complex a, Complex b, double tolerance)
Yaklaşık eşitliği kontrol eder.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
| b | Complex | b karmaşık. |
| tolerans | double | Tolerans. |
Returns: boolean - Yaklaşık eşitlik sonucu.
parse(String s)
public static Complex parse(String s)
Belirtilen s değerini bir Complex nesnesine ayrıştırır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | java.lang.String | s değeri. |
Returns: Complex - The complex number.
tryParse(String s, Complex[] result)
public static boolean tryParse(String s, Complex[] result)
Belirtilen s değerini bir Complex nesnesine ayrıştırmayı dener.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | java.lang.String | s değeri. |
| result | Complex[] | Sonuç. |
Returns: boolean - True, eğer karmaşık sayı ayrıştırıldıysa.
sqrt(Complex a)
public static Complex sqrt(Complex a)
a‘nın karekökünü alır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
Returns: Complex - The square root.
log(Complex a)
public static Complex log(Complex a)
a‘nın logaritmasını alır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
Returns:
Complex - The log of a.
exp(Complex a)
public static Complex exp(Complex a)
e’yi a kadar yükseltir.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
Returns:
Complex - e raised by a.
sin(Complex a)
public static Complex sin(Complex a)
a‘nın sinüsünü alır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
Returns:
Complex - Sin of a.
cos(Complex a)
public static Complex cos(Complex a)
a‘nın kosinüsünü alır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
Returns:
Complex - Cos of a.
tan(Complex a)
public static Complex tan(Complex a)
a‘nın tanjantını alır.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| a | Complex | “a” karmaşık. |
Returns:
Complex - Tan of a.
isEquals(Complex obj1, Complex obj2)
public static boolean isEquals(Complex obj1, Complex obj2)
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| obj1 | Complex | |
| obj2 | Complex |
Returns: boolean
multiply_internalize(double s)
public Complex multiply_internalize(double s)
s ile çarpar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| s | double | s değeri. |
Returns: Complex - The result of multiplication.
getRe()
public final double getRe()
Gerçek kısmı alır.
Returns: double - gerçek kısmı.
setRe(double value)
public final void setRe(double value)
Gerçek kısmı ayarlar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| değer | double | gerçek kısmı. |
getIm()
public final double getIm()
Sanal kısmı alır.
Returns: double - imajiner kısım.
setIm(double value)
public final void setIm(double value)
Sanal kısmı ayarlar.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| değer | double | imajiner kısmı. |
set(double re, double im)
public final Complex set(double re, double im)
Değerleri ayarlar ve kendisini döndürür.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| re | double | Re değeri. |
| im | double | Im değeri. |
Returns: Complex - The object itself.
getMagnitude()
public final double getMagnitude()
Büyüklüğü alır.
Değer: Büyüklük.
Returns: double - büyüklük.
getPhase()
public final double getPhase()
Fazı alır.
Değer: Faz.
Returns: double - faz.
getSquaredMagnitude()
public final double getSquaredMagnitude()
Karesi alınmış büyüklüğü alır.
Değer: Karesel büyüklük.
Returns: double - karesel büyüklük.
hashCode()
public int hashCode()
Bu örnek için bir karma kodu döndürür.
Returns: int - Bu örnek için bir karma kodu, karma algoritmaları ve hash tablosu gibi veri yapılarında kullanılmaya uygundur.
equals(Object obj)
public boolean equals(Object obj)
Belirtilen Object‘in bu örnek ile eşit olup olmadığını belirler.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| obj | java.lang.Object | Bu Object bu örnek ile karşılaştırmak için. |
Returns:
boolean - true eğer belirtilen Object bu örnek ile eşitse; aksi takdirde false.
toString()
public String toString()
Bu örneği temsil eden bir String döndürür.
Returns: java.lang.String - Bu örneği temsil eden bir String.
deepClone()
public final Complex deepClone()
Bu örneği kopyalar.
Returns: Complex - A clone of this complex.
CloneTo(Complex that)
public void CloneTo(Complex that)
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| that | Complex |
Clone()
public Complex Clone()
Returns: Complex