File:
[LON-CAPA] /
loncom /
homework /
templates /
functionplotvector.problem
Revision
1.3:
download - view:
text,
annotated -
select for diffs
Wed Feb 29 01:24:50 2012 UTC (12 years, 10 months ago) by
www
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
version_2_11_1,
version_2_11_0_RC3,
version_2_11_0_RC2,
version_2_11_0_RC1,
version_2_11_0,
loncapaMITrelate_1,
HEAD
Make it so the components of the sum vector can be shown
<problem>
<script type="loncapa/perl">$slope=&random(0.5,0.8,0.1);
$function="2+$slope*x";
$massx=&random(3.5,6.5,0.1);
$massy=2.1+$slope*$massx;
$angle=180.*atan($slope)/$pi;
$perp=$angle+90.;</script>
<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">
<functionplotelements>
<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" />
</functionplotelements>
<functionplotruleset>
<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" />
</functionplotruleset>
<hintgroup showoncorrect="no">
<hintpart on="Grav">
<startouttext />Gravity acts on the mass and points straight down.<endouttext />
</hintpart>
<hintpart on="SFriction">
<startouttext />The mass is sliding.<endouttext />
</hintpart>
<hintpart on="Total">
<startouttext />What should be the net force on the mass?<endouttext />
</hintpart>
<hintpart on="Norm">
<startouttext />What should be the direction of the normal force?<endouttext />
</hintpart>
</hintgroup>
</functionplotresponse>
</problem>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>