<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Arial;color: #000000;font-size: 10pt;">Hi,
<div><br>
</div>
<div>I'm trying to create a question that defines the domain and range of a square root function.  The students need to define a square root function with those properties.  I have it working for cases like:</div>
<div><br>
</div>
<div>sqrt(x-a) + b</div>
<div>c * sqrt(x-a) + b, where c>0</div>
<div><br>
</div>
<div>However I can't get it to work for sqrt(cx-ca) + b, where c>0</div>
<div><br>
</div>
<div>Below is the Math Response script I'm using.  I tried using wrapping the trigsimp() with float(), which worked in Maxima but not in Lon Capa.  Any suggestions are greatly appreciated.</div>
<div><br>
</div>
<div>
<div><mathresponse cas="maxima" args="@custom" answerdisplay="<m eval='on'>c $answer</m>, where <m>c>0</m>"></div>
<div>    <answer>f(x):=RESPONSE[1];</div>
<div>g(x):=LONCAPALIST[1];</div>
<div>b   : LONCAPALIST[2];</div>
<div><br>
</div>
<div>boolNum : numberp(trigsimp((g(x)-b)/(f(x)-b)));</div>
<div>boolPos : trigsimp(trigreduce(factor(g(x)-b)/(f(x)-b))) > 0;</div>
<div><br>
</div>
<div>is(boolNum and boolPos);</answer></div>
<div>    <textline readonly="no" /></div>
<div>    </div>
<div></mathresponse></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
<div>From Seema.</div>
</div>
</body>
</html>