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

Log of /trunk/pg/macros/contextInequalities.pl

Parent Directory Parent Directory


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

Revision 6505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 11 15:39:00 2010 UTC (9 years, 3 months ago) by gage
File length: 29172 byte(s)
Diff to previous 6489
moved files around
separated contextInequalities.pl to see if that would remove error messages


Revision 6489 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 6 20:24:58 2010 UTC (9 years, 3 months ago) by gage
File length: 28943 byte(s)
Diff to previous 6213
updates from Davide


Revision 6213 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 22 11:01:55 2010 UTC (9 years, 11 months ago) by dpvc
File length: 28896 byte(s)
Diff to previous 6184
Add =< and => operators and flag to control whether they are allowed or not.  Added more documentation

Revision 6184 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 23 16:38:59 2010 UTC (10 years ago) by dpvc
File length: 27036 byte(s)
Diff to previous 6058
Fixed typos in comments

Revision 6058 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 25 23:28:44 2009 UTC (10 years, 7 months ago) by gage
File length: 26963 byte(s)
Diff to previous 5952
syncing pg HEAD with pg2.4.7 on 6/25/2009

Revision 5952 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 30 14:05:30 2008 UTC (11 years, 1 month ago) by dpvc
File length: 27034 byte(s)
Diff to previous 5951
Combined TeX and string into a common routine since the two were
nearly identical.

Revision 5951 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 30 08:18:24 2008 UTC (11 years, 1 month ago) by dpvc
File length: 28131 byte(s)
Diff to previous 5693
Inequalities that are evaluated and turned into intervals now properly
retain the order of operands (x > 10 remains x > 10 rather than
becoming 10 < x).

Unions of the form "x < a or x > a" will be displayed as "x != a" instead,
and "a < x < b or b < x < c" will be shown as "a < x < c and x != b"
instead.  This behavior is controlled by the showNotEquals context
flag.  Setting it to zero prevents conversion of unions to their
not-equal forms.

Revision 5693 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 14 11:52:26 2008 UTC (11 years, 8 months ago) by dpvc
File length: 24890 byte(s)
Diff to previous 5587
Better check for constant formula.

Revision 5587 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 15 12:29:06 2007 UTC (12 years, 3 months ago) by dpvc
File length: 24849 byte(s)
Diff to previous 5556
Produce error messages when the student enters something like x=1 or x=1.

Revision 5556 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 4 16:40:49 2007 UTC (12 years, 4 months ago) by sh002i
File length: 24775 byte(s)
Diff to previous 5555
added standard copyright/license header

Revision 5555 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 19:47:42 2007 UTC (12 years, 4 months ago) by sh002i
File length: 23834 byte(s)
Diff to previous 5551
fixed indentation of verbatim paragraphs: now using hard tabs
exclusively. the downside of this is that these get rendered as
eight-column tabs.

Revision 5551 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 2 20:48:05 2007 UTC (12 years, 4 months ago) by sh002i
File length: 23891 byte(s)
Diff to previous 5543
improved formatting for docs -- these were in pod sections but were all
formatted as verbatim sections, and i moved them into normal paragraphs,
lists, etc. should make things more readable from the web.

Revision 5543 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 28 23:58:02 2007 UTC (12 years, 4 months ago) by dpvc
File length: 24124 byte(s)
Diff to previous 5541
Allow inequalities to include infinity and -infinity (so you can enter
-inf < x < inf to get all reals).

Revision 5541 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 28 23:24:52 2007 UTC (12 years, 4 months ago) by dpvc
File length: 24102 byte(s)
Diff to previous 5470
Fixed a problem where the context was not properly maintained when
intervals are combined.

Revision 5470 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 8 21:44:43 2007 UTC (12 years, 5 months ago) by dpvc
File length: 24105 byte(s)
Diff to previous 5445
No longer need to change the order of the data, since
Value::Interval->make() now handles the alternative order.

Revision 5445 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 29 02:01:24 2007 UTC (12 years, 5 months ago) by dpvc
File length: 24198 byte(s)
Diff to previous 5443
Check that "and" and "or" combine inequalities that use the same variable.

Revision 5443 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 29 00:03:27 2007 UTC (12 years, 5 months ago) by dpvc
File length: 23944 byte(s)
Diff to previous 5441
Make the TeX output for <= be \le rather than <=

Revision 5441 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 28 22:40:15 2007 UTC (12 years, 5 months ago) by dpvc
File length: 23942 byte(s)
Diff to previous 5434
Add context names for the context(s) created here.

Revision 5434 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 26 19:11:18 2007 UTC (12 years, 5 months ago) by dpvc
File length: 23905 byte(s)
Diff to previous 5404
This is a rewrite of the Inequalities context that makes a number of
improvements over the older version.

First, the error messages are much better when students enter
incorrect answers.

Second, inequalities and intervals are now separate classes and so you
can enter both types of notation and they will stringify and texify
correctly, so there is no need for the stringifyAsInequalities flag
any longer.

Finally, there is a new Inequality() constructor that can be used to
coerce Intervals, Sets, and Unions to become their corresponding
inequalities, and vice versa, Interval(), Set() and Union() can be
used to coerce an Inequality to be represented in its interval-style
notation.

This is not backaward compatible with the ealier version, but since
that is only a couple of weeks old, I don't think it should be an
issue, as very few problems will have been written for it in that
time.

Revision 5404 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 22 23:35:41 2007 UTC (12 years, 6 months ago) by dpvc
File length: 17239 byte(s)
Diff to previous 5373
Set the cmpDefaults so that you don't get error messages for things
like "x=1 or x=2" (which are not reduced when considered as {1} U {2}).
Also, improve the error messages a bit.

There is a better way to handle this context so that intervals, sets
and unions are distinct from inequalities.  That will clear up the
ambiguity about how to stringify the objects, and will make it easier
for the two types of notation to coincide.

Revision 5373 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 19 02:01:57 2007 UTC (12 years, 6 months ago) by dpvc
File length: 16918 byte(s)
Diff to previous 5370
Normalized comments and headers to that they will format their POD
documentation properly.  (I know that the POD processing was supposed
to strip off the initial #, but that doesn't seem to happen, so I've
added a space throughout.)

Revision 5370 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 19 00:48:19 2007 UTC (12 years, 6 months ago) by dpvc
File length: 16875 byte(s)
Diff to previous 5366
Updated calls to Parser::Context->getCopy to remove unneeded undef
argument.

Revision 5366 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 18 23:43:47 2007 UTC (12 years, 6 months ago) by dpvc
File length: 16850 byte(s)
Diff to previous 5354
Miscellaneous improvements to TeX and string output.
Fixed typo in propagation of equation pointer in one location.
Propagate the varName field in "or" and "and" operations.

Revision 5354 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 17 22:46:02 2007 UTC (12 years, 6 months ago) by dpvc
File length: 16175 byte(s)
Diff to previous 5327
Make sure the creation o MathObjects internally preserves the context
saved in the object.

Revision 5327 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Aug 15 03:56:11 2007 UTC (12 years, 6 months ago) by dpvc
File length: 15877 byte(s)
This file defines contexts in which intervals can (or must) be
entered as inequalities.  The contexts include "and" and "or" for
combining inequalities, and you can force intervals to be shown as
inequalities rather than their usual form.  See the comments in the
file for additional details.

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