Accueil › Forums › Programmation WIMS › Programmation d’exercices OEF › Peut-on vérifier une réponse OEF avec maxima ? › Répondre à : Peut-on vérifier une réponse OEF avec maxima ?
Thanks for the hints – I have no objections to integrating some
« native WIMS » with OEF – provided that I understand how to set up the
files and paths, etc. I found that {type=algexp} in my oef script
refers to files located at
scripts/anstype/algexp
scripts/anstype/algexp.input
I copied these two files to a directory anstype/ in the
directory for this class, and renamed them. I don’t seem to
be able to get the OEF system to read them using {type=algexpmynewname}.
However, I removed {type=…} totally, and now seem to have a hack
that works: let WIMS/OEF decide itself what the type is (i.e. use a default
type). Thus, now I have for the following OEF source file:
\title{example 3 pour rapport de bug}
\computeanswer{no}
\format{html}
\precision{1000}
\text{question= maxima(diff((sin(t/8))^2,t)/(sin(t/8))^2;)}
\text{theanswer= maxima( \question, expand;)}
\statement{Repondre a la question svp.}
\answer{1. La reponse ?}{\theanswer}
examples of correct answers:
cos(t/8)/(4*sin(t/8)) good answer.
1/4 * cot(t/8) good answer.
1/4 /tan(t/8) good answer.
0.25/tan(t/8) good answer.
cot(0.125*t)/4 good answer.
examples of wrong answers:
1 /tan(t/8) bad answer, the correct answer is cos(t/8)/(4*sin(t/8)).
cos(t/8) bad answer, the correct answer is cos(t/8)/(4*sin(t/8)).
sin(t) bad answer, the correct answer is cos(t/8)/(4*sin(t/8)).
So far it seems that the default answer type for oef answers is just what I
was looking for – no need for any extra calls to maxima. 🙂 (Maybe the wims
scripts already do this by default?)
Replacing the answer line by
\answer{1. La reponse ?}{\theanswer}{type=default}
gives identical results.
-
Cette réponse a été modifiée le il y a 11 années et 1 mois par
boud. Raison: syntax