Difference between revisions of "VectorFieldGraph3D1"
(Created page with '<h2>Graphing a Vector Field in Space</h2> 300px|thumb|right|Click to enlarge <p style="background-color:#f9f9f9;border:black solid 1px;padding:3…') |
(add historical tag and give links to newer problems.) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <h2>Graphing a Vector Field in Space</h2> |
||
+ | {{historical}} |
||
+ | |||
+ | <p style="font-size: 120%;font-weight:bold">This problem has been replaced with [https://openwebwork.github.io/pg-docs/sample-problems/VectorCalc/VectorFieldGraph3D/VectorFieldGraph3D1.html a newer version of this problem]</p> |
||
+ | |||
+ | <h2>Deprecated: Graphing a Vector Field in Space</h2> |
||
[[File:VectorFieldGraph3D1.png|300px|thumb|right|Click to enlarge]] |
[[File:VectorFieldGraph3D1.png|300px|thumb|right|Click to enlarge]] |
||
<p style="background-color:#f9f9f9;border:black solid 1px;padding:3px;"> |
<p style="background-color:#f9f9f9;border:black solid 1px;padding:3px;"> |
||
− | This PG code shows how to make an interactive graph of a vector field displayed with the LiveGraphics3D Java applet. |
+ | This PG code shows how to make an interactive graph of a vector field displayed with the LiveGraphics3D Java applet. This example is deprecated because it uses Java, which is not universally supported by all web browsers. |
</p> |
</p> |
||
− | * Download file: [[File:VectorFieldGraph3D1.txt]] (change the file extension from txt to pg when you save it) |
||
+ | * File location in OPL: [https://github.com/openwebwork/webwork-open-problem-library/tree/master/OpenProblemLibrary/FortLewis/Authoring/Templates/VectorCalc/VectorFieldGraph3D1 FortLewis/Authoring/Templates/VectorCalc/VectorFieldGraph3D1/VectorFieldGraph3D1.pg] |
||
− | * File location in NPL: <code>FortLewis/Authoring/Templates/VectorCalc/VectorFieldGraph3D1/VectorFieldGraph3D1.pg</code> |
||
<br clear="all" /> |
<br clear="all" /> |
||
Line 163: | Line 166: | ||
Context()->texStrings; |
Context()->texStrings; |
||
BEGIN_SOLUTION |
BEGIN_SOLUTION |
||
− | ${PAR}SOLUTION:${PAR} |
||
Solution explanation goes here. |
Solution explanation goes here. |
||
END_SOLUTION |
END_SOLUTION |
||
Line 186: | Line 188: | ||
[[Category:Top]] |
[[Category:Top]] |
||
− | [[Category: |
+ | [[Category:Sample Problems]] |
+ | [[Category:Subject Area Templates]] |
Latest revision as of 05:29, 18 July 2023
This problem has been replaced with a newer version of this problem
Deprecated: Graphing a Vector Field in Space
This PG code shows how to make an interactive graph of a vector field displayed with the LiveGraphics3D Java applet. This example is deprecated because it uses Java, which is not universally supported by all web browsers.
- File location in OPL: FortLewis/Authoring/Templates/VectorCalc/VectorFieldGraph3D1/VectorFieldGraph3D1.pg
PG problem file | Explanation |
---|---|
Problem tagging: |
|
DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "parserVectorUtils.pl", "PGcourse.pl", "LiveGraphicsVectorField3D.pl", ); TEXT(beginproblem()); |
Initialization:
We need to include the macros file |
Context("Numeric"); Context()->variables->are(x=>"Real",y=>"Real",z=>"Real"); $plot = VectorField3D( Fx => Formula("x"), Fy => Formula("y"), Fz => Formula("z"), xvar => 'x', yvar => 'y', zvar => 'z', xmin => -1, xmax => 1, ymin => -1, ymax => 1, zmin => -1, zmax => 1, xsamples => 4, ysamples => 4, zsamples => 4, axesframed => 1, xaxislabel => "X", yaxislabel => "Y", zaxislabel => "Z", vectorcolor => "RGBColor[0.0,0.0,1.0]", vectorscale => 0.2, vectorthickness => 0.01, outputtype => 4, ); |
Setup:
The
Setting |
Context()->texStrings; BEGIN_TEXT $BCENTER \{ Live3Ddata( $plot, image => "exploding-vector-field.png", size => [400,400], tex_size => 600, tex_center => 1, scale => 1.25, ); \} $ECENTER END_TEXT Context()->normalStrings; |
Main Text:
To display the string of plot data
After you construct the vector field you like, don't forget to take a screen shot of it and make an image file such as |
$showPartialCorrectAnswers = 1; |
Answer Evaluation: |
Context()->texStrings; BEGIN_SOLUTION Solution explanation goes here. END_SOLUTION Context()->normalStrings; COMMENT('MathObject version.'); ENDDOCUMENT(); |
Solution: |