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