~smitop/eigen.fun

2d9ba0f1ce4c45434f9ec010d9170cf86b0eb716 — Smitty 3 years ago e9d9d71
math.js
2 files changed, 6 insertions(+), 0 deletions(-)

M public/index.html
M public/script.js
M public/index.html => public/index.html +2 -0
@@ 173,6 173,8 @@
                }
            }
        </style>
        <!-- TODO: compile JS properly -->
        <script src="https://unpkg.com/mathjs@9.3.2/lib/browser/math.js"></script>
        <script src="/script.js"></script>
    </head>
    <body>

M public/script.js => public/script.js +4 -0
@@ 487,6 487,10 @@ function execAction(id, slow) {
    stateUpdated();
}

function matrix() {
    return math.matrix([[state.ihat[0], state.jhat[0]], [state.ihat[1], state.jhat[1]]]);
}

document.addEventListener("DOMContentLoaded", () => {
    can = document.getElementById("transform-canvas");
    ctx = can.getContext("2d");