[LON-CAPA-users] Function Response Answers
GARRETT, DONNELL MAZON
lon-capa-users@mail.lon-capa.org
Wed, 16 Nov 2005 18:31:25 -0500
Hi
I noticed that in the code:
<formularesponse answer="$v0" samples="t@1:500#5"
format="2f*cos(2000*t)">
<responseparam description="Numerical Tolerance" type="tolerance"
default=".5%" name="tol" />
<textline size="25"/>
<hintgroup>
<startouttext /><endouttext />
</hintgroup>
</formularesponse>
The format="2f*cos(2000*t" gives me a very good looking answer that
students can see after they have answered the question correctly.
However, my problem is when there is a phase.. eg 25*cos(2000*t +
7)... using this format string, the answer will show as
"25.00*cos(2000*t)
Is there a way to format both the magnitude and the phase in a function
response problem? Or can I only format the first number that lon-capa
comes across?
-----Original Message-----
From: lon-capa-users-admin@mail.lon-capa.org
[mailto:lon-capa-users-admin@mail.lon-capa.org] On Behalf Of Guy
Albertelli II
Sent: Tuesday, November 15, 2005 7:38 AM
To: lon-capa-users@mail.lon-capa.org
Subject: Re: [LON-CAPA-users] h bar
Hi Guy,
> How do I print h bar? The html code is ħ which renders fine in
> html, but doesn't print in tex.
<m>$\hbar$</m>
looks good in jsMath mode and prints ncely.
<web>ħ</web><tex>$\hbar$</tex>
Will look good both places.
And lonprinout.pm 1.399 will support conversion of ħ
--
guy@albertelli.com 0-7-2-0-27,137
_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users