Skip to content

Commit

Permalink
Merge pull request #817 from sys27/use-new-array-init-syntax
Browse files Browse the repository at this point in the history
Use C# 12 collection expressions syntax.
  • Loading branch information
sys27 authored Nov 16, 2024
2 parents d0a18c0 + 583bec8 commit 22c8c20
Show file tree
Hide file tree
Showing 64 changed files with 65 additions and 65 deletions.
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Abs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Abs : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Abs(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Abs(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Abs"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Add.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Add : BinaryExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new Add(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Ceil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Ceil : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Ceil(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Ceil(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Ceil" /> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/ComplexNumbers/Conjugate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Conjugate : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Conjugate(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Conjugate(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Conjugate"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/ComplexNumbers/Im.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Im : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Im(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Im(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Im"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/ComplexNumbers/Phase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Phase : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Phase(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Phase(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Phase"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/ComplexNumbers/Re.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Re : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Re(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Re(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Re"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/ComplexNumbers/Reciprocal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Reciprocal : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Reciprocal(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Reciprocal(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Reciprocal"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/ComplexNumbers/ToComplex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ToComplex : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new ToComplex(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new ToComplex(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="ToComplex"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Div.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Div : BinaryExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new Div(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Exp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Exp : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Exp(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Exp(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Exp"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Fact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Fact : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Fact(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Fact(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Fact"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Floor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Floor : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Floor(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Floor(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Floor"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Frac.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Frac : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Frac(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Frac(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Frac"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Arcosh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Arcosh : InverseHyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Arcosh(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Arcosh(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Arcosh"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Arcoth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Arcoth : InverseHyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Arcoth(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Arcoth(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Arcoth"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Arcsch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class Arcsch : InverseHyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Arcsch(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Arcsch(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Arcsch"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Arsech.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Arsech : InverseHyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Arsech(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Arsech(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Arsech"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Arsinh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Arsinh : InverseHyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Arsinh(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Arsinh(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Arsinh"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Artanh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Artanh : InverseHyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Artanh(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Artanh(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Artanh"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Cosh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Cosh : HyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Cosh(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Cosh(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Cosh"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Coth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Coth : HyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Coth(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Coth(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Coth"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Csch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Csch : HyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Csch(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Csch(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Csch"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Sech.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Sech : HyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Sech(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Sech(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Sech"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Sinh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Sinh : HyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Sinh(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Sinh(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Sinh"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Hyperbolic/Tanh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Tanh : HyperbolicExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Tanh(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Tanh(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Tanh"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Lb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class Lb : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Lb(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Lb(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Lb"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Lg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Lg : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Lg(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Lg(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Lg"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Ln.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Ln : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Ln(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Ln(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Ln"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Log : BinaryExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new Log(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Matrices/CrossProduct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class CrossProduct : BinaryExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new CrossProduct(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Matrices/Determinant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Determinant : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Determinant(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Determinant(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Determinant"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Matrices/DotProduct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class DotProduct : BinaryExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new DotProduct(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Matrices/Inverse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Inverse : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Inverse(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Inverse(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Inverse"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Matrices/Transpose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Transpose : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Transpose(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Transpose(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Transpose"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Mul.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Mul : BinaryExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new Mul(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Pow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Pow : BinaryExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new Pow(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Root.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Root : BinaryExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new Root(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Round.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Round : DifferentParametersExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new Round(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Sign.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Sign : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Sign(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Sign(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Sign"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Sqrt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Sqrt : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new Sqrt(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new Sqrt(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="Sqrt"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/Sub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Sub : BinaryExpression
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(
new[] { Variable.X.Name, Variable.Y.Name },
[Variable.X.Name, Variable.Y.Name],
new Sub(Variable.X, Variable.Y));

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/ToBin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class ToBin : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new ToBin(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new ToBin(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="ToBin"/> class.
Expand Down
2 changes: 1 addition & 1 deletion xFunc.Maths/Expressions/ToHex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class ToHex : UnaryExpression
/// <summary>
/// Gets the lambda for the current expression.
/// </summary>
internal static Lambda Lambda { get; } = new Lambda(new[] { Variable.X.Name }, new ToHex(Variable.X));
internal static Lambda Lambda { get; } = new Lambda([Variable.X.Name], new ToHex(Variable.X));

/// <summary>
/// Initializes a new instance of the <see cref="ToHex"/> class.
Expand Down
Loading

0 comments on commit 22c8c20

Please sign in to comment.