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