Method | Description | |
---|---|---|
Abs ( ) : double |
Computes the absolute value of the current scalar.
|
|
AbsSquare ( ) : double |
Computes the absolute value squared of the current scalar.
|
|
Add ( |
Scalar + Scalar
|
|
Arccos ( ) : |
Computes the inverse cosine of the scalar (arccos).
|
|
Arccot ( ) : |
Computes the inverse cotangent of the scalar (arccot).
|
|
Arccsc ( ) : |
Computes the inverse cosecant of the scalar (arccsc).
|
|
Arcsec ( ) : |
Computes the inverse secant of the scalar (arcsec).
|
|
Arcsin ( ) : |
Computes the inverse sine of the scalar (arcsin).
|
|
Arctan ( ) : |
Computes the inverse tangent of the scalar (arctan).
|
|
Arg ( ) : double |
Computes Atan2(imaginary, real), i.e. the angle in the complex (gaussian) plane.
|
|
Clear ( ) : void |
Resets the current value.
|
|
Clone ( ) : |
Copies the current instance.
|
|
ComplexSquare ( ) : |
Computes z^* x z = |z|^2, which is AbsSquare().
|
|
Conjugate ( ) : |
Conjugates the current scalar value, i.e. switches the sign of the imaginary value.
|
|
Copy ( ) : |
Copies the current instance.
|
|
Cos ( ) : |
Takes the cosine of the scalar.
|
|
Cot ( ) : |
Takes the co-tangent (cos / sin) of the scalar.
|
|
Deserialize ( byte content ) : |
Transforms a binary representation into a new instance.
|
|
Divide ( |
Scalar / Scalar
|
|
Equals ( object obj ) : bool |
Is the given object equal to this.
|
|
Exp ( ) : |
Takes the exponential of the scalar.
|
|
Factorial ( ) : |
Computes the factorial of the scalar.
|
|
GetHashCode ( ) : int |
Computes the hashcode of the value inside.
|
|
GetIntegerOrThrowException ( String argumentName, String functionName ) : int |
Gets the integer value or throws an exception if either the imaginary part is not 0 or the real part is not integer.
|
|
GetLengthOfString ( |
Gets the length of the output in the given parse context.
|
|
Ln ( ) : |
Takes the natural logarithm of the scalar.
|
|
Log ( ) : |
Takes the natural logarithm of the scalar.
|
|
Log ( double basis ) : |
Takes the general logarithm of the scalar.
|
|
Log10 ( ) : |
Takes the base-10 logarithm of the scalar.
|
|
Mod ( |
Scalar % Scalar
|
|
Multiply ( |
Scalar * Scalar
|
|
Pow ( |
Raises the scalar to the specified power.
|
|
Pow ( |
Scalar ^ Scalar
|
|
ScalarValue ( ) : System |
Creates a new empty scalar value.
|
|
ScalarValue ( |
Creates a new scalar value from the given one.
|
|
ScalarValue ( bool boolean ) : System |
Creates a new scalar value from a boolean, i.e. 1.0 or 0.0.
|
|
ScalarValue ( double real ) : System |
Creates a new scalar value which is real.
|
|
ScalarValue ( double real, double imag ) : System |
Creates a new scalar value with the given complex parameters.
|
|
Serialize ( ) : byte[] |
Transforms the instance into a binary representation.
|
|
Sign ( ) : |
Gives the signum of the scalar.
|
|
Sin ( ) : |
Takes the sine of the scalar.
|
|
Sqrt ( ) : |
Takes the square root of the scalar.
|
|
Square ( ) : |
Computes z x z = z^2.
|
|
Subtract ( |
Scalar - Scalar
|
|
Tan ( ) : |
Takes the tangent (sin / cos) of the scalar.
|
|
ToString ( |
Uses the standard string representation.
|
|
ToString ( |
Use this string representation if you have a global exponent like everything is already e5 or similar. In this case the values get multiplied with e-5 for the output.
|
|
operator ( ) : |
a % b.
|
|
operator ( ) : bool |
l != r.
|
Method | Description | |
---|---|---|
RegisterOperators ( ) : void |
Registers all operators that are associated with the scalar.
|
Method | Description | |
---|---|---|
IsPrimeNumber ( int n ) : bool | ||
IsProbablyPrime ( int n, int m, int s, int d, int w ) : bool | ||
PowMod ( int b, int e, int m ) : int |
public static Add ( |
||
left | Must be a scalar. | |
right | Must be a scalar. | |
return |
public Deserialize ( byte content ) : |
||
content | byte | The binary data. |
return |
public static Divide ( |
||
left | Must be a scalar. | |
right | Must be a scalar. | |
return |
public Equals ( object obj ) : bool | ||
obj | object | The compare object. |
return | bool |
public GetIntegerOrThrowException ( String argumentName, String functionName ) : int | ||
argumentName | String | The name of the variable that is requested. |
functionName | String | The name of the function where this is requested. |
return | int |
public GetLengthOfString ( |
||
context | The query context to consider. | |
return |
public Log ( double basis ) : |
||
basis | double | The basis to use for the logarithm. |
return |
public static Mod ( |
||
left | Must be a scalar. | |
right | Must be a scalar. | |
return |
public static Multiply ( |
||
left | Must be a scalar. | |
right | Must be a scalar. | |
return |
public Pow ( |
||
exponent | The exponent for raising the scalar. | |
return |
public static Pow ( |
||
basis | Must be a scalar. | |
exponent | Must be a scalar. | |
return |
public ScalarValue ( |
||
value | Copies the contents of the given value. | |
return | System |
public ScalarValue ( bool boolean ) : System | ||
boolean | bool | True for 1.0, False for 0.0. |
return | System |
public ScalarValue ( double real ) : System | ||
real | double | The real value. |
return | System |
public ScalarValue ( double real, double imag ) : System | ||
real | double | The real part of the complex scalar. |
imag | double | The imaginary part of the complex scalar. |
return | System |
public static Subtract ( |
||
left | Must be a scalar. | |
right | Must be a scalar. | |
return |
public ToString ( |
||
context | The context to use. | |
return | String |
public ToString ( |
||
context | The parse context to use. | |
exponent | The global exponent that is in use. | |
return | String |