úÎ!,‚(Ð@      !"#$%&'()*+,-./0123456789:;<=>?None&'=?@AC'¶regression-simpleClass witnessing that dp has a pair of @s.regression-simpleLike A* but with element in the class definition.regression-simple 3×3 matrix.regression-simple3d vector. Strict triple of @s.-Also used to represent quadratic polynomial: V3 a b c = a x^2 + b x + c. regression-simple 2×2 matrix. regression-simple2d vector. Strict pair of @s.*Also used to represent linear polynomial: V2 a b  = a x + b. regression-simpleInverseregression-simple Determinantregression-simple#Multiplication of different things.regression-simpleIdentityregression-simpleAdditionregression-simpleSolve linear equation.zerosLin (V2 1 2)-2.0regression-simpleSolve quadratic equation.zerosQuad (V3 2 0 (-1)).Right (-0.7071067811865476,0.7071067811865476)zerosQuad (V3 2 0 1)CLeft ((-0.0) :+ (-0.7071067811865476),(-0.0) :+ 0.7071067811865476)&Double root is not treated separately:zerosQuad (V3 1 0 0)Right (-0.0,0.0)zerosQuad (V3 1 (-2) 1)Right (1.0,1.0)regression-simpleFind an optima point.optimaQuad (V3 1 (-2) 0)1.0 compare tozerosQuad (V3 1 (-2) 0)Right (0.0,2.0)regression-simpleLinear regression. The type is  :: [(@, @)] ->   .but overloaded to work with boxed and unboxed Vectors.%let input1 = [(0, 1), (1, 3), (2, 5)] linear input1 V2 2.0 1.0Ilet input2 = [(0.1, 1.2), (1.3, 3.1), (1.9, 4.9), (3.0, 7.1), (4.1, 9.0)] linear input2(V2 2.0063237774030345 0.8868465430016883regression-simpleQuadratic regression. The type is  :: [(@, @)] ->  .but overloaded to work with boxed and unboxed Vectors.%let input1 = [(0, 1), (1, 3), (2, 5)]quadratic input1V3 0.0 2.0 1.0Ilet input2 = [(0.1, 1.2), (1.3, 3.1), (1.9, 4.9), (3.0, 7.1), (4.1, 9.0)]quadratic input2@V3 (-5.886346291028133e-3) 2.0312938469708826 0.8715454176158062.let input3 = [(0, 2), (1, 3), (2, 6), (3, 11)]quadratic input3V3 1.0 0.0 1.999999999999993regression-simple9Do both linear and quadratic regression in one data scan.Ilet input2 = [(0.1, 1.2), (1.3, 3.1), (1.9, 4.9), (3.0, 7.1), (4.1, 9.0)]quadraticAndLinear input2k(V3 (-5.886346291028133e-3) 2.0312938469708826 0.8715454176158062,V2 2.0063237774030345 0.8868465430016883)Bregression-simple 7https://en.wikipedia.org/wiki/Kahan_summation_algorithm$regression-simpleM22 1 2 3 4 `mult` eye @M22M22 1.0 2.0 3.0 4.0   76C        !"#$%&'()*+,-./0123456789:;<=>?@ABCDE,regression-simple-0.1-GL6a92Zl1pz3cG41ASx2cpMath.Regression.Simple IsDoublePairwithDPmakeDP Foldable'foldl'M33V3M22V2InvinvDetdetMultmultEyeeyeAddzeroaddzerosLin zerosQuad optimaQuadlinear quadraticquadraticAndLinear $fAddDouble $fEyeDouble $fDetDouble $fInvDouble$fMultDoubleV2V2$fAddV2$fMultM22M22M22 $fMultM22V2V2$fMultDoubleM22M22$fInvM22$fDetM22$fEyeM22$fAddM22$fMultDoubleV3V3$fAddV3 $fMultM33V3V3$fMultDoubleM33M33$fInvM33$fDetM33$fEyeM33$fAddM33$fFoldable'Vectora$fFoldable'Vectora0$fFoldable'[]a$fIsDoublePair(,)$fIsDoublePairV2$fEqV2$fShowV2$fEqM22 $fShowM22$fEqV3$fShowV3$fEqM33 $fShowM33ghc-prim GHC.TypesDoublebase Data.FoldableFoldableaddKahan