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