X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=doc%2Ftutorial%2Fginac.texi;h=9af3d527096f4f0bdd4c8188fc4e2ab868b19fff;hp=eb972664e38e07c0511aa21129ab6cc1ee164ee8;hb=319c9533e12eba2449001c47545e3c3cf48c482f;hpb=7adba122edcf89d3d74cc2e89b1017fa5ea2ad01 diff --git a/doc/tutorial/ginac.texi b/doc/tutorial/ginac.texi index eb972664..9af3d527 100644 --- a/doc/tutorial/ginac.texi +++ b/doc/tutorial/ginac.texi @@ -24,7 +24,7 @@ This is a tutorial that documents GiNaC @value{VERSION}, an open framework for symbolic computation within the C++ programming language. -Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany +Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice @@ -52,7 +52,7 @@ notice identical to this one. @page @vskip 0pt plus 1filll -Copyright @copyright{} 1999-2015 Johannes Gutenberg University Mainz, Germany +Copyright @copyright{} 1999-2016 Johannes Gutenberg University Mainz, Germany @sp 2 Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice @@ -135,7 +135,7 @@ the near future. @section License The GiNaC framework for symbolic computation within the C++ programming -language is Copyright @copyright{} 1999-2015 Johannes Gutenberg +language is Copyright @copyright{} 1999-2016 Johannes Gutenberg University Mainz, Germany. This program is free software; you can redistribute it and/or @@ -4157,12 +4157,12 @@ provides two functors that can be supplied as proper binary comparison predicates to the STL: @example -class ex_is_less : public std::binary_function @{ +class ex_is_less @{ public: bool operator()(const ex &lh, const ex &rh) const; @}; -class ex_is_equal : public std::binary_function @{ +class ex_is_equal @{ public: bool operator()(const ex &lh, const ex &rh) const; @}; @@ -4190,7 +4190,7 @@ std::sort(v.begin(), v.end(), ex_is_less()); // count the number of expressions equal to '1' unsigned num_ones = std::count_if(v.begin(), v.end(), - std::bind2nd(ex_is_equal(), 1)); + [](const ex& e) @{ return ex_is_equal()(e, 1); @}); @end example The implementation of @code{ex_is_less} uses the member function @@ -4213,7 +4213,7 @@ GiNaC keeps algebraic expressions, numbers and constants in their exact form. To evaluate them using floating-point arithmetic you need to call @example -ex ex::evalf(int level = 0) const; +ex ex::evalf() const; @end example @cindex @code{Digits} @@ -8323,7 +8323,7 @@ might want to provide: @example bool info(unsigned inf) const override; -ex evalf(int level = 0) const override; +ex evalf() const override; ex series(const relational & r, int order, unsigned options = 0) const override; ex derivative(const symbol & s) const override; @end example