예제 #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));
 }