pedro

12 Reputation

One Badge

18 years, 323 days

MaplePrimes Activity


These are replies submitted by pedro

Hello Jason, Thanks for your help, but let me insist. Will your approach work if the student answer in nonsense in terms of Maple synthax? For instance, if the student is supposed to enter something like "+3*", wouldn't myParser(convert($RESPONSE,string)); throw an exception? pedro
Hello Jason, Thanks for your help, but let me insist. Will your approach work if the student answer in nonsense in terms of Maple synthax? For instance, if the student is supposed to enter something like "+3*", wouldn't myParser(convert($RESPONSE,string)); throw an exception? pedro
Hi Jason, Most clicks i don't see any node, just the 'false' message in the java console. From time to time i get a square shaped red node. Even more scarcely i get a blue line segment joinning the nodes. It's all very unpredictable. Are there restrictions on graph sketching i can read about, somewhere? I doubt it's just that. I' ve created a simple anonymous assignment, named 'sketch', with a single sketch question at http://maple.di.fc.ul.pt/classes/calculo/ Does the applet work for you? It doesn't for me! thanks for your help, pedro
Hi Jason, Most clicks i don't see any node, just the 'false' message in the java console. From time to time i get a square shaped red node. Even more scarcely i get a blue line segment joinning the nodes. It's all very unpredictable. Are there restrictions on graph sketching i can read about, somewhere? I doubt it's just that. I' ve created a simple anonymous assignment, named 'sketch', with a single sketch question at http://maple.di.fc.ul.pt/classes/calculo/ Does the applet work for you? It doesn't for me! thanks for your help, pedro
Hi, I get that problem with the following QuBank: thanks for your concern pedro %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% qu.1.topic=Sample@ qu.1.1.mode=sketch@ qu.1.1.algorithm=$a = int(rand(2,6)); $a2 = int($a*$a); $xmax = int(2*$a); $x = sqrt(2)*$a; @ qu.1.1.question=

Sketch the graph of the function y = x 2 ${a2} .

@ qu.1.1.gridlines=4@ qu.1.1.axes=-${xmax},${xmax},-4,4@ qu.1.1.axes.labeled=true@ qu.1.1.axes.background=\@ImageBase @ qu.1.1.example=-${x},2 -${a},1 0,0 ${a},1 ${x},2@ qu.1.1.answer=check(( goes_through($1,0,0) && goes_through($1,-${a},1) && goes_through($1,${a},1) ) && ( slope_at($1,0) == 0 ) && ( decreasing(restriction($1,-${x},0)) ) && ( increasing(restriction($1,0,${x})) ) && ( concave_up($1) ))@ qu.1.1.info=@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% which was generated by latex2edu engine at BrownStone, from the following .tex file %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Sample .tex doc and questions taken from MapleTA and EDU examples. % MapleTA: www.maplesoft.com % EDU: www.brownstone.net/support/edu/authoring/ % Thu Dec 1 15:56:51 EST 2005 % \documentclass[12pt]{article} \usepackage{ed} % Optionally set the location for graphics files on the Maple T.A. system. % \setImageBase{../classes/MapleTAclassname/images_folder/} \begin{document} \begin{topic}{Sample} % MapleTA % Sketch question asks for points to connect to form a requested graph. \begin{question}{sketch} \code{$a = int(rand(2,6)); $a2 = int($a*$a); $xmax = int(2*$a); $x = sqrt(2)*$a;} \qutext{Sketch the graph of the function $y=x^2/\var{a2}$.} \begin{sketch}[4]{-\var{xmax}}{\var{xmax}}{-4}{4} \example{-\var{x},2 -\var{a},1 0,0 \var{a},1 \var{x},2} \check{goes_through(0,0) && goes_through(-\var{a},1) && goes_through(\var{a},1)} \check{slope_at(0) == 0} \check[-\var{x},0]{decreasing} \check[0,\var{x}]{increasing} \check{concave_up} \end{sketch} \end{question} \end{topic} \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Hi, I get that problem with the following QuBank: thanks for your concern pedro %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% qu.1.topic=Sample@ qu.1.1.mode=sketch@ qu.1.1.algorithm=$a = int(rand(2,6)); $a2 = int($a*$a); $xmax = int(2*$a); $x = sqrt(2)*$a; @ qu.1.1.question=

