Revision
3602 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Sep 7 01:06:13 2005 UTC (7 years, 8 months ago) by
dpvc
File length: 9207 byte(s)
Diff to
previous 2726
Added "strict" versions of the limited complex contexts that don't
allow operations within the real and imaginary parts. Also cleaned up
some of the code and fixed a few situations that had been missed
before.
Note that in strict mode, e^(pi i) is accepted, but e^(pi/2 i) is
not. Should that be changed? It would be possible to make a context
in which a*e^(b*pi/c i) is accepted.
Revision
2726 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Sat Sep 4 20:21:32 2004 UTC (8 years, 8 months ago) by
dpvc
File length: 8113 byte(s)
These files provide contexts for the Parser in which only limited
operations are allowed. The LimitedNumeric context is analogous to
strict_num_cmp(). The other contexts are similar, but for the
indicated type of answer. In the LimitedVector context, for example,
the student can enter vectors, and can perform numeric operations
within the coordinates of the vectors, but can't perform vector
operations like vector addition or cross product.