[LON-CAPA-users] functionplotresponse problems

Raeburn, Stuart raeburn at msu.edu
Mon Jun 3 20:49:06 EDT 2019


> There must be some in Gerd’s area or his former student’s authoring
> space, but I can’t remember his student’s name.

J.T. Laverty is the name of Gerd's former student who worked on functionplotresponse.  J.T. is now at Kansas State; see: www.phys.ksu.edu/people/tt-faculty/laverty.html

Stuart Raeburn
LON-CAPA Academic Consortium

From: LON-CAPA-users <lon-capa-users-bounces at mail.lon-capa.org> on behalf of Lucas, Mark <lucasm at ohio.edu>
Sent: Sunday, June 2, 2019 4:26 PM
To: Discussion list for LON-CAPA users
Subject: Re: [LON-CAPA-users] functionplotresponse problems


There must be some in Gerd’s area or his former student’s authoring
space, but I can’t remember his student’s name.

Gerd has some function plotting (not vectors) in:

If you’re looking for really simple stuff, I’ve created a singlearrow set of routines
that take a static imaged and allow you to resize and rotate the arrow, but not drag
it. This was based off some code Wolfgang Bauer shared at the conference a few
years ago.
Here is one example:
/res/ohiou/physicslib/practice/09_Newtons_Laws/Book on the ceiling - normal force.problem

Copied below is a free-body diagram for an incline that I think came from one
of Gerd’s sample problems:

<script type="loncapa/perl">$slope=&random(0.5,0.8,0.1);
<startouttext />
A mass is sliding down the indicated incline with a constant velocity. Construct the free body diagram, making sure the forces are approximately proportionally correct. Leave unused vectors unattached.<br />
<i>You can use the red-colored vector sum tool to help you construct your diagram; check the boxes for the vectors you want included in the sum. The tool is just there to help you, its settings are not graded.</i>
<br />
<endouttext />
<functionplotresponse xaxisvisible="no" xlabel="x" gridvisible="yes" ylabel="y" id="11" xmax="10" yaxisvisible="no" xmin="0" ymin="0" ymax="10" width="450" height="450">

<backgroundplot function="$function" fixed="yes" />
<plotobject label="Mass" x="$massx" y="$massy" />
<plotvector label="Gravity" tailx="7" taily="1" tipx="8" tipy="1" />
<plotvector label="KineticFriction" tailx="7" taily="2" tipx="8" tipy="2" />
<plotvector label="StaticFriction" tailx="7" taily="3" tipx="8" tipy="3" />
<plotvector label="NormalForce" tailx="7" taily="4" tipx="8" tipy="4" />
<drawvectorsum label="Sum" tailx="$massx" taily="$massy" showvalue="no" vectorlist="Gravity,KineticFriction,StaticFriction,NormalForce" />
<functionplotvectorrule index="Grav" vector="Gravity" attachpoint="Mass" angle="270" angleerror="2" />
<functionplotvectorrule index="Norm" vector="NormalForce" attachpoint="Mass" angle="$perp" angleerror="4" />
<functionplotvectorrule index="KFriction" vector="KineticFriction" attachpoint="Mass" angle="$angle" angleerror="3" />
<functionplotvectorrule index="SFriction" vector="StaticFriction" notattachpoint="Mass" />
<functionplotvectorsumrule vectors="Gravity,NormalForce,KineticFriction" length="0" lengtherror="2" index="Total" />
<hintgroup showoncorrect="no">

<hintpart on="Grav">
    <startouttext />Gravity acts on the mass and points straight down.<endouttext />
<hintpart on="SFriction">
    <startouttext />The mass is sliding.<endouttext />
<hintpart on="Total">
    <startouttext />What should be the net force on the mass?<endouttext />
<hintpart on="Norm">
    <startouttext />What should be the direction of the normal force?<endouttext />



Hope this helps some,

> On Jun 1, 2019, at 12:10 PM, H. K. Ng <hkng at fsu.edu> wrote:
> Good morning,
> I am looking for examples of functionplotresponse problems (one where a student can resize/drag a vector,..) Let me know if you don't mind sharing the source codes. Thanks.
> Regards,
> -hk
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users at mail.lon-capa.org

Mark Lucas                                                              email: lucasm at ohio.edu
252D Clippinger Lab                                             phone: (740)597-2984
Department of Physics and Astronomy                     fax: (740)593-0433
Ohio University
Athens, OH 45701

LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org

More information about the LON-CAPA-users mailing list