# [LON-CAPA-users] Having an equation or a range as a response

Seema Ali sali at vsb.bc.ca
Mon Jan 23 10:27:20 EST 2012

```Thanks Gerd, you really helped me out on the equation response.

So I could use the &cas-command and get it to output a plot with increments of pi on the x-axis?

I heard about the Geogebra sketching ability in Lon Capa.  I am very interested in learning how to implement that for my students as well.  It is hard to find information on how to do that.  How do you set up a question like that?

>From Seema.

-----Original Message-----
From: lon-capa-users-bounces at mail.lon-capa.org on behalf of Gerd Kortemeyer
Sent: Sun 1/22/2012 5:38 AM
To: Discussion list for LON-CAPA users
Subject: Re: [LON-CAPA-users] Having an equation or a range as a response

Hi,

On Jan 22, 2012, Seema Ali wrote:

>  Where can I get a list of Maxima questions that Lon Capa uses?

A few things from MAXIMA we have packaged nicely in <formularesponse> and <mathresponse> (with a "switch" for R or MAXIMA). But, using the &cas-command, you can call any function within MAXIMA, http://maxima.sourceforge.net/documentation.html . I usually try things out on the command-line first (just running MAXIMA in a terminal) before putting them into LON-CAPA.

BTW, we also have GeoGebra support, which we currently do not "advertise" in the templates. Students can enter graph sketches, which are then graded according to rules.

> Oh and I also tested:
>
> x^3 = 125 and it failed on both which is good if you're looking for linear solutions.
>

That's apparently because MAXIMA wants to solve this in the complex plane:

(%i3) solve(x^3=125,x);
5 sqrt(3) %i - 5        5 sqrt(3) %i + 5
(%o3)        [x = ----------------, x = - ----------------, x = 5]
2                       2

I guess I need to work in some way to tell MAXIMA if it should stay real.

- Gerd.
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

-------------- next part --------------
An HTML attachment was scrubbed...