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

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

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

Revision 5551 Revision 5555
17alphabetically is used to form the dx. Otherwise, you can specify 17alphabetically is used to form the dx. Otherwise, you can specify
18the variable used for dx as the second argument to 18the variable used for dx as the second argument to
19DifferenceQuotient(). You could use a variable like h instead of 19DifferenceQuotient(). You could use a variable like h instead of
20dx if you prefer. 20dx if you prefer.
21 21
22Usage examples: 22=head1 USAGE
23 23
24 $df = DifferenceQuotient("2x+dx"); 24 $df = DifferenceQuotient("2x+dx");
25 ANS($df->cmp); 25 ANS($df->cmp);
26 26
27 $df = DifferenceQuotient("2x+h","h"); 27 $df = DifferenceQuotient("2x+h","h");
28 ANS($df->cmp); 28 ANS($df->cmp);
29 29
30 Context()->variables->are(t=>'Real',a=>'Real'); 30 Context()->variables->are(t=>'Real',a=>'Real');
31 ANS(DifferenceQuotient("-a/[t(t+dt)]","dt")->cmp); 31 ANS(DifferenceQuotient("-a/[t(t+dt)]","dt")->cmp);
32 32
33=cut 33=cut
34 34
35loadMacros('MathObjects.pl'); 35loadMacros('MathObjects.pl');
36 36

Legend:
Removed from v.5551  
changed lines
  Added in v.5555

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9