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