Skip to content

Commit bb712c0

Browse files
committed
fix of the linear evaluation
1 parent 2767436 commit bb712c0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • Data_science/Mathematica/Math/Math/Algebra/Polynomial

Data_science/Mathematica/Math/Math/Algebra/Polynomial/Polynomial.vb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,18 @@ Namespace LinearAlgebra
9898
End Get
9999
End Property
100100

101+
Sub New()
102+
End Sub
103+
104+
''' <summary>
105+
''' y = a + bx
106+
''' </summary>
107+
''' <param name="a"></param>
108+
''' <param name="b"></param>
109+
Sub New(a As Double, b As Double)
110+
Factors = {a, b}
111+
End Sub
112+
101113
<MethodImpl(MethodImplOptions.AggressiveInlining)>
102114
Public Overrides Function Evaluate(ParamArray x() As Double) As Double
103115
Return F(x:=x(Scan0))

0 commit comments

Comments
 (0)