Skip to content

Matrix input

mkraska edited this page Sep 13, 2021 · 6 revisions

Question variables

M: matrix( [a, b], [c, d] );

HTML template for question text

<table border="0">
 <tbody>
  <tr>
   <td>\( \left[ \begin{array}{c} a & b \\ c & d \end{array} \right] = \) </td>
   <td>[[input:S_M]]</td>
   <td>\(\, optional unit\)</td>
   <td>[[validation:S_M]]</td>
  </tr>
 </tbody>
</table>
<p>[[feedback:M]]</p>

Matrix Feedback

Tryout Space

In order to try code snippets in jsfiddle,

  1. copy the code from the wiki page to the clipboard
  2. follow the link for the JSXGraph version you want to try
  3. Replace the code in the HTML section (contents of <p hidden id="init">) with the content of the clipboard
Clone this wiki locally