]> www.ginac.de Git - ginac.git/blobdiff - ginac/integral.cpp
[BUGFIX] Fix crash in parser.
[ginac.git] / ginac / integral.cpp
index d2d451b4b4a41258f9941a9be43f8b59c4cb12c6..db5a46c65e9de8efc8cedfac0adfd9cb0e04f44a 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's symbolic  integral. */
 
 /*
- *  GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2024 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -40,6 +40,7 @@ namespace GiNaC {
 
 GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(integral, basic,
   print_func<print_dflt>(&integral::do_print).
+  print_func<print_python>(&integral::do_print).
   print_func<print_latex>(&integral::do_print_latex))
 
 
@@ -229,7 +230,7 @@ ex adaptivesimpson(const ex & x, const ex & a_in, const ex & b_in, const ex & f,
        static lookup_map lookup;
        static symbol ivar("ivar");
        ex lookupex = integral(ivar,a,b,f.subs(x==ivar));
-       lookup_map::iterator emi = lookup.find(error_and_integral(error, lookupex));
+       auto emi = lookup.find(error_and_integral(error, lookupex));
        if (emi!=lookup.end())
                return emi->second;