1 This file records noteworthy changes.
4 * Fix pow(+(...),2).expand() where the sum contained roots of expressions.
5 * Speed-up pow(+(...),n).expand() where n > 3.
6 * Fix a crash in PolyLogs of rational numbers.
9 * Fix pow(+(...),2).expand() where the sum contained roots of rationals.
10 * Various improvements for info(info_flags::nonnegative).
11 * Make power::expand() (x*p)^c -> x^c * p^c, if p>0.
12 * Fix normal() where nested functions occur multiple times.
13 * Add optional explicit derivatives to functions and use it in abs(),
14 imag_part(), real_part().
15 * Evaluate abs(z)^(2n) -> z^n * conjugate(z)^n.
17 1.6.3 (27 November 2014)
18 * New expand_options::expand_transcendental. GiNaC will apply additional
19 rules when expanding expressions if this option is specified, i.e.
20 log(a*b) -> log(a) + log(b)
21 exp(a + b) -> exp(a)*exp(b)
22 * Functions can define a custom expand() and info() now.
23 * Automatically rewrite (x^{-1})^c -> x^{-c} for positive c.
24 * Transform abs(x)^n -> x^n if x is real and n is even.
25 * Improved power::info(): power with a real base and even exponent
26 reports that it's non-negative.
27 * Fixed spurious match failure due to expairseq::match() bug:
28 > match(sin(y)*exp(b)+sin(x)*exp(a), sin($0)*exp(a)+exp(b)*sin($1))
30 * Fixed power::is_polynomial() and mul::is_polynomial() computation.
31 * factor_univariate correctly handles polynomials over rationals (no
33 * Fixed an infinite loop in factor_multivariate due to incorrect handling
34 of polynomials having a leading coefficient being a sum with a non-trivial
36 * Fixed numeric evaluation of generalized multiple polylogarithms for real
37 and negative argument.
38 * Avoid calling log(1-x) in numeric evaluation of classical polylogarithm.
39 * Fixed numeric evaluation of multiple polylogarithms (correctly set
40 the signs of the imaginary parts in the intermediate expression).
41 * Fixed numeric evaluation of Nielsen polylogs for arguments close to
42 the 6th root of unity or its conjugate.
43 * Avoid infinite recursion in series expansion of logarithm.
44 * numeric::info(info_flags::nonnegative) correctly handles complex numbers
45 with non-zero imaginary part.
46 * Fixed several build issues:
47 - libreadline and dlopen() misdetection.
48 - multiple definition of symbol on MinGW.
49 - auto* tools and texinfo being unhappy in various ways.
50 * GiNaC can be built with CMake now.
52 1.6.2 (6 November 2011)
53 * Fixed the parser to read GiNaC::lst again.
54 * Fixed a compile warning (relevant to openSUSE build).
55 * Fixed a bug concerning the subsitutions in indexed expressions
56 (subs_options::no_index_renaming was ignored).
59 * Fixed several internal assertions for the debug version of GiNaC.
60 * More verbose report of (auto-)configuration problems.
61 * Fixed a compile problem with ginsh using gcc 4.6.
64 * Fixed compilation issues with clang.
65 * Fixed compilation issues with VC++.
66 * Fixed a segfault in fsolve() and improved its numerical algorithm.
67 * Fixed several memory leaks in power::eval().
68 * Fixed the substitution algorithm that led to wrong results (exp(log(x))->x).
69 * Fixed a bug in add:eval() (real_part() had returned wrong results).
70 * Fixed infinite loop bug when unarchiving realsymbol and possymbol.
71 * Fixed bugs in the GCD code.
72 * Fixed empty string bug in symbol::get_name().
73 * Fixed bugs concerning STL vector sizes that can potentially cause segfaults.
74 * Fixed a bug in is_polynomial().
75 * Removed autogen dependencies.
76 * Improved simplify_indexed() algorithm.
77 * Changed the connection between library version and package version.
78 * power::series() can handle now more expressions with singularities in the exponent.
79 * Added conjugate() methods to functions cosh, sinh, tanh.
82 * Changed default behaviour of conjugate() for user-defined functions to avoid
83 wrong evaluations. A user-defined conjugate_func must now be explicitly
85 * Fixed: Parser now handles abbreviations as advertized in the manual.
86 * Fixed two bugs in the GCD code (one infinite loop, one miscalculation).
87 * Fixed dangerous iterator use.
88 * Fixed a memory leak in excompiler.
89 * Fixed several syntax issues wrt to gcc 4.5 and wrt to compile option -std=cxx0x.
90 * Fixed a wrong URL and a texinfo problem in the manual.
91 * Added degree_vector() utility function.
94 * Fixed a bug in the GCD code (infinite loop in pgcd()).
95 * Fixed a bug in atan2() (division by zero error for atan2(x,0) if x is a
96 negative and composite term).
97 * Products now correctly set info_flags::negative and info_flags::negint.
99 1.5.6 (28 January 2010)
100 * Fixed compile problem with gcc 3.4.
101 * Improved excompiler: The ginac-excompiler script will only be installed if
102 excompiler is supported and enabled.
104 1.5.5 (04 November 2009)
105 * Correct libtool versioning.
107 1.5.4 (02 November 2009)
108 * Default parser now can again read in user defined classes.
109 * Add mul::info() and add::info() support for numeric info_flags (GiNaC now can
110 detect that the sum or product of a number of positive expressions is again a
111 positive expression).
112 * Fixed cast that caused compile error on 64bit machines.
113 * Fixed incorrect uses of STL iterators.
114 * Removed subdirectory debian.
115 * Output LaTeX-symbols using \mathrm, instead of \mbox.
118 * The parser now understands user-defined functions by default. The identifier
119 names can now contain underscores.
122 * Fixed documentation of return_type_info()
123 * Fixed cstdio include issue.
124 * GiNaC now requires at least version 1.2.2 of cln.
126 1.5.1 (25 February 2009)
127 * Fixed compiling problems with GNU g++ 3.4.
128 * Work around weird C++ RTTI behaviour on woe32 so GiNaC works on MinGW again.
130 1.5.0 (17 February 2009)
131 * Added polynomial factorization.
132 * New, faster (recursive descent) expression parser.
133 * Faster GCD computation.
134 * gcd() now allows the user to override (some of the) heuristics.
135 * Writing extensions classes is simpler now:
136 - Replaced custom RTTI by standard C++ RTTI.
137 - Definition of archiving methods now optional when declaring a new GiNaC class.
138 * Fixed recursion in polynomial divide that caused a significant slowdown in
140 * Improved lsolve() of systems containing non-numeric coefficients.
141 * Removed implicit conversions from cl_N to numeric.
142 * Improved configuration and compatibility.
145 * Fixed a bug in the multiple polylogarithms Li/G that caused imaginary parts
146 of the arguments to be ignored.
147 * Fixed archiving of complex numbers.
148 * Made the behaviour of class function more consistent with respect to
150 * Fixed bug in power::is_polynomial.
151 * Improved heur_gcd() so it can handle rational polynomials.
152 * Improved build scripts.
154 1.4.3 (04 April 2008)
155 * Fixed bug in numerical evaluation of multiple polylogarithms and
156 alternating multiple zeta values introduced in version 1.4.2.
157 * Nielsen polylog now invalidates its lookup tables in case the precision
158 (Digits) has been changed.
159 * Added new checks for recent bugs in the numerical evaluation of Li and zeta.
161 1.4.2 (03 April 2008)
162 * Fixed VPATH building of documentation.
163 * Fixed bug in numerical evaluation of multiple polylogarithms for arguments
164 equal to certain roots of unity (thanks to Jianqiang Zhao).
165 * Fixed check for memory leakage in parser.
166 * Made internal function coerce() standard compliant.
167 * Improved lsolve() of systems containing non-numeric coefficients.
168 * Improved automatic test programs. Now they work on MinGW and Cygwin as well.
170 1.4.1 (21 November 2007)
171 * Fixed memory leak in ginac_yylex().
172 * Fixed memory leaks in mul::eval() and power::eval().
173 * Fixed macro checking for version of libreadline (Mac OS X).
174 * Fixed broken preprocessor instruction in excompiler.cpp.
175 * Fixed broken module loading in excompiler.cpp.
176 * info(info_flags::has_indices) now works for sums and products.
177 * Improved mul::expand().
178 * Improved CLN output.
180 1.4.0 (31 August 2007)
181 * New tinfo mechanism.
182 * Removed rtt from class symbol.
183 * Faster archiving by adding a map from strings to indices in the atoms vector.
184 * Improved unarchiving: algorithms order N instead of order N^2.
185 * Added compile function, excompiler class.
187 * Added step function to GiNaCs built-in functions.
188 * Added is_polynomial() method.
189 * Added real_part() and imag_part() methods.
190 * Added matrix::is_zero_matrix() method.
191 * Added evalm() method to pseries class.
192 * Improved dummy index renaming.
193 * Many improvements for class clifford.
194 * New flag for positive symbols/numbers, added possymbol class.
195 * Added programming examples in doc/examples
197 1.3.8 (28 August 2007)
198 * Drop support of ginac-config and ginac.m4. Please use pkg-config instead.
199 * atan2(y,x) branch cut correction.
200 * Fixed bug in series expansion.
201 * Additional transformations for mul and power.
202 * Clifford units now honor representation labels.
203 * Correct csrc output for idx and fderivative.
204 * Improved handling of convergence transformationis for Li/G.
205 * Fix compilation issues with prereleases of GCC 4.3.
206 * info_flags::expanded added.
207 * input_parser also accepts pow().
208 * texinfo.tex removed from package.
210 1.3.7 (05 February 2007)
211 * Fixed bug in expansion of power.
212 * Fixed bugs in functions S() (infinite loop), H() and zeta() (wrong results).
213 * Rebuilt bison related files with bison version 2.3 (fixes parse error bugs).
214 * Improved power::eval().
215 * Improved libreadline detection.
217 1.3.6 (13 December 2006)
218 * Better worst case behavior in heuristic gcd.
219 * Improved collecting for sparse multivariate polynomials.
220 * Improved collect_common_factors.
221 * Fixed bug in numerical evaluation of multiple polylogs.
222 * Fixed numerical integration of complex functions.
223 * Fixed bug in tensor::replace_contr_index().
225 1.3.5 (17 August 2006)
226 * Re-built bison related files that caused bugs with gcc 4.
227 * Fixed bugs in fderivative::match_same_type(), expairseq::match(),
228 expand_dummy_sum(), and expairseq::map().
229 * Fixed template specialization for class container to be gcc 4.2 compliant.
230 * Output in csrc mode is now -x instead of -1.0*x.
231 * Fixed tutorial and reference generation in html/pdf/ps format.
232 * Modified autotool configuration to allow for compilation on MinGW.
233 * Debian packaging files updated.
235 1.3.4 (12 April 2006)
236 * More general index dimensions are now possible.
237 * Improved algebraic substitutions.
238 * Fixed wrong matching in .has().
239 * Fixed bug in differentiation of a power.
240 * collect_common_factors also works with negative powers of common factors now.
241 * Code clean-up and preparations for upcoming cln 1.2.
243 1.3.3 (24 October 2005)
244 * Fixed bug occuring in algebraic substitutions with expressions involving
246 * Fixed bug that selected the wrong algorithm for determinants of purely
247 numeric matrices with at least one floating point element.
248 * Fixed bug in function H that caused an infinite recursion for arguments
250 * Fixed const-correctness in printing handler for GCC 4.0.2.
251 * Made lookup in adaptivesimpson precision-aware.
252 * Added series expansion for functions (classical) Li and S around x==0.
253 * Added fsolve() numerical univariate real-valued function solver.
254 * Added functions sub_matrix() and reduced_matrix().
255 * Small cleanups. Less warnings with latest GCC.
258 * GCD avoids to produce expanded expressions.
259 * Fixed bug in expanding expressions containing dummy indices.
260 * Fixed static initialization order bug.
261 * collect_common_factors now works with powers.
262 * Modernized configuration scripts.
265 * integral() and eval_integ() can be used from ginsh.
266 * Integrals can be series-expanded.
267 * Fixed a library initialization problem.
268 * GiNaC compiles from tarball even if lex/flex is missing.
269 * Fixed bugs in canonicalize_clifford(), clifford_prime() and clifford_to_lst().
270 * clifford_moebius_map(), remove_dirac_ONE() and LaTeX output of Clifford
271 objects now care about representation labels.
273 * Better output for slashed expressions
275 1.3.0 (19 October 2004)
276 * The Clifford classes have been generalized to allow working with Clifford
277 algebras generated by arbitrary symmetric tensors or matrices. Also, a lot
278 of new functions for Clifford algebras have been added, including
279 automorphisms and Moebius transformations. [V. Kisil]
280 * Added some basic symbolic and numeric integration facilities. [C. Dams]
281 * The multiple polylogarithm Li() now evaluates numerically for arbitrary
283 * New functions G(a,y) and G(a,s,y) added (another notation for multiple
286 1.2.4 (12 October 2004)
287 * Added ex::unitcontprim() to compute the unit, content, and primitive parts
288 of a polynomial in one go.
289 * binomial(n, k) evaluates for non-integer arguments n.
290 * Li(2,x) now evaluates for +-I.
292 * Fixed bug in Li(n,x) (if Li(2,x) was calculated with high precision the
293 enlargement of the look-up table caused a segmentation fault).
294 * Fixed another bug in the series expansion of powers, and a bug in
297 1.2.3 (13 August 2004)
298 * Added variants of dirac_trace() and color_trace() that take the trace over
299 more than one representation label by specifying a set or list of labels.
300 * diracgamma::contract_with() uses Chisholm identities in 4 dimensions to
301 produce more compact results.
302 * Fixed a bug in the series expansion of powers.
303 * The --enable-html-doc and --enable-ps-doc configure options are gone.
304 Documentation in HTML, DVI, PostScript, and PDF formats is now built with
305 "make html", "make dvi", "make ps", and "make pdf", respectively. The only
306 documentation that gets built by default are the tutorial in .info format
309 1.2.2 (3 August 2004)
310 * Added const_preorder_iterator and const_postorder_iterator classes (and
311 associated methods ex::pre/postorder_begin/end()) providing tree traversal
313 * Fixed the LaTeX output of the varidx class.
314 * Fixed bugs in series expansion and complex conjugation.
315 * (p.i*p.i).get_free_indices() returns the correct result () instead of (.i).
316 * Symbolic functions without any eval(), evalf() etc. functions now work
318 * integer_content(), content(), and primpart() now also work for polynomials
319 with rational coefficients (calculating the LCM of coefficients'
321 * Added method matrix::rank().
322 * Added function resultant().
323 * Added integer_content() function to ginsh.
325 1.2.1 (23 April 2004)
326 * Fixed infinite recursion in atan2_evalf() and improved atan2_eval().
327 * Added automatic evaluations for trigonometric functions with negative
328 arguments (e.g. sin(-2) -> -sin(2)).
329 * Fixed a static initialization order goof-up.
330 * Fixed various bugs in series expansion.
332 1.2.0 (19 March 2004)
333 * Added a structure<T> template class for the easy creation of user-defined
335 * Added support for (acyclic) visitors, to allow cleaner implementations of
336 algebraic algorithms.
337 * Added a const_iterator class that can be used instead of op()/nops().
338 * Completely revamped the implementation of expression output. It is now
339 possible to add new output formats, to change the behavior of predefined
340 formats at run-time, and to have different output styles for algebraic
342 * Symbols can be made non-commutative.
343 * Added a method ex::conjugate() and a function conjugate() for complex
344 conjugation. Symbols can be declared as real or complex-valued.
345 * Improved the speed of subs(), normal(), to_rational() and to_polynomial()
346 by the use of maps instead of lists. The old forms
347 subs(const lst & ls, const lst & lr, unsigned options)
348 to_rational/to_polynomial(lst & repl)
349 are still available for compatibility, but using the new forms
350 subs(const exmap & m, unsigned options)
351 to_rational/to_polynomial(exmap & repl)
352 is more efficient, especially when the number of replacements is large.
353 * quo(), rem(), prem(), sprem(), decomp_rational(), unit(), content(),
354 primpart() and matrix::charpoly() now take a "const ex &" instead of a
356 * Redundant expressions (two ex pointing to different objects are found to be
357 equal in compare()) are now actively deleted/fused to conserve memory and
358 speed up subsequent comparisons. This behavior can be suppressed on a
359 per-object level with status_flags::not_shareable. Lists and matrices are
360 not shareable by default.
361 * Lots of internal streamlining and optimizations.
362 * Caveats for class implementors:
363 - basic::copy() and basic::destroy() are gone; classes derived from
364 basic can use the defaults for the assignment operator and copy
366 - basic::subs(), basic::normal(), basic::to_rational() and
367 basic::to_polynomial() take 'exmap' objects instead of lists.
368 - basic::subs() now descends into subexpressions (if accessible via
369 nops()/op()/let_op()). If you have a custom implementation of subs()
370 that calls basic::subs() after substituting subexpressions, this needs
371 to be changed to a call to subs_one_level().
372 - lst::thislst() and exprseq::thisexprseq() renamed to thiscontainer().
373 - thiscontainer() and associated constructors now take a std::auto_ptr.
374 - Overloading basic::print() is now deprecated. You should use
375 print_func<>() class options instead.
377 1.1.7 (11 March 2004)
378 * Fixed a bug in canonicalize_clifford().
379 * Series expansion now works predictably. All terms with the exponent of the
380 expansion variable smaller than the given order are calculated exactly. If
381 the series is not terminating, the Order function is (at least) of the given
384 1.1.6 (22 January 2004)
385 * Added a function option "dummy()" which means "no options". This simplifies
386 the implementation of symbolic functions which are not to be further
388 * Removed a bug in the numerical evaluation of Li() that caused the system
389 to hang for certain parameter combinations.
390 * Fixed a bug in the calculation of hash values for indices that could lead
391 to wrong results or bogus error messages from simplify_indexed().
392 * Fixed a bug in the evaluation of harmonic polylogarithms for complex
393 arguments with positive imaginary part.
395 1.1.5 (5 November 2003)
396 * Harmonic polylogarithms now numerically evaluate for arbitrary arguments
397 (parameter must still be positive integers).
398 * The zeta function now can also be given a lst as a parameter in which case
399 it becomes a multiple zeta value. The use of mZeta is deprecated.
400 * The order of parameters for the multiple polylogarithm has been corrected.
401 * Documentation for the nested sums functions zeta, harmonic polylog, multiple
402 polylog, etc. has been added.
404 1.1.4 (17 October 2003)
405 * Lists and matrices can now be initialized from comma-separated lists of
406 expressions, like this:
416 This is both faster and produces much smaller code than the old constructors
417 lst(ex, ex, ...) and matrix(unsigned, unsigned, lst), especially in the case
418 of matrices, and is now the recommended way to create these objects.
419 * The function mZeta now evaluates much faster for arbitrary parameters. The
420 harmonic and multiple polylogarithms evaluate considerably faster and check
421 for convergence. The order of parameters for the harmonic polylogarithm
424 1.1.3 (22 August 2003)
425 * Added new symbolic functions for better integration with nestedsums:
426 (multiple) polylogarithm Li(), Nielsen's generalized polylogarithm S(),
427 harmonic polylogarithm H(), and multiple zeta value mZeta().
428 * New exhashmap<T> template intended as a drop-in replacement for
429 std::map<ex, T, ex_is_less> using GiNaC's hashing algorithms.
431 1.1.2 (11 August 2003)
432 * Fixed a bug in the unarchiving of sums and products: terms were not
433 reordered in a canonical way.
434 * Fixed a bug in normal()/numer_denom(): denominator was not made unit
435 normal if it was a simple number.
436 * Improved the speed of subs() in some cases.
439 * lst (and exprseq) provide iterators for read-only element access. For
440 sequential access this is one order faster than using op().
441 * Implemented relational::subs() (this was done in 1.0.9 but inadvertently
442 omitted from the 1.1 branch).
443 * pole_error and do_taylor are available to library users.
444 * Added on-line help and Tab-completion for print(), iprint(), print_latex()
445 and print_csrc() in ginsh.
448 * Removed deprecated macros is_ex_a, is_ex_exactly_a and friends for good.
449 * The scalar_products mechanism allows the specification of an index dimension.
450 * Removed dirac_gamma6/7().
451 * Added ex::to_polynomial().
452 * subs() accepts an optional "options" argument. The option
453 subs_option::subs_algebraic enables "smart" substitutions in products and
455 * Added stream manipulators "dflt", "latex", "python", "python_repr", "tree",
456 "csrc", "csrc_float", "csrc_double", "csrc_cl_N", "index_dimensions" and
457 "no_index_dimensions" to control the output format. Calling basic::print()
458 directly is now deprecated.
459 * Made the hashing more simple and efficient.
460 * Caveats for class implementors:
461 - basic::subs(): third argument changed from "bool" to "unsigned"
462 - unarchiving constructor and basic::unarchive(): "const" removed from
464 - basic::let_op() should only be implemented if write access to
465 subexpressions is desired
466 - simplify_ncmul() renamed to eval_ncmul()
467 - simplified_ncmul() renamed to hold_ncmul()
468 - nonsimplified_ncmul() renamed to reeval_ncmul()
470 1.0.14 (1 March 2003)
471 * Improved the C-source output: complex numbers are printed correctly (using
472 the STL complex<> template or cln::complex()), rational numbers use cl_RA()
473 in the CLN output, and small integers are printed in a more compact format
474 (e.g. "2.0" instead of "2.0000000e+00").
475 * function_options::set_return_type() and function_options::do_not_evalf_params()
478 1.0.13 (27 January 2003)
479 * Contracting epsilon tensors with Euclidean indices now works.
480 * Improved dummy index symmetrization in sums.
481 * Added dirac_gammaL/R(), which can be used instead of dirac_gamma6/7()
482 but are single objects, to allow for a more compact notation of Dirac
484 * Powers with negative numeric exponents are printed as fractions in the
486 * Added symbolic_matrix() for the convenient creation of matrices filled
488 * Added collect_common_factors() which collects common factors from the
490 * simplify_indexed() converts "gamma~mu*p.mu" to "p\".
492 1.0.12 (30 October 2002)
493 * Fixed a bug in power::expand() that could produce invalid expressions.
494 * The input parser no longer ignores extra data following accepted input.
495 * Improved the CLN C-source output (integers are printed as integers, and
496 floating point numbers include the precision).
497 * Fixed a problem in the LaTeX-output of negative fractions.
498 * Added print_latex() and print_csrc() to ginsh.
499 * The sprem() function is now public.
501 1.0.11 (18 September 2002)
502 * Fixed a possible memory corruption in contractions of indexed objects with
503 delta or metric tensors.
504 * Computing the derivative of a power series object with respect to a symbol
505 that is not the expansion variable now works correctly.
506 * Several bugfixes in code generation.
508 1.0.10 (24 July 2002)
509 * Powers of indexed objects are now parenthesized correctly in LaTeX output.
510 * Input parser handles indices (they have to be specified in the same list
512 * Added some limited support for subspaces in the idx and tensor classes.
513 * Fixed a bug in canonicalize() (antisymmetric canonicalization of an already
514 sorted list containing two or more equal objects failed to return 0).
517 * simplify_indexed() now raises/lowers dummy indices to canonicalize the index
518 variance. This allows some simplifications that weren't possible before,
519 like eps~a.b~c~d*X.a*X~b -> 0 and X.a~a-X~a.a -> 0.
520 * Implemented relational::subs().
521 * Fixed bug in simplify_ncmul() for clifford objects.
523 1.0.8 (31 March 2002)
524 * Improvements in memory usage of the expand() methods.
526 1.0.7 (18 March 2002)
527 * Fixed LaTeX output of indexed and matrix objects.
528 * Fixed matrix::pow(n) for n==0 and added helper functions to create unit
529 matrices "ex unit_matrix(unsigned, unsigned)".
532 * "(x+1).subs(x==x-1)" now returns the correct result "x" instead of "x-1".
534 1.0.5 (27 January 2002)
535 * (l)degree(s), coeff(s, n) and collect(s) were extended to accept expressions
536 of any class (except add/mul/ncmul/numeric) for "s". They should even work
537 if "s" is a "power" object, as long as the exponent is non-integer, but with
538 some limitations. For example, you can "collect(a*2^x+b*2^x, 2^x)" to get
539 "(a+b)*2^x", but "degree(2^(3*x), 2^x)" yields 0 instead of 3).
540 * Fixed a small output bug.
542 1.0.4 (24 January 2002)
543 * Speedup in expand().
544 * Faster Bernoulli numbers (Markus Nullmeier).
545 * Some minor bugfixes and documentation updates.
547 1.0.3 (21 December 2001)
548 * Fixed a bug where quo() would call vector::reserve() with a negative
550 * Fix several bugs in code generation.
552 1.0.2 (19 December 2001)
553 * Input parser recognizes "sqrt()", which is also used in the output.
554 * divide(a,b,q) only modifies q if the division succeeds; also, divide(a,b,a)
556 * Fixed small bug in dummy index renaming which could cause it to not
557 recognize renamable indices in some cases.
558 * power::degree() and power::ldegree() throw an exception when encountering
559 a non-integer exponent.
560 * Add output-support for Python bindings.
562 1.0.1 (22 November 2001)
563 * Function sqrfree() handles a few more cases now.
564 * Class relational has real canonical ordering now.
565 * Handle obscene libreadline version numbers when building ginsh.
567 1.0.0 (6 November 2001)
568 * Some internal reorganization resulting in a general speed-up.
569 * The last 3 evaluated expressions in ginsh are now referred to with the
570 tokens '%', '%%' and '%%%'. The old '"', '""' and '"""' remain for
571 compatibility but may be removed in a future version of GiNaC.
573 0.9.4 (20 September 2001)
574 * Functions have better support for external scripting languages.
575 * Interface cleanups and bugfixes.
576 * Fix silly bug in evalf() that prevented things like 2^Pi being computed.
578 0.9.3 (16 August 2001)
579 * series expansion now much more consistent for small order expansion.
580 * lsolve() accepts algorithmic hint as parameter.
583 * Epsilon tensor is more functional.
584 * simplify_indexed() is better at detecting expressions that vanish for
586 * Several little bugfixes and consistency enhancements.
589 * Ctors of class numeric are not explicit any more. All built-in callers for
590 pseudofunctions are now templated and default to ex arguments which relaxes
591 the need for explicit ctors.
592 * New functions/methods:
594 - remove_first(), remove_last(), sort() and unique() for lists
595 - symmetrize_cyclic()
597 * Instead of just totally symmetric or antisymmetric, complex symmetries
598 can now be defined for indexed objects. Symmetries are described by a
599 tree of "symmetry" objects that is constructed with the sy_none(),
600 sy_symm(), sy_anti() and sy_cycl() functions. The symmetry of a function
601 with respect to its arguments can also be defined (this is currently
602 only used for the Beta function).
603 * Generalized map() to take a function object instead of a function pointer.
604 This allows passing an arbitrary number of additional state to the
605 function being called.
606 * color_trace(), dirac_trace(), diff(), expand(), evalf() and normal() work
607 better with container classes, e.g. using color_trace() on a relation will
608 take the trace on both sides, using diff() on a matrix differentiates every
610 * diff() works properly with non-commutative products and indexed objects.
611 * New option flag "expand_function_args" for expand().
612 * Supplement some (now deprecated) macros by inlined template functions:
613 - is_of_type(foo, type) -> is_a<type>(foo)
614 - is_ex_of_type(foo, type) -> is_a<type>(foo)
615 - is_exactly_of_type(foo, type) -> is_exactly_a<type>(foo)
616 - is_ex_exactly_of_type(foo, type) -> is_exactly_a<type>(foo)
617 - ex_to_foobar(baz) -> ex_to<foobar>(baz)
618 * rem(c, p[x], x) (c: numeric, p[x]: polynomial) erroneously returned p[x]
620 * Small bugfixes in pattern matching.
621 * Updated libtool to version 1.4.
624 * In the output and in ginsh, lists are now delimited by { } braces, and
625 matrices are delimited by single [ ] brackets.
626 * simplify_indexed() renames dummy indices so, e.g., "a.i*a.i+a.j*a.j" gets
627 simplified to "2*a.i*a.i" (or "2*a.j*a.j").
628 * New functions/methods:
629 - canonicalize_clifford() (helpful when comparing expressions containing
631 - symmetrize() and antisymmetrize()
632 - numer_denom() (return numerator and denominator in one call)
633 - map() (apply function to subexpressions)
634 - evalm() (evaluate sums, products and integer powers of matrices)
635 * Added a new function match() for performing pattern matching. subs() and
636 has() also accept patterns as arguments. A pattern can be any expression,
637 optionally containing wildcard objects. These are constructed with the
638 call "wild(<unsigned>)" and are denoted as "$0", "$1" etc. in the output
640 * Positive integer powers of non-commutative expressions (except matrices)
641 are automatically expanded.
642 * Removed cint subdirectory, ginaccint is a separate package now due to
643 packaging considerations.
644 * Several little bugfixes.
647 * color and clifford classes are functional and documented.
648 * New "spinidx" class for dotted/undotted indices.
649 * Predefined spinor metric tensor (created by spinor_metric()).
650 * Symbols can have a LaTeX name, e.g. symbol s("s", "\\sigma");
651 * LaTeX output of indexed objects is much nicer.
652 * Fixed some build problems (with recent libreadline).
653 * Semantics of arithmetic operators now follows the C++ rules more strictly.
655 0.8.2 (24 April 2001)
656 * degree(), ldegree(), coeff(), lcoeff(), tcoeff() and collect() work with
657 non-symbols as the second argument in ginsh.
658 * the argument to collect() can be a list of objects in which case the
659 result is either a recursively collected polynomial, or a polynomial in
660 a distributed form with terms like coeff*x1^e1*...*xn^en, as specified by
661 the second argument to collect().
662 * Several bugfixes (including a nasty memory leak in .normal()).
663 * class matrix: solve() doesn't call algorithms redundantly any more and
664 inverse() falls back to solve() which works in more general cases.
666 0.8.1 (16 April 2001)
667 * degree(), ldegree(), coeff(), lcoeff(), tcoeff() and collect() can now
668 be used with constants, functions and indexed expressions as well, so you
669 can use it to collect by powers of Pi or sin(x), or to find the coefficient
672 - it only works with symbols, constants, functions and indexed expressions,
673 trying to find the coefficient of, e.g., "x^2" or "x+y" won't work;
674 - it does not know about dummy index summations; the coefficient of
675 gamma~0 in p.mu*gamma~mu should be p.0 but is returned as 0;
676 - using coeff(), tcoeff(), lcoeff() or collect() on elements of
677 noncommutative products might return wrong or surprising results.
678 * subs() no longer only substitutes symbols and indices but performs a more
679 general "syntactic substitution", i.e. it substitutes whole objects in sub-
680 expressions. You can subs((a+b)^2,a+b==3) and get 9, but subs(a+b+c,a+b==3)
683 - substituting numerics (subs(expr, 2==4)) will not replace then in all
684 occurences; in general, you shouldn't substitute numerics, though.
685 * Added preliminary (re)implementations of color and clifford classes.
686 * simplify_indexed(): contraction of symmetric and antisymmetric tensors
688 * Replaced the various print*() member functions by a single print() that
689 takes a print_context object that determines the output formatting. This
690 should make it easier to add more output types, such as LaTeX output,
691 which is based on work by Stefan Weinzierl.
692 * Added functions to retrieve the properties stored in archive objects
693 outside of unarchive() (for printing or debugging purposes).
694 * Some bugfixes (indexed objects, archive writing).
695 * .collect() on non-polynomials is now algebraically correct.
697 0.8.0 (24 March 2001)
698 * Complete revamp of indexed objects. Instead of multiple classes for
699 indexed things and their indices there is now only one "indexed" class
700 and two types of indices: "idx" for simple indices and "varidx" for
701 indices with variance. There are predefined delta, epsilon and metric
702 tensors, and a function simplify_indexed() that performs canonicalization
703 and dummy index summations. Matrix objects can be indexed for doing simple
705 * Added an option "expand_indexed" to expand() to perform expansion of
706 indexed objects like (a+b).i -> a.i + b.i
707 * Renamed get_indices() to get_free_indices(), which no longer returns
708 dummy indices and checks the consistency of indices in sums.
709 * sqrfree() factorization fixed and improved syntactically.
710 * subs() works on matrices.
711 * Matrices can be constructed from flat list of elements; diagonal matrices
712 can be constructed from list of diagonal elements with diag_matrix().
713 * Fixed memory leak in expand().
714 * Operator% for objects of class ncmul has gone. Use operator* now for that
715 case too, which is much more natural.
717 0.7.3 (28 February 2001)
718 * Several bugfixes and minor performance tunings.
719 * Added a section to the tutorial about adding new algebraic classes to GiNaC.
720 * Closed many in-source documentation gaps.
722 0.7.2 (17 February 2001)
723 * Several bugfixes in power series expansion, one of them critical.
725 0.7.1 (7 February 2001)
726 * Fix problems with Cint that were caused by CLN's overloaded operator new.
727 * Fix compilation errors with GCC3.
728 * normal() handles large sums of fractions better and normalizes the exponent
729 of power expressions.
730 * expand() always expands the exponent and transforms x^(a+b) -> x^a*x^b.
731 * Some bugfixes of series expansion around branch cuts of special functions.
733 0.7.0 (15 December 2000)
734 * Requires CLN 1.1 now. Class numeric doesn't use an indirect pointer to the
735 actual representation any more. This is a speedup.
736 * mul::expand() was reengineered to not allocate excess temporary memory.
737 * Non-integer powers of a symbol are treated as constants by (l)degree() and
738 coeff(). Using these functions on an expression containing such powers used
739 to fail with an internal error message. The side-effect is that collect()
740 can be used on expressions which are not polynomials.
741 * Added a man page for the ginac-config script.
742 * Ctor of numeric from char* honors Digits.
744 0.6.4 (10 August 2000)
745 * Complete revamp of methods in class matrix. Some redundant (and poor)
746 implementations of elimination schemes were thrown out. The code is now
747 highly orthogonal, more flexible and much more efficient.
748 * Some long standing and quite nasty bugs were discovered and fixed in the
749 following functions: add::normal(), heur_gcd(), sr_gcd() and Order_eval().
752 * Derivatives are now assembled in a slightly different manner (i.e. they
753 might 'look' different on first sight). Under certain circumstances this
754 can result in a dramatic speedup because it gives hashing a better chance,
755 especially when computing higher derivatives.
756 * Some series expansions of built-in functions have been reengineered.
757 * The algorithm for computing determinants can be chosen by the user. See
758 ginac/flags.h and ginac/matrix.h.
759 * The Dilogarithm (Li2) now has floating point evaluation, derivative and a
760 proper series expansion.
761 * Namespace 'std' cleanly disentangled, as demanded by ISO/EIC 14882-1998(E).
762 * Some minor bugfixes, one major lsolve()-bugfix and documentation updates.
765 * ginaccint.bin is now launched by a binary program instead of by a scripts.
766 This allows us to write #!-scripts. A small test suite for GiNaC-cint was
768 * Several minor bugfixes.
771 * Cleanup in the interface to Cint. The required version is now Cint 5.14.38.
772 * Several bugfixes in target install.
775 * IMPORTANT: Several interface changes make programs written with GiNaC
776 much clearer but break compatibility with older versions:
777 - f(x).series(x,p[,o]) -> f(x).series(x==p,o)
778 - series(f(x),x,p[,o]) -> series(f(x),x==p,o)
779 - gamma() -> tgamma() (The true Gamma function, there is now also
780 log(tgamma()), called lgamma(), in accord with ISO/IEC 9899:1999.)
781 - EulerGamma -> Euler
782 * #include'ing ginac.h defines the preprocessor symbols GINACLIB_MAJOR_VERSION,
783 GINACLIB_MINOR_VERSION, and GINACLIB_MICRO_VERSION with the respective GiNaC
784 library version numbers.
785 * Expressions can be constructed from strings like this:
786 ex e("2*x+y", lst(x, y));
787 * ex::to_rational() provides a way to extend the domain of functions like
788 gcd() and divide() that only work on polynomials or rational functions (the
789 good old ex::subs() method reverses this process)
790 * Calling diff() on a function that has no derivative defined returns the
791 inert derivative function "Derivative".
792 * Several new timings in the check target. Some of them may be rather rude
793 at your machine, feel free to interrupt them.
795 0.5.4 (15 March 2000)
796 * Some algorithms in class matrix (notably determinant) were replaced by
797 less brain-dead ones and should now have much better performance.
798 * Checks were completely reorganized and split up into three parts:
799 a) exams (small regression tests with predefined input)
800 b) checks (lenghty coherence checks with random input)
801 c) timings (for coherence and crude benchmarking)
802 * Behaviour of .evalf() was changed: it doesn't .evalf() any exponents.
803 * Expanded expressions now remember they are expanded to prevent
804 superfluous expansions.
805 * Small bugfixes and improvements in the series expansion.
807 0.5.3 (23 February 2000)
808 * A more flexible scheme for registering functions was implemented,
809 allowing for remembering, too.
812 0.5.2 (16 February 2000)
813 * Mainly fixes a bug in the packaging of release 0.5.1.
815 0.5.1 (14 February 2000)
816 * Fixes a small number of bugs.
818 0.5.0 (7 February 2000)
819 * Expressions can be written ("archived") to files and read therefrom.
820 * Addition of GiNaC-cint, which lets you write complete programs in
821 an interactive shell-like manner in your favoured programming
824 0.4.1 (13 December 1999)
825 * Series Expansion of Gamma function and some other trigonometric
826 functions at their poles works now.
827 * Many more evaluations of special functions at points where
829 * info_flags::rational doesn't return true for complex extensions
830 any more---use info_flags::crational for the old behaviour.
831 info_flags::integer and -::cinteger work similarly, the same
832 holds for types like info_flags::rational_polynomial.
834 0.4.0 (26 November 1999)
835 * First public release.