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