Thanks very much, @jmtrik . I thought that plotmaple() was only used for plots and did not know that it could be used more generally so I did not attempt to use it.
jgray
@jgray
Posts made by jgray

RE: Broken MathML

Broken MathML
I am trying to display a graph (i.e., a set of vertices and edges) in a question using
$g=maple("printf(MathML[ExportPresentation]($graph))");
where $graph is defined using
$graph=maple("GraphTheory[DrawGraph](GraphTheory[Graph](directed, Matrix([[0, 1, 1, 1], [1, 0, 1, 1], [1, 1, 0, 1], [1, 1, 1, 0]])))");
However, when I preview the question only a brokenMML image is displayed. I suspect that this type of object cannot be represented in MathML. If this is true, how can I embed the image in the problem given that I ultimately want the matrix to be randomized and therefore do not want a static image?

Adaptive Hints
I have read the doumentation on adding generic hints or feedback to a problem. However, what I would like to do is create adaptive hints that are triggered when a student enters a particular type of incorrect answer, in order to give custom feedback. I am primarily authoring Maplegraded and Mathematical Formula type questions.
Can I do this in the Grading Code? Could someone illustrate this with an example?