]> www.ginac.de Git - ginac.git/blob - NEWS
* Sync 1.1 branch to 1.0 mainline.
[ginac.git] / NEWS
1 This file records noteworthy changes.
2
3 1.1.0 (<date>)
4 * "(x+1).subs(x==x-1)" now returns the correct result "x" instead of "x-1".
5
6 1.0.5 (<date>)
7 * (l)degree(s), coeff(s, n) and collect(s) were extended to accept expressions
8   of any class (except add/mul/ncmul/numeric) for "s". They should even work
9   if "s" is a "power" object, as long as the exponent is non-integer, but with
10   some limitations. For example, you can "collect(a*2^x+b*2^x, 2^x)" to get
11   "(a+b)*2^x", but "degree(2^(3*x), 2^x)" yields 0 instead of 3).
12
13 1.0.4 (24 January 2001)
14 * Speedup in expand().
15 * Faster Bernoulli numbers (Markus Nullmeier).
16 * Some minor bugfixes and documentation updates.
17
18 1.0.3 (21 December 2001)
19 * Fixed a bug where quo() would call vector::reserve() with a negative
20   argument.
21 * Fix several bugs in code generation.
22
23 1.0.2 (19 December 2001)
24 * Input parser recognizes "sqrt()", which is also used in the output.
25 * divide(a,b,q) only modifies q if the division succeeds; also, divide(a,b,a)
26   works now.
27 * Fixed small bug in dummy index renaming which could cause it to not
28   recognize renamable indices in some cases.
29 * power::degree() and power::ldegree() throw an exception when encountering
30   a non-integer exponent.
31 * Add output-support for Python bindings.
32
33 1.0.1 (22 November 2001)
34 * Function sqrfree() handles a few more cases now.
35 * Class relational has real canonical ordering now.
36 * Handle obscene libreadline version numbers when building ginsh.
37
38 1.0.0 (6 November 2001)
39 * Some internal reorganization resulting in a general speed-up.
40 * The last 3 evaluated expressions in ginsh are now referred to with the
41   tokens '%', '%%' and '%%%'. The old '"', '""' and '"""' remain for
42   compatibility but may be removed in a future version of GiNaC.
43
44 0.9.4 (20 September 2001)
45 * Functions have better support for external scripting languages.
46 * Interface cleanups and bugfixes.
47 * Fix silly bug in evalf() that prevented things like 2^Pi being computed.
48
49 0.9.3 (16 August 2001)
50 * series expansion now much more consistent for small order expansion.
51 * lsolve() accepts algorithmic hint as parameter.
52
53 0.9.2 (31 July 2001)
54 * Epsilon tensor is more functional.
55 * simplify_indexed() is better at detecting expressions that vanish for
56   symmetry reasons.
57 * Several little bugfixes and consistency enhancements.
58
59 0.9.1 (27 June 2001)
60 * Ctors of class numeric are not explicit any more.  All built-in callers for
61   pseudofunctions are now templated and default to ex arguments which relaxes
62   the need for explicit ctors.
63 * New functions/methods:
64    - find()
65    - remove_first(), remove_last(), sort() and unique() for lists
66    - symmetrize_cyclic()
67    - decomp_rational()
68 * Instead of just totally symmetric or antisymmetric, complex symmetries
69   can now be defined for indexed objects. Symmetries are described by a
70   tree of "symmetry" objects that is constructed with the sy_none(),
71   sy_symm(), sy_anti() and sy_cycl() functions. The symmetry of a function
72   with respect to its arguments can also be defined (this is currently
73   only used for the Beta function).
74 * Generalized map() to take a function object instead of a function pointer.
75   This allows passing an arbitrary number of additional state to the
76   function being called.
77 * color_trace(), dirac_trace(), diff(), expand(), evalf() and normal() work
78   better with container classes, e.g. using color_trace() on a relation will
79   take the trace on both sides, using diff() on a matrix differentiates every
80   element etc.
81 * diff() works properly with non-commutative products and indexed objects.
82 * New option flag "expand_function_args" for expand().
83 * Supplement some (now deprecated) macros by inlined template functions:
84   - is_of_type(foo, type) -> is_a<type>(foo)
85   - is_ex_of_type(foo, type) -> is_a<type>(foo)
86   - is_exaclty_of_type(foo, type) -> is_exaclty_a<type>(foo)
87   - is_ex_exaclty_of_type(foo, type) -> is_exaclty_a<type>(foo)
88   - ex_to_foobar(baz)  ->  ex_to<foobar>(baz)
89 * rem(c, p[x], x) (c: numeric, p[x]: polynomial) erroneously returned p[x]
90   instead of c.
91 * Small bugfixes in pattern matching.
92 * Updated libtool to version 1.4.
93
94 0.9.0 (7 June 2001)
95 * In the output and in ginsh, lists are now delimited by { } braces, and
96   matrices are delimited by single [ ] brackets.
97 * simplify_indexed() renames dummy indices so, e.g., "a.i*a.i+a.j*a.j" gets
98   simplified to "2*a.i*a.i" (or "2*a.j*a.j").
99 * New functions/methods:
100    - canonicalize_clifford() (helpful when comparing expressions containing
101      Dirac matrices)
102    - symmetrize() and antisymmetrize()
103    - numer_denom() (return numerator and denominator in one call)
104    - map() (apply function to subexpressions)
105    - evalm() (evaluate sums, products and integer powers of matrices)
106 * Added a new function match() for performing pattern matching. subs() and
107   has() also accept patterns as arguments. A pattern can be any expression,
108   optionally containing wildcard objects. These are constructed with the
109   call "wild(<unsigned>)" and are denoted as "$0", "$1" etc. in the output
110   and in ginsh.
111 * Positive integer powers of non-commutative expressions (except matrices)
112   are automatically expanded.
113 * Removed cint subdirectory, ginaccint is a separate package now due to 
114   packaging considerations.
115 * Several little bugfixes.
116
117 0.8.3 (11 May 2001)
118 * color and clifford classes are functional and documented.
119 * New "spinidx" class for dotted/undotted indices.
120 * Predefined spinor metric tensor (created by spinor_metric()).
121 * Symbols can have a LaTeX name, e.g. symbol s("s", "\\sigma");
122 * LaTeX output of indexed objects is much nicer.
123 * Fixed some build problems (with recent libreadline).
124 * Semantics of arithmetic operators now follows the C++ rules more strictly.
125
126 0.8.2 (24 April 2001)
127 * degree(), ldegree(), coeff(), lcoeff(), tcoeff() and collect() work with
128   non-symbols as the second argument in ginsh.
129 * the argument to collect() can be a list of objects in which case the
130   result is either a recursively collected polynomial, or a polynomial in
131   a distributed form with terms like coeff*x1^e1*...*xn^en, as specified by
132   the second argument to collect().
133 * Several bugfixes (including a nasty memory leak in .normal()).
134 * class matrix: solve() doesn't call algorithms redundantly any more and
135   inverse() falls back to solve() which works in more general cases.
136
137 0.8.1 (16 April 2001)
138 * degree(), ldegree(), coeff(), lcoeff(), tcoeff() and collect() can now
139   be used with constants, functions and indexed expressions as well, so you
140   can use it to collect by powers of Pi or sin(x), or to find the coefficient
141   of gamma~0.
142   Limitations:
143    - it only works with symbols, constants, functions and indexed expressions,
144      trying to find the coefficient of, e.g., "x^2" or "x+y" won't work;
145    - it does not know about dummy index summations; the coefficient of
146      gamma~0 in p.mu*gamma~mu should be p.0 but is returned as 0;
147    - using coeff(), tcoeff(), lcoeff() or collect() on elements of
148      noncommutative products might return wrong or surprising results.
149 * subs() no longer only substitutes symbols and indices but performs a more
150   general "syntactic substitution", i.e. it substitutes whole objects in sub-
151   expressions. You can subs((a+b)^2,a+b==3) and get 9, but subs(a+b+c,a+b==3)
152   doesn't do anything.
153   Limitations:
154    - substituting numerics (subs(expr, 2==4)) will not replace then in all
155      occurences; in general, you shouldn't substitute numerics, though.
156 * Added preliminary (re)implementations of color and clifford classes.
157 * simplify_indexed(): contraction of symmetric and antisymmetric tensors
158   is zero.
159 * Replaced the various print*() member functions by a single print() that
160   takes a print_context object that determines the output formatting. This
161   should make it easier to add more output types, such as LaTeX output,
162   which is based on work by Stefan Weinzierl.
163 * Added functions to retrieve the properties stored in archive objects
164   outside of unarchive() (for printing or debugging purposes).
165 * Some bugfixes (indexed objects, archive writing).
166 * .collect() on non-polynomials is now algebraically correct.
167
168 0.8.0 (24 March 2001)
169 * Complete revamp of indexed objects. Instead of multiple classes for
170   indexed things and their indices there is now only one "indexed" class
171   and two types of indices: "idx" for simple indices and "varidx" for
172   indices with variance. There are predefined delta, epsilon and metric
173   tensors, and a function simplify_indexed() that performs canonicalization
174   and dummy index summations. Matrix objects can be indexed for doing simple
175   linear algebra.
176 * Added an option "expand_indexed" to expand() to perform expansion of
177   indexed objects like (a+b).i -> a.i + b.i
178 * Renamed get_indices() to get_free_indices(), which no longer returns
179   dummy indices and checks the consistency of indices in sums.
180 * sqrfree() factorization fixed and improved syntactically.
181 * subs() works on matrices.
182 * Matrices can be constructed from flat list of elements; diagonal matrices
183   can be constructed from list of diagonal elements with diag_matrix().
184 * Fixed memory leak in expand().
185 * Operator% for objects of class ncmul has gone.  Use operator* now for that
186   case too, which is much more natural.
187
188 0.7.3 (28 February 2001)
189 * Several bugfixes and minor performance tunings.
190 * Added a section to the tutorial about adding new algebraic classes to GiNaC.
191 * Closed many in-source documentation gaps.
192
193 0.7.2 (17 February 2001)
194 * Several bugfixes in power series expansion, one of them critical.
195
196 0.7.1 (7 February 2001)
197 * Fix problems with Cint that were caused by CLN's overloaded operator new.
198 * Fix compilation errors with GCC3.
199 * normal() handles large sums of fractions better and normalizes the exponent
200   of power expressions.
201 * expand() always expands the exponent and transforms x^(a+b) -> x^a*x^b.
202 * Some bugfixes of series expansion around branch cuts of special functions.
203
204 0.7.0 (15 December 2000)
205 * Requires CLN 1.1 now.  Class numeric doesn't use an indirect pointer to the
206   actual representation any more.  This is a speedup.
207 * mul::expand() was reengineered to not allocate excess temporary memory.
208 * Non-integer powers of a symbol are treated as constants by (l)degree() and
209   coeff().  Using these functions on an expression containing such powers used
210   to fail with an internal error message.  The side-effect is that collect()
211   can be used on expressions which are not polynomials.
212 * Added a man page for the ginac-config script.
213 * Ctor of numeric from char* honors Digits.
214
215 0.6.4 (10 August 2000)
216 * Complete revamp of methods in class matrix.  Some redundant (and poor)
217   implementations of elimination schemes were thrown out.  The code is now
218   highly orthogonal, more flexible and much more efficient.
219 * Some long standing and quite nasty bugs were discovered and fixed in the
220   following functions: add::normal(), heur_gcd(), sr_gcd() and Order_eval().
221
222 0.6.3 (25 July 2000)
223 * Derivatives are now assembled in a slightly different manner (i.e. they
224   might 'look' different on first sight).  Under certain circumstances this
225   can result in a dramatic speedup because it gives hashing a better chance,
226   especially when computing higher derivatives.
227 * Some series expansions of built-in functions have been reengineered.
228 * The algorithm for computing determinants can be chosen by the user.  See
229   ginac/flags.h and ginac/matrix.h.
230 * The Dilogarithm (Li2) now has floating point evaluation, derivative and a
231   proper series expansion.
232 * Namespace 'std' cleanly disentangled, as demanded by ISO/EIC 14882-1998(E).
233 * Some minor bugfixes, one major lsolve()-bugfix and documentation updates.
234
235 0.6.2 (21 June 2000)
236 * ginaccint.bin is now launched by a binary program instead of by a scripts.
237   This allows us to write #!-scripts.  A small test suite for GiNaC-cint was
238   added.
239 * Several minor bugfixes.
240
241 0.6.1 (18 May 2000)
242 * Cleanup in the interface to Cint.  The required version is now Cint 5.14.38.
243 * Several bugfixes in target install.
244
245 0.6.0 (11 May 2000)
246 * IMPORTANT: Several interface changes make programs written with GiNaC 
247   much clearer but break compatibility with older versions:
248   - f(x).series(x,p[,o]) -> f(x).series(x==p,o)
249   - series(f(x),x,p[,o]) -> series(f(x),x==p,o)
250   - gamma() -> tgamma()  (The true Gamma function, there is now also
251     log(tgamma()), called lgamma(), in accord with ISO/IEC 9899:1999.)
252   - EulerGamma -> Euler
253 * #include'ing ginac.h defines the preprocessor symbols GINACLIB_MAJOR_VERSION,
254   GINACLIB_MINOR_VERSION, and GINACLIB_MICRO_VERSION with the respective GiNaC
255   library version numbers.
256 * Expressions can be constructed from strings like this:
257     ex e("2*x+y", lst(x, y));
258 * ex::to_rational() provides a way to extend the domain of functions like
259   gcd() and divide() that only work on polynomials or rational functions (the
260   good old ex::subs() method reverses this process)
261 * Calling diff() on a function that has no derivative defined returns the
262   inert derivative function "Derivative".
263 * Several new timings in the check target.  Some of them may be rather rude 
264   at your machine, feel free to interrupt them.
265
266 0.5.4 (15 March 2000)
267 * Some algorithms in class matrix (notably determinant) were replaced by
268   less brain-dead ones and should now have much better performance.
269 * Checks were completely reorganized and split up into three parts:
270   a) exams (small regression tests with predefined input)
271   b) checks (lenghty coherence checks with random input)
272   c) timings (for coherence and crude benchmarking)
273 * Behaviour of .evalf() was changed: it doesn't .evalf() any exponents.
274 * Expanded expressions now remember they are expanded to prevent
275   superfluous expansions.
276 * Small bugfixes and improvements in the series expansion.
277
278 0.5.3 (23 February 2000)
279 * A more flexible scheme for registering functions was implemented,
280   allowing for remembering, too.
281 * Some Bugfixes.
282
283 0.5.2 (16 February 2000)
284 * Mainly fixes a bug in the packaging of release 0.5.1.
285
286 0.5.1 (14 February 2000)
287 * Fixes a small number of bugs.
288
289 0.5.0 (7 February 2000)
290 * Expressions can be written ("archived") to files and read therefrom.
291 * Addition of GiNaC-cint, which lets you write complete programs in
292   an interactive shell-like manner in your favoured programming
293   language (i.e. C++).
294
295 0.4.1 (13 December 1999)
296 * Series Expansion of Gamma function and some other trigonometric
297   functions at their poles works now.
298 * Many more evaluations of special functions at points where
299   exact results exist.
300 * info_flags::rational doesn't return true for complex extensions
301   any more---use info_flags::crational for the old behaviour.
302   info_flags::integer and -::cinteger work similarly, the same
303   holds for types like info_flags::rational_polynomial.
304
305 0.4.0 (26 November 1999)
306 * First public release.