Sketch the graph of the function y = x 2 ${a2} .

@ qu.1.1.gridlines=4@ qu.1.1.axes=-${xmax},${xmax},-4,4@ qu.1.1.axes.labeled=true@ qu.1.1.axes.background=\@ImageBase @ qu.1.1.example=-${x},2 -${a},1 0,0 ${a},1 ${x},2@ qu.1.1.answer=check(( goes_through($1,0,0) && goes_through($1,-${a},1) && goes_through($1,${a},1) ) && ( slope_at($1,0) == 0 ) && ( decreasing(restriction($1,-${x},0)) ) && ( increasing(restriction($1,0,${x})) ) && ( concave_up($1) ))@ qu.1.1.info=@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% which was generated by latex2edu engine at BrownStone, from the following .tex file %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Sample .tex doc and questions taken from MapleTA and EDU examples. % MapleTA: www.maplesoft.com % EDU: www.brownstone.net/support/edu/authoring/ % Thu Dec 1 15:56:51 EST 2005 % \documentclass[12pt]{article} \usepackage{ed} % Optionally set the location for graphics files on the Maple T.A. system. % \setImageBase{../classes/MapleTAclassname/images_folder/} \begin{document} \begin{topic}{Sample} % MapleTA % Sketch question asks for points to connect to form a requested graph. \begin{question}{sketch} \code{$a = int(rand(2,6)); $a2 = int($a*$a); $xmax = int(2*$a); $x = sqrt(2)*$a;} \qutext{Sketch the graph of the function $y=x^2/\var{a2}$.} \begin{sketch}[4]{-\var{xmax}}{\var{xmax}}{-4}{4} \example{-\var{x},2 -\var{a},1 0,0 \var{a},1 \var{x},2} \check{goes_through(0,0) && goes_through(-\var{a},1) && goes_through(\var{a},1)} \check{slope_at(0) == 0} \check[-\var{x},0]{decreasing} \check[0,\var{x}]{increasing} \check{concave_up} \end{sketch} \end{question} \end{topic} \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Hello,

I got very interested in your discussion. Let me make a simple question.

Assume MyApplet is a java applet implementing the interface gateway.question.random.AlgorithmicFunction.
Assume the method public String eval(String[ ] args) returns a string with a maple expression which gets determined through some interaction with the user.

Question:
Embedding MyApplet in a Maple TA question with ID q.x.y something like ... q.x.y.question= Give your answer through the following applet: <p> <center> <applet code= "mypackage.MyApplet"   archive= "myjar.jar" width="350" height="350" > <param ... > ... </applet> </center> @ q.x.y.mode=Maple@ q.x.y.maple=evalb(java("MyApplet"));@ ... would Maple TA evaluate the Maple expression produced by the student through MyApplet?
When Maple TA evaluates java("MyApplet") it must somehow find or create an object "O" of type "MyApplet" to which pass the call > O.eval(new String[]{}).
Then my question is: What does Maple TA to find such an object "O"?

Sorry if i'm saying stupid things, but i'm just starting in Maple TA. Thanks in advance!
pedro
Hello,

I got very interested in your discussion. Let me make a simple question.

Assume MyApplet is a java applet implementing the interface gateway.question.random.AlgorithmicFunction.
Assume the method public String eval(String[ ] args) returns a string with a maple expression which gets determined through some interaction with the user.

Question:
Embedding MyApplet in a Maple TA question with ID q.x.y something like ... q.x.y.question= Give your answer through the following applet: <p> <center> <applet code= "mypackage.MyApplet"   archive= "myjar.jar" width="350" height="350" > <param ... > ... </applet> </center> @ q.x.y.mode=Maple@ q.x.y.maple=evalb(java("MyApplet"));@ ... would Maple TA evaluate the Maple expression produced by the student through MyApplet?
When Maple TA evaluates java("MyApplet") it must somehow find or create an object "O" of type "MyApplet" to which pass the call > O.eval(new String[]{}).
Then my question is: What does Maple TA to find such an object "O"?

Sorry if i'm saying stupid things, but i'm just starting in Maple TA. Thanks in advance!
pedro
Page 1 of 1