[system] / trunk / pg / macros / PGanswermacros.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PGanswermacros.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1451 Revision 1452
1307 second, and so on: "vars=>['x','y'], test_points => [[1,4,5],[7,14,29]]". 1307 second, and so on: "vars=>['x','y'], test_points => [[1,4,5],[7,14,29]]".
1308 1308
1309 If the problem writer wants random values which need to meet some special 1309 If the problem writer wants random values which need to meet some special
1310 restrictions (such as being integers), they can be generated in the problem: 1310 restrictions (such as being integers), they can be generated in the problem:
1311 "test_points=>[random(1,50), random(1,50), random(1,50), random(1,50)]". 1311 "test_points=>[random(1,50), random(1,50), random(1,50), random(1,50)]".
1312
1313 Note that test_points should not be used for function checks which involve
1314 parameters (either explicitly given by "params", or as antiderivatives).
1312 1315
1313EXAMPLES: 1316EXAMPLES:
1314 1317
1315 fun_cmp( "3*x" ) -- standard compare, variable is x 1318 fun_cmp( "3*x" ) -- standard compare, variable is x
1316 fun_cmp( ["3*x", "4*x+3", "3*x**2"] ) -- standard compare, defaults used for all three functions 1319 fun_cmp( ["3*x", "4*x+3", "3*x**2"] ) -- standard compare, defaults used for all three functions

Legend:
Removed from v.1451  
changed lines
  Added in v.1452

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9