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