@EntilzaV Sorry. I can't get this url to work. Could you try again please?
jmtrik
@jmtrik
Posts made by jmtrik

RE: Clipping of Fractions when generating MathML Multiple Choice Interval Notation questions

RE: Clipping of Fractions when generating MathML Multiple Choice Interval Notation questions
You should be able to drag a file into the editor window and it should then place a hyperlink to the file in the post. You may need to wait a few seconds if it is a large file. You could also try using https://www.file.io/ or equivalent service and pasting a link here.

RE: Clipping of Fractions when generating MathML Multiple Choice Interval Notation questions
Can you export the question and post it so I can see if I can replicate you issue?

Transforming Online Education  Maple T.A. and Möbius User Summit, London, 7th & 8th September
Hi everyone in the Maple T.A. and Möbius Community. I want to kick off the inspiration section of the community with a great opportunity to learn from experts and other innovators in the Online Education space. With this in mind I am very pleased to announce that I’ll be presenting at the Maple T.A. and Möbius User Summit in London this September. It’ll be a great opportunity to get the community together – and a chance to meet directly with Maplesoft product teams and management.
Themes will include:
· The Successful Delivery of Online Education
· Best Practices for Digital Testing and Assessment
· Creating Engaging and Interactive Online STEM Content
Full details are here: www.maplesoft.com/londonsummit
If you’re interested in attending let me know – I can provide community members with a discount for 35% off the registration fee.
There’s an Early Bird offer running till 30th June too, so if you book fast, you can benefit from both discounts. 
RE: Clipping of Fractions when generating MathML Multiple Choice Interval Notation questions
Have you tried the built in Maple MathML generator? If you maple expression is stored in $expr then try this.
$expr="sin(x)/x"; #exprD=maple("printf(MathML[ExportPresentation]($expr))");

Generating latex from expressions
Maple has a latex function that can generate latex from a maple expression. This feature can be very useful in Maple T.A..
To generate latex from your expression you can use the following code in your algorithm section.
$expr=maple("printf(latex(sin(x)/x^2, output = string))");
This results in
To use the latex in your question text you need to wrap it in the latex delimiters.
What is the differential of \( $expr \) ?
The result will be

RE: 'Wildcard' in Grading Code
@Metahofzicht I've added a few cases.
You should receive
 1.0 for H[m]*sqrt(3)/4*a^2*L*rho or where sqrt(3)/4*a^2 has been replaced by A
 0.5 if you answer H[m]*a^2*L*rho 0.5 if you answer H[m]*C*a^2*L*rho, where C is any constant (you could set this to give the grade 0.25)
 0 otherwise
I used this algorithm, where I've defined the grading code. Note I have different cases for C=1 and C= any other constant.
$TA = "H[m]*sqrt(3)/4*a^2*L*rho"; $TApartial1="H[m]*a^2*L*rho"; $subslist = "A=sqrt(3)/4*a^2"; #define grading code function $gc=maple(" proc(TA,TApartial1,subslist,RESPONSE) if evalb(simplify(algsubs(subslist,RESPONSE) = TA)) then 1.0; elif evalb(simplify(algsubs(subslist,RESPONSE) = TApartial1)) then 0.5; elif evalb(simplify(RESPONSE = 0)) then 0.0; elif type(simplify(algsubs(subslist,RESPONSE)/TApartial1),constant) then 0.25; else 0; end if ;end proc; ");
And the I have used a Maplegraded question with Maplesyntax and the following grading code.
$gc($TA,$TApartial1,$subslist,$RESPONSE)
Here is the Maple T.A. question Partgradfactorexample2.zip

RE: 'Wildcard' in Grading Code
@Metahofzicht Is this for a different question? Is this another example of partial expression grading?

RE: 'Wildcard' in Grading Code
@Metahofzicht This code should work but depending on your use case you may need to tweak it a bit. Often the easiest way to think about grading code is through the unit tests. For example, here are the unit tests that I used to test this grading code. What ever code I write must give the correct grade for the all the unit tests.
Unit Tests
Teacher's Answer Student's Answer Expected Grade
k*rho/E*sqrt(2*L^2/S) k*rho/E*sqrt(2*L^2/S) 1.0
k*rho/E*sqrt(2*L^2/S) k*rho/E*sqrt(L^2/S) 0.5
k*rho/E*sqrt(2*L^2/S) 0 0If you add some other cases to this list, we can further refine the grading code.

RE: 'Wildcard' in Grading Code
Hi @Metahofzicht. Here is a way to do this in Maple. I have attached a working version for Maple T.A..
fact:=k*rho/E; TA:=fact*sqrt(2*L^2/S); if TA = RESPONSE then 1.0; elif algsubs(fact = 1,RESPONSE) <> RESPONSE then 0.5; else 0; end if