15. Maple
T.A.
.qu 形式 key=value
CAS変数x,$n
qu.1.topic=Exported
Questions@
qu.1.1.type=formula@
// Question
タイプ
qu.1.1.name=Integral
-‐ Maple
Formula
@
//
問題名
qu.1.1.question=<p>What
is
the
integral
of
$fdisp with
respect
to
x?</p>@ //
問題文
qu.1.1.maple=evalb(($ANSWER)-‐($RESPONSE)=0);@//
採点方法
qu.1.1.maple_answer=$ans@ //
正解
qu.1.1.mode=Maple@ //
解答方法
qu.1.1.comment=<p>The
correct
answer
is
$ansdisp</p>@ //
フィードバック文字列
qu.1.1.hint.1=<p>hint1
test</p>@ //
ヒント
qu.1.1.hint.1.name=hint1@
qu.1.1.solution=@
qu.1.1.algorithm=$n
=
range(2,9);$ans=
maple(“x^$n”);$f
=
maple(“diff($ans,x)”);$fdisp=
maple(“printf(
MathML[ExportPresentation]($f))”);$ansdisp=
maple(“printf(
MathML[ExportPresentation]($ans))”);@ //
ランダム化
qu.1.2.type=formula@
…
16. Moodle
Moodle
XML
形式
CAS文字列x,@x@
<quiz>
<question
type="category">
<category>
<text>Exported
Questions</text>
</category>
</question>
<question type="stack">
//
Question-‐Type
<name>
<text>Integral -‐Maple Formula</text>
//
問題名
</name>
<questiontext format="html">
<text><![CDATA[<p>What is the
integral of
@Sfdisp@
with
respect to
x?</p><p>[[input:ans1]]</p><div>[[validation:ans1]]</div>]]></text>
</questiontext> //
問題文
<generalfeedbackformat="html">
<prt>
/
<nam
<val
<aut
<fee
<te
</fe
<nod
<na
<an
<sa
<ta
<te
<qu
<tr
<tr
<tr
17. Maple
T.A.
とSTACKのCAS比較
Maple
T.A.
$m=range(1,6);
$n=range(1,6);
condition:ne($m,$n);
$f=maple(“int (
1/($m*x-‐$n),x)”);
STACK
m:0
n:0
dummy:while(m=n)
do
(m:rand_with_step(1,6,1),
n:rand_with_step(1,6,1))
f:integrate(1/(m*x-‐n),
x)
2015-‐08-‐31数理解析研究所 Maple
T.A.
理工系学部での基礎教育 17
18. 開発したツールの仕様
• コマンドライン,
標準入出力
• 入力 Maple
T.A.
の .qu 形式
• Question
type
を
Maple-‐graded,
Formula,
Numeric
に限定
• (その他,
アドホックな条件多数)
• 出力 STACK-‐type
question
のMoodle
XML
形式
• 不足する情報は決め打ちのデフォルト値で埋める
• key-‐value
list
を,
あらかじめ人間が与えた key
同士,
value
同士の対応表に従って変換する
• CAS文法の完全な変換はあきらめて,
コメント化する.
一部のみ自動変換.
大部分は手動で変換.
19.
20. Maple
T.A.の構造
• Maple
T.A.
ß à Quiz
Activity(+LMS)
• Maple-‐graded
Question
Type
ßà STACK
Question
Type
• Question
Type
とは,
選択,
自由記述,
穴埋め,
CAS
• Maple-‐Graded
Question
Type
はMoodle
でいう
Calculation
Quiz
Type
に STACK を継ぎ足したかの
ような形
21. 変換ツールの対応する
Maple
T.A.
Question
Type
Maple T.A. Question
Type 対応
Question
Designer △ 原理的には可能だが,
実装は先頭の問題-‐解
答のみ
Maple-‐graded ○
Formula ○
Numeric ○ Calculated,
Calculated Simple
question
typeで
対応可能な場合も
Multiple
Choice × 原理的には可能だが未実装.
Multichoice,
Calculated
Multichoice question
type
で可能な場
合も
Multiple
Selection × 原理的には可能だが未実装.
Multichoice,
Calculated
Multichoice question
type
で可能な場
合も
Essay × Essay
question
type
または Assignment
Activity
で対応か