From 9c512d815c1166c623e04fd7c0df7840f15b17d6 Mon Sep 17 00:00:00 2001 From: Vincent Tam Date: Mon, 16 Oct 2023 01:39:03 +0200 Subject: [PATCH] Update matrices.js fixed typo in `p.set` --- examples/matrices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/matrices.js b/examples/matrices.js index 753cdba69a..95ec0c0779 100644 --- a/examples/matrices.js +++ b/examples/matrices.js @@ -60,7 +60,7 @@ console.log() // this will mutate the matrix console.log('set and get a value') const p = math.matrix([[1, 2], [3, 4]]) -p.set([0, 10], 5) +p.set([0, 1], 5) print(p) // [[1, 5], [3, 4]] const p21 = p.get([1, 0]) print(p21) // 3