Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ImaginaryUnit.cs
1using System.Numerics;
5
7{
11 public class ImaginaryUnit : IConstant
12 {
17 {
18 }
19
23 public string ConstantName => "i";
24
28 public string[] Aliases => null;
29
35 {
36 return i;
37 }
38
39 private static readonly ComplexNumber i = new ComplexNumber(Complex.ImaginaryOne);
40 }
41}
string[] Aliases
Optional aliases. If there are no aliases for the constant, null is returned.
IElement GetValueElement(Variables Variables)
Gets the constant value element.
string ConstantName
Name of the constant
Collection of variables.
Definition: Variables.cs:25
Basic interface for all types of elements.
Definition: IElement.cs:20
Base interface for constants that integrate into the script engine.
Definition: IConstant.cs:10