Is it possiable to display a matrix in an inline question?

<p>If been able, in the other types of questions to use the commands;</p>
<table>
<tbody>
<tr>
<td align="right">$D</td>
<td>=</td>
<td>maple(&quot;Matrix([[$eig1,0,0],[0,$eig2,0],[0,0,$eig2]])&quot;)</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td align="right">$display1</td>
<td>=</td>
<td>maple(&quot;printf(MathML[ExportPresentation]($D))&quot;)</td>
</tr>
</tbody>
</table>
<p>to display a matrix. However in an inline question this doesn't work. i've also tried copying the htlm from the equation editor over and this doesn't work either. Does anyone know away around this problem?</p>
<p>Regards</p>
<p>Jim Hitchman</p>

Sorry about that, it should

Sorry about that, it should read:

I'vebeen able,in other types of questions to use the commands;

$D = maple("Matrix([[$eig1,0,0],[0,$eig2,0],[0,0,$eig2]])");

$display1 = maple("printf(MathML[ExportPresentation]($D))");

to display a matrix. However this doesn't seem to work in an inline question. I've also tried copying the htlm from the equation editor over and this doesn't work either. Does anyone know away around this problem?

 

Regards

Jim Hitchman

Clarification please.

I tried it with the MapleTA 2.51 editor and got this source.  It dispalys the

matrix. 

 

Which version of MapleTA are you using?

 

mode=Inline@
name=Try 1@
algorithm=$eig1 = range(-9,9,2);
$eig2 = range(-9,9,2);
$eig3 = range(-9,9,2);
$D = maple("Matrix([[$eig1,0,0],[0,$eig2,0],[0,0,$eig2]])");
$display1 = maple("printf(MathML[ExportPresentation]($D))");@
weighting=1,1@
numbering=alpha@
part.1.name=$eig2@
part.1.answer.units=@
part.1.numStyle=thousands scientific  arithmetic@
part.1.editing=useHTML@
part.1.showUnits=false@
part.1.question=(Unset)@
part.1.mode=Numeric@
part.1.grading=exact_value@
part.1.negStyle=minus@
part.1.answer.num=$eig1@
part.2.name=$eig2@
part.2.answer.units=@
part.2.numStyle=thousands scientific  arithmetic@
part.2.editing=useHTML@
part.2.showUnits=false@
part.2.question=(Unset)@
part.2.mode=Numeric@
part.2.grading=exact_value@
part.2.negStyle=minus@
part.2.answer.num=$eig1@
question=   

    <p style="margin-top: 0">
      What are the eigenvalues for $display1 ?
    </p>
    <p>
      Eigenvalue 1 is <1>.
    </p>
    <p>
      Eigenvalue 2 is <2>
    </p>
@
 

 

 

I'm using Maple TA 2.5.1

I'm using Maple TA 2.5.1 aswell.

I've used you're source but

I've used you're source but am still having the same problem, intead of displaying the matrix it adds another algorithm in. In this case it add $display = null and now instead of displaying the matrix I just get (n)(u)(l)(l). Ive tried deleting it but it just puts it back in! It seem as tho the command $display1 = maple("printf(MathML[ExportPresentation]($D)") doesn't work in an inline question. Did you get the same problem?

It is inline.

I specifically created an inline question to test this.  It works on my system.

What type of system are you using?

 

I am using SUSE 10.2 for MapleTA 2.51.  It is necessary to set up a vertual frame buffer (VFB)

or some other mechanism for the graphics there.  That was a really painful

job.

I'm using XP and Maple TA

I'm using XP and Maple TA 2.51.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}