Esempio n. 1
0
 public static ComplexValue Negate(ComplexValue x)
 {
     return(new ComplexValue(Complex.Negate(x.value)));
 }
Esempio n. 2
0
 public static ComplexValue Power(ComplexValue x, ComplexValue exponent)
 {
     return(new ComplexValue(Complex.Pow(x.value, exponent.value)));
 }
Esempio n. 3
0
 public static ComplexValue Divide(ComplexValue x, ComplexValue y)
 {
     return(new ComplexValue(x.value / y.value));
 }
Esempio n. 4
0
 public static ComplexValue Multiply(ComplexValue x, ComplexValue y)
 {
     return(new ComplexValue(x.value * y.value));
 }
Esempio n. 5
0
 public static ComplexValue Subtract(ComplexValue x, ComplexValue y)
 {
     return(new ComplexValue(x.value - y.value));
 }
Esempio n. 6
0
 public static ComplexValue Add(ComplexValue x, ComplexValue y)
 {
     return(new ComplexValue(x.value + y.value));
 }
Esempio n. 7
0
 public static bool TryParse(string text, [MaybeNullWhen(false)] out ComplexValue complexValue)
 {
     return(TryParse(text, null, out complexValue));
 }