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