{"id":705,"date":"2015-02-05T15:14:53","date_gmt":"2015-02-05T15:14:53","guid":{"rendered":"http:\/\/www.numbas.org.uk\/numbas\/?p=655"},"modified":"2015-02-05T15:14:53","modified_gmt":"2015-02-05T15:14:53","slug":"a-new-part-type-matrix-entry","status":"publish","type":"post","link":"https:\/\/www.numbas.org.uk\/theme-testing\/blog\/2015\/02\/a-new-part-type-matrix-entry\/","title":{"rendered":"A new part type: matrix entry"},"content":{"rendered":"<p>We&#8217;ve got a pretty big new feature for Numbas this week &#8211; a whole new part type! The\u00a0<em>matrix entry<\/em> part asks the student to enter a matrix.<\/p>\n<p>In the past, we&#8217;ve hacked together questions where we ask the student to enter a matrix by putting a load of gapfills in a table. That was very laborious to set up, and the user experience for the student wasn&#8217;t particularly great.<\/p>\n<p>The matrix entry part is meant to make all this a lot smoother &#8211; you give a JME matrix variable as the correct answer, and the student is shown a (optionally resizable) grid of cells to enter their answer.<\/p>\n<p>It works like this:<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-656\" src=\"http:\/\/www.numbas.org.uk\/wp-content\/uploads\/2015\/02\/numbas-matrix-part.gif\" alt=\"numbas matrix part\" width=\"500\" height=\"236\" \/><\/p>\n<p>The student\u00a0picks the size of their answer, then enters numbers in each of the cells. It&#8217;s marked as correct if\u00a0the matrix they give exactly matches the one you give.<\/p>\n<p>If you want, you can lock the size of the answer matrix, so\u00a0the student doesn&#8217;t have to be shown the size picker interface. That looks like this:<img loading=\"lazy\" class=\"aligncenter size-full wp-image-657\" src=\"http:\/\/www.numbas.org.uk\/wp-content\/uploads\/2015\/02\/numbas-matrix-entry-no-size.png\" alt=\"numbas matrix entry no size\" width=\"269\" height=\"85\" \/><\/p>\n<p>There are a few other options:<\/p>\n<ul>\n<li>You can award the marks proportionate to the number of correct cells, instead of a simple pass\/fail.<\/li>\n<li>You can mark cells as correct if they&#8217;re within a\u00a0given margin of error\u00a0of the correct answer.<\/li>\n<li>The precision restriction options from the number entry part are also available here.<\/li>\n<li>You can allow the student to enter their answers as fractions (this is also available for number entry parts now)<\/li>\n<\/ul>\n<p>You can see all that in action in <a href=\"https:\/\/numbas.mathcentre.ac.uk\/exam\/1731\/matrix-entry-part-demo\/\">this demo exam I created<\/a>, containing a few simple-ish matrix entry questions. And of course, there&#8217;s <a href=\"http:\/\/numbas-editor.readthedocs.org\/en\/latest\/question-parts.html#matrix-entry\">documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve got a pretty big new feature for Numbas this week &#8211; a whole new part type! The\u00a0matrix entry part asks the student to enter a matrix. In the past, we&#8217;ve hacked together questions where we ask the student to enter a matrix by putting a load of gapfills in a table. That was very [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/www.numbas.org.uk\/theme-testing\/wp-json\/wp\/v2\/posts\/705"}],"collection":[{"href":"https:\/\/www.numbas.org.uk\/theme-testing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.numbas.org.uk\/theme-testing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.numbas.org.uk\/theme-testing\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.numbas.org.uk\/theme-testing\/wp-json\/wp\/v2\/comments?post=705"}],"version-history":[{"count":0,"href":"https:\/\/www.numbas.org.uk\/theme-testing\/wp-json\/wp\/v2\/posts\/705\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.numbas.org.uk\/theme-testing\/wp-json\/wp\/v2\/media?parent=705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.numbas.org.uk\/theme-testing\/wp-json\/wp\/v2\/categories?post=705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.numbas.org.uk\/theme-testing\/wp-json\/wp\/v2\/tags?post=705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}