ShellVariable(SymbolicVariableName VariableName, IEnumerable <E> Components) { this.VariableName = VariableName; this.Components = rolist(Components); this.Aggregator = Collapse; this.DefaultFormatter = VariableFormatters.ShellFormatter; }
public SymbolicVariable ToVariable(SymbolicVariableName Name) => SymbolicVariable.Define(Name, Components.ToArray());
public V Rename(SymbolicVariableName NewName) => new V(NewName, Components);
SymbolicVariable(SymbolicVariableName VariableName, IEnumerable <E> Components) { this.VariableName = VariableName; this.Components = rolist(Components); }
SymbolicVariable(SymbolicVariableName Name) { this.VariableName = Name; this.Components = ReadOnlyList <E> .Empty; }
public static V Define(SymbolicVariableName Name) => new V(Name);
public static V Define(SymbolicVariableName Name, params E[] Components) => new V(Name, Components);
/// <summary> /// Constructs a named <see cref="SymbolicVariable"/> value from a component sequence /// </summary> /// <param name="name">The name of the resulting variable </param> /// <param name="components">The components that determine the value of the variable</param> /// <returns></returns> public static SymbolicVariable symbolic(SymbolicVariableName name, params ISymbolicExpression[] components) => SymbolicVariable.Define(name, components);
/// <summary> /// Constructs a named <see cref="SymbolicVariable"/> with no component value /// </summary> /// <param name="name">The name of the resulting variable</param> /// <returns></returns> public static SymbolicVariable symbolic(SymbolicVariableName name) => SymbolicVariable.Define(name);