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