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