assertEquals(10, $product->scalar([2, 3], [-1, 4])); $this->assertEquals(-0.1, $product->scalar([1, 4, 1], [-2, 0.5, -0.1])); $this->assertEquals(8, $product->scalar([2], [4])); } }