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