[system] / trunk / pg / lib / Parser / Differentiation.pm Repository:
ViewVC logotype

Log of /trunk/pg/lib/Parser/Differentiation.pm

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 6136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 3 16:40:47 2009 UTC (10 years, 2 months ago) by dpvc
File length: 18736 byte(s)
Diff to previous 5607
Handle formula 'constants' properly

Revision 5607 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 31 14:26:45 2008 UTC (11 years, 10 months ago) by dpvc
File length: 18637 byte(s)
Diff to previous 5485
Fixed differentiation of log() function (it used to give an error
about undefined function D_ln).

Revision 5485 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 11 14:07:51 2007 UTC (12 years, 3 months ago) by dpvc
File length: 18623 byte(s)
Diff to previous 5464
A couple of syntax issues.

Revision 5464 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 7 14:18:30 2007 UTC (12 years, 3 months ago) by dpvc
File length: 18617 byte(s)
Diff to previous 5114
Derivatives of absolute values were leaving out the chain rule when
written as |...| (but not as abs(...)).  The chain rule is built into
the derivatives of function objects automatically, but not of lists,
which is how |...| is implemented (a special form of parentheses), and
so I missed it when adding the derivative in this form.  Argh!

Revision 5114 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 2 23:21:06 2007 UTC (12 years, 5 months ago) by dpvc
File length: 18538 byte(s)
Diff to previous 5001
Fixed error in derivative of quotients introduced by recent bad editing.

Revision 5001 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 12 04:05:56 2007 UTC (12 years, 6 months ago) by dpvc
File length: 18534 byte(s)
Diff to previous 4994
More fixes for creating items in the corret context.  Also added a
method for looking up the package associated with a particular Parser
class (for consistency with the Value->Package call).

Revision 4994 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 10 01:17:29 2007 UTC (12 years, 6 months ago) by dpvc
File length: 20390 byte(s)
Diff to previous 4300
Update to handle the fact that the Value package now includes the
context with all MathObjects.  (This may still need some work.)

Revision 4300 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 13:18:25 2006 UTC (13 years, 4 months ago) by dpvc
File length: 20395 byte(s)
Diff to previous 4299
Fixed a problem with derivatives of constant-valued Matrices (and
vectors and points).  They were incorrectly getting an extra level of
nesting.

Revision 4299 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 12:27:07 2006 UTC (13 years, 4 months ago) by dpvc
File length: 20500 byte(s)
Diff to previous 3499
Extended the differentiation operator to handle multiple derivatives:

	  $f->D("x","y")    is the same as $f->D("x")->D("y")
	  $f->D(2)          is the same as $f->D->D
	  $f->D(2,"x")      is the same as $f->D("x")->D("x")

and so on.

Revision 3499 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 13 00:41:24 2005 UTC (14 years, 4 months ago) by dpvc
File length: 20113 byte(s)
Diff to previous 3370
Added sets to the differentiation information (no derivatives allowed)

Revision 3370 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 12 22:29:53 2005 UTC (14 years, 5 months ago) by dpvc
File length: 20012 byte(s)
Diff to previous 3219
A first pass at making parser error messages localizable.  The
Context()->{error}{msg} hash can be used to specify translations of
the standard messages.  For example,

    Context()->{error}{msg}{'Division by zero'} = "Don't divide by zero, dude!";
    Context()->{error}{msg}{'Function '%s' has too many inputs'} =
        "You passed too many arguments to '%s'";

(I didn't translate into another language, here, but you could do
that, too.)

The msg hash could also be used within answer checkers to make certain
answer messages more appropriate for the given type of expected answer.

Revision 3219 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 29 22:30:55 2005 UTC (14 years, 7 months ago) by dpvc
File length: 20006 byte(s)
Diff to previous 3202
Added derivative of |x| as x/|x|.

Revision 3202 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 28 23:45:27 2005 UTC (14 years, 8 months ago) by dpvc
File length: 19759 byte(s)
Diff to previous 2678
Handle log as ln or log properly.

Revision 2678 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 23 23:55:37 2004 UTC (15 years, 3 months ago) by dpvc
File length: 19576 byte(s)
Diff to previous 2558
Modified the parser so that the classes for the various object
constructors are stored in the context table rather than hard-coded
into the parser.  That way, you can override the default classes with
your own.  This gives you even more complete control to modify the
parser.  (You had been able to replace the definitions of operators,
functions and list-like objects, but could not override the behaviour
of numbers, strings, variables, and so on.  Now you can.)

This effects most of the files, but only by changing the name of the
calls that create the various objects.

There are also a couple of other minor fixes.

Revision 2558 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Jul 28 20:32:33 2004 UTC (15 years, 4 months ago) by sh002i
File length: 17424 byte(s)
merged changes from rel-2-1-a1 -- stop using that branch.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9