Parent Directory
|
Revision Log
Revision 1143 - (view) (download)
| 1 : | jjholt | 156 | ## DESCRIPTION |
| 2 : | ## Algebra | ||
| 3 : | ## ENDDESCRIPTION | ||
| 4 : | jj | 145 | |
| 5 : | jjholt | 156 | ## KEYWORDS('function' 'graph' 'slope') |
| 6 : | ## Tagged by tda2d | ||
| 7 : | jj | 145 | |
| 8 : | jjholt | 156 | ## DBsubject('Algebra') |
| 9 : | ## DBchapter('Functions') | ||
| 10 : | ## DBsection('Average Rate of Change: Increasing and Decreasing Functions') | ||
| 11 : | ## Date('') | ||
| 12 : | ## Author('') | ||
| 13 : | ## Institution('Rochester') | ||
| 14 : | ## TitleText1('') | ||
| 15 : | ## EditionText1('') | ||
| 16 : | ## AuthorText1('') | ||
| 17 : | ## Section1('') | ||
| 18 : | ## Problem1('') | ||
| 19 : | |||
| 20 : | jj | 145 | DOCUMENT(); # This should be the first executable line in the problem. |
| 21 : | |||
| 22 : | loadMacros( | ||
| 23 : | "PG.pl", | ||
| 24 : | "PGbasicmacros.pl", | ||
| 25 : | "PGchoicemacros.pl", | ||
| 26 : | "PGanswermacros.pl", | ||
| 27 : | "PGauxiliaryFunctions.pl", | ||
| 28 : | "PGgraphmacros.pl", | ||
| 29 : | jj | 1143 | "extraAnswerEvaluators.pl", |
| 30 : | "PGasu.pl", | ||
| 31 : | jj | 145 | ); |
| 32 : | |||
| 33 : | TEXT(beginproblem()); | ||
| 34 : | $showPartialCorrectAnswers = 1; | ||
| 35 : | |||
| 36 : | $a = random(1,5,1); | ||
| 37 : | $b = random(-5,0,1); | ||
| 38 : | |||
| 39 : | jj | 1143 | $graph = init_graph(-10,-10,10,10,'axes'=>[0,0],'grid'=>[20,20],'size'=>[400,400]); |
| 40 : | jj | 145 | $f = FEQ("abs(x-$a)+abs(x+$a)+$b for x in <-10,10> using color:green and weight:2"); |
| 41 : | |||
| 42 : | plot_functions($graph,$f); | ||
| 43 : | |||
| 44 : | BEGIN_TEXT | ||
| 45 : | $BR | ||
| 46 : | |||
| 47 : | Consider the function whose graph is sketched: | ||
| 48 : | $BR \{ image(insertGraph($graph), width=>200, height=>200) \} $BR | ||
| 49 : | jj | 1143 | Find the intervals over which the function is strictly increasing or |
| 50 : | strictly decreasing. | ||
| 51 : | Express your answer in \{ helpLink('interval notation')\}. | ||
| 52 : | jj | 145 | $BR $BR |
| 53 : | jj | 1143 | The interval over which the function is strictly increasing: \{ans_rule(35) \} |
| 54 : | jj | 145 | $BR |
| 55 : | jj | 1143 | The interval over which the function is strictly decreasing: \{ans_rule(35) \} |
| 56 : | jj | 145 | END_TEXT |
| 57 : | |||
| 58 : | jj | 1143 | #ANS(interval_cmp("[$a,infty)", sloppy=>"yes")); |
| 59 : | ANS(pc_evaluator([ [interval_cmp("[$a,infty)"),1], | ||
| 60 : | [interval_cmp("[$a,infty)", sloppy=>"yes"),0,'Check whether endpoints of your interval should be open or closed.']])); | ||
| 61 : | ANS(pc_evaluator([ [interval_cmp("(-infinity, -$a]"),1], | ||
| 62 : | [interval_cmp("(-infinity, -$a]", sloppy=>"yes"),0,'Check whether endpoints of your interval should be open or closed.']])); | ||
| 63 : | jj | 145 | |
| 64 : | |||
| 65 : | |||
| 66 : | ENDDOCUMENT(); # This should be the last executable line in the problem. |
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |