mschneider

60 Reputation

6 Badges

7 years, 325 days

MaplePrimes Activity


These are questions asked by mschneider

How do I get a system solve to dispaly an ordered triple and not {x=ans, y=ans, z=ans}

for instance

sys := { z = 4, x+y= 10, x-y = 5 };
L:=solve(sys, {x,y,z} );

displays

{x=7.5, y=2.5, z=4}

I want 

{7.5,2.5,4}

When I execute the following code in Maplesoft on my computer, there are no problems.  However when I execute the same code in mapleTA occasionally Maple only finds a single input value corresponding with h_given.  Anybody have any idea what is going on?

Basically I have a function, f,  that I am only interested in plotting and analyzing real-valued inputs, t, from =0 to 100 (or so).  At some point I assign an output value, h_given, and I wish to find the correlated real-valued inputs.  From the graph you can clearly see that there are 2 inputs, however the script occassionally only produces 1 output. (when running on mapleTA).

Thanks in advance,

with(Optimization):
with(plots):
restart:
randomize():
a := MapleTA:-Builtin:-range(1800, 2300, 100):
b := (1/10)*MapleTA:-Builtin:-range(4, 8, 1):
timeT := MapleTA:-Builtin:-range(70, 100, 10):
f := -t*(b*t-b*timeT)^2*(cos(.15*t+4)^2-3)/a:
maxs := NLPSolve(f, t = 0 .. timeT, maximize):
maxim := maxs[1]:
graph := plot(f, t = 0 .. timeT, gridlines = true, 0 .. maxim+10, labels = [t, h(t)], labeldirections = [horizontal, vertical]);
h_given := 10;
expr := h_given-f:
answer_t := Student:-Calculus1:-Roots(expr, t = 0 .. timeT+5);
evalf(answer_t, 2);

Hi All

I have the following line of code in Maple:

solve([sin(t), 0 < t, t < 6.28], t, allsolutions, explicit)

it produces: "{t = Pi}, {t = 2*Pi}, {t = 3*Pi}, {t = 4*Pi}, {t = 5*Pi}, {t = 6*Pi}, {t = 7*Pi}"

How do I get it to simply produce: "{Pi,2*Pi,2*Pi,3*Pi,4*Pi,5*Pi,6*Pi,7*Pi}

as having the variable listed is redundant and annoying when you want to go on and extract the 3rd solution (number only) form the list.

Thanks in advance.

Suppose I have a questions that says simplify some random square root

using the algorithm

$radicand=range(10,50,1);
$ques="sqrt($radicand)";
$ques_exact=maple("simplify($ques);");
$ques_ML=maple("f := $ques_exact: XMLTools[Print](MathML[Export](f));");

How do I create an answer field that ONLY allows the student to provide the simplified answer $ques_ML??  How might I provide partial points if they do not simplify (for a classic pythag triangle question for example)?

Thank you

Hi all,

I am attempting to construct a randomized questions using algorithms and the sketch question type.

I have defined my variables algorithmically.  The sketch question type only allows a static answer, and hence I am trying to modify the code.  

As you can see below the code (part.1.answer...) is looking for points located at (7,0) and (0,-7).  I would like to replace the 7 with variable $xint and -7 with variable $yint, but it seems the @-symbols are some form of termination point that won't allow variables to carry-into the expression.

Looking for ideas??  I do not want to change to multiple choice.

 

Thanks,

 

mode=Inline@
id=0@
name=Graph a linear relation in Ax+By=C form@
comment=<p>&nbsp;</p>


@
editing=useHTML@
solution=@
algorithm=$b=range(1,6,2);
$c=range($b,20,$b);
$a=$b*3;
$zero=0;
$xint=$c/$a;
$yint=$c/$b;@
customCss=@
appliedThemes=@
uid=316f7dda-d8bc-479f-a3e4-9703a1846072@
privacy=10@
allowRepublish=false@
description=@
difficulty=0.0@
modifiedIn=11.10@
modifiedBy=a0c70480-e1aa-418d-9980-0347cddc1087@
school=7f01c0fb-116a-4f9d-bafc-e91de0b62105@
attributeAuthor=true@
numberOfAttempts=1@
numberOfAttemptsLeft=1@
numberOfTryAnother=0@
numberOfTryAnotherLeft=0@
question=<p><span style="font-size:16px;">Graph &nbsp;<math xmlns="http://www.w3.org/1998/Math/MathML"><mrow> <mn>$a</mn> <mspace width="5px"></mspace> <mi mathvariant="italic">x</mi> <mo>+</mo> <mi mathvariant="italic">&nbsp;</mi> <mn>$b</mn> <mspace width="5px"></mspace> <mi mathvariant="italic">y&nbsp;</mi> <mo>=</mo> <mn>$c</mn> </mrow></math>&nbsp; on the grid below.</span></p>

<p>&nbsp;</p>

<p><span>&nbsp;</span></p>

<1>

<p><span>&nbsp;</span>&nbsp;</p>


@
weighting=1@
numbering=alpha@
part.1.grid=true@
part.1.comment=<p>&nbsp;</p>


@
part.1.editing=useHTML@
part.1.attributeAuthor=false@
part.1.options="visible_buttons":"createline:1, delete"@
part.1.givenCurves={"sketchElements":[{"elementType":"topGroup","parents":[],"attributes":{"name":"Top-level Group"},"gradingOptions":{},"id":"topGroup"}]}@
part.1.modifiedIn=11.10@
part.1.numberOfAttempts=1@
part.1.allowRepublish=false@
part.1.numberOfTryAnotherLeft=0@
part.1.numberOfAttemptsLeft=1@
part.1.mode=Html5sketch@
part.1.numberOfTryAnother=0@
part.1.answer={"sketchElements":[{"elementType":"topGroup","parents":["jxgBoard1L160"],"attributes":{"name":"Top-level Group"},"gradingOptions":{},"id":"topGroup"},{"elementType":"point","parents":[7,0],"attributes":{"name":"B"},"gradingOptions":{},"id":"jxgBoard1P158"},{"elementType":"point","parents":[0,-7],"attributes":{"name":"C"},"gradingOptions":{},"id":"jxgBoard1P159"},{"elementType":"line","parents":["jxgBoard1P158","jxgBoard1P159"],"attributes":{"name":"aq"},"gradingOptions":{},"id":"jxgBoard1L160"}]}@
part.1.gradingCode=op(1,[Grading:-GradePlot($ANSWER, $RESPONSE, $PLOTVIEW)]);@
part.1.axes=-10,10,-10,10@
part.1.difficulty=0.0@
part.1.ticks=4,5,4,5@
part.1.name=responseNaN@

1 2 3 4 5 Page 5 of 5