On Wed, Nov 13, 2019 at 6:15 PM E. Madison Bray <erik.m.b...@gmail.com> wrote: > > Testing this on Windows + Python 3 for the first time in a while. > During the docbuild it crashes while generating one of the plots, with > some call to maxima resulting in: > > RuntimeError: ECL says: #<a FLOATING-POINT-OVERFLOW> > > I'll see if I can get this in any other context. Has anyone else seen > problems like this on Python 3?
How to reproduce: sage: f = piecewise([((0,pi/2), -1), ((pi/2,pi), 2)]) sage: s5 = f.fourier_series_partial_sum(5) --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-2-9ea0d6ecd263> in <module>() ----> 1 s5 = f.fourier_series_partial_sum(Integer(5)) /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression._eval_on_operands.new_f (build/cythonized/sage/symbolic/expression.cpp:67434)() 12688 new_args = list(ex._unpack_operands()) 12689 new_args.extend(args) > 12690 return f(ex, *new_args, **kwds) 12691 return new_f 12692 /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/functions/piecewise.py in fourier_series_partial_sum(self, parameters, variable, N, L) 1347 L = (self.domain().sup() - self.domain().inf()) / 2 1348 x = self.default_variable() -> 1349 a0 = self.fourier_series_cosine_coefficient(0, L) 1350 result = a0/2 + sum([(self.fourier_series_cosine_coefficient(n, L)*cos(n*pi*x/L) + 1351 self.fourier_series_sine_coefficient(n, L)*sin(n*pi*x/L)) /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression._eval_on_operands.new_f (build/cythonized/sage/symbolic/expression.cpp:67434)() 12688 new_args = list(ex._unpack_operands()) 12689 new_args.extend(args) > 12690 return f(ex, *new_args, **kwds) 12691 return new_f 12692 /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/functions/piecewise.py in fourier_series_cosine_coefficient(self, parameters, variable, n, L) 1179 a = interval.lower() 1180 b = interval.upper() -> 1181 result += (f*cos(pi*x*n/L)).integrate(x, a, b) 1182 return SR(result/L0).simplify_trig() 1183 /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx in sage.symbolic.expression.Expression.integral (build/cythonized/sage/symbolic/expression.cpp:64542)() 12370 R = ring.SR 12371 return R(integral(f, v, a, b, **kwds)) > 12372 return integral(self, *args, **kwds) 12373 12374 integrate = integral /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/symbolic/integration/integral.py in integrate(expression, v, a, b, algorithm, hold) 921 return indefinite_integral(expression, v, hold=hold) 922 else: --> 923 return definite_integral(expression, v, a, b, hold=hold) 924 925 /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/symbolic/function.pyx in sage.symbolic.function.BuiltinFunction.__call__ (build/cythonized/sage/symbolic/function.cpp:12262)() 1025 res = self._evalf_try_(*args) 1026 if res is None: -> 1027 res = super(BuiltinFunction, self).__call__( 1028 *args, coerce=coerce, hold=hold) 1029 /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/symbolic/function.pyx in sage.symbolic.function.Function.__call__ (build/cythonized/sage/symbolic/function.cpp:6938)() 484 for i from 0 <= i < len(args): 485 vec.push_back((<Expression>args[i])._gobj) --> 486 res = g_function_evalv(self._serial, vec, hold) 487 elif self._nargs == 1: 488 res = g_function_eval1(self._serial, /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/symbolic/function.pyx in sage.symbolic.function.BuiltinFunction._evalf_or_eval_ (build/cythonized/sage/symbolic/function.cpp:13412)() 1113 res = self._evalf_try_(*args) 1114 if res is None: -> 1115 return self._eval0_(*args) 1116 else: 1117 return res /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/symbolic/integration/integral.py in _eval_(self, f, x, a, b) 195 for integrator in self.integrators: 196 try: --> 197 A = integrator(*args) 198 except (NotImplementedError, TypeError): 199 pass /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/symbolic/integration/external.py in maxima_integrator(expression, v, a, b) 44 result = maxima.sr_integral(expression,v) 45 else: ---> 46 result = maxima.sr_integral(expression, v, a, b) 47 return result._sage_() 48 /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx in sage.misc.lazy_import.LazyImport.__getattr__ (build/cythonized/sage/misc/lazy_import.c:3536)() 319 True 320 """ --> 321 return getattr(self.get_object(), attr) 322 323 # We need to wrap all the slot methods, as they are not forwarded /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx in sage.misc.lazy_import.LazyImport.get_object (build/cythonized/sage/misc/lazy_import.c:2347)() 186 if likely(self._object is not None): 187 return self._object --> 188 return self._get_object() 189 190 cpdef _get_object(self): /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx in sage.misc.lazy_import.LazyImport._get_object (build/cythonized/sage/misc/lazy_import.c:2586)() 218 elif self._at_startup and not startup_guard: 219 print('Option ``at_startup=True`` for lazy import {0} not needed anymore'.format(self._name)) --> 220 self._object = getattr(__import__(self._module, {}, {}, [self._name]), self._name) 221 name = self._as_name 222 if self._deprecation is not None: /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/interfaces/maxima_lib.py in <module>() 106 ecl_eval("(require 'maxima \"{}\")".format(MAXIMA_FAS)) 107 else: --> 108 ecl_eval("(require 'maxima)") 109 ecl_eval("(in-package :maxima)") 110 ecl_eval("(setq $nolabels t))") /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.ecl_eval (build/cythonized/sage/libs/ecl.c:10133)() 1323 1324 #convenience routine to more easily evaluate strings -> 1325 cpdef EclObject ecl_eval(str s): 1326 """ 1327 Read and evaluate string in Lisp and return the result /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.ecl_eval (build/cythonized/sage/libs/ecl.c:10072)() 1338 cdef cl_object o 1339 o=ecl_safe_read_string(str_to_bytes(s)) -> 1340 o=ecl_safe_eval(o) 1341 return ecl_wrap(o) 1342 /home/embray/src/sagemath/sage-python3/local/lib/python3.7/site-packages/sage/libs/ecl.pyx in sage.libs.ecl.ecl_safe_eval (build/cythonized/sage/libs/ecl.c:5130)() 347 if ecl_nvalues > 1: 348 s = si_coerce_to_base_string(ecl_values(1)) --> 349 raise RuntimeError("ECL says: {}".format( 350 char_to_str(ecl_base_string_pointer_safe(s)))) 351 else: RuntimeError: ECL says: #<a FLOATING-POINT-OVERFLOW> > On Tue, Nov 12, 2019 at 10:45 PM 'Justin C. Walker' via sage-release > <sage-release@googlegroups.com> wrote: > > > > > > > > > On Nov 10, 2019, at 15:59 , Volker Braun <vbraun.n...@gmail.com> wrote: > > > > > > As always, you can get the latest beta version from the "develop" git > > > branch. Alternatively, the self-contained source tarball is at > > > http://www.sagemath.org/download-latest.html > > > > Built from a fresh clone of the develop tree on three macOS platforms: > > 10.11.6 (mid-2015 MBP, Quad-core Core i7), 10.13.6 (2017 iMac Pro, 18-core > > Xeon W), 10.14.6 (2017 MBP, Quad-core Core i7). All builds completed w/o > > problems. > > > > Testing (‘ptestlong’) went as follows: > > > > 10.11.6: all tests passed! > > 10.13.6: one failure, good ol’ polynomials.pyx. Stand-alone runs passed. > > 10.14.6: all tests passed! > > > > Justin > > > > -- > > Justin C. Walker, Curmudgeon at Large > > Institute for the Absorption of Federal Funds > > ----------- > > I'm beginning to like the cut of his jibberish. > > ----------- > > > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "sage-release" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to sage-release+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/sage-release/65C6ED2B-2CB3-4340-98D0-A3D90333092C%40mac.com. -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-release+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/CAOTD34YT%3DxabPpkg4iq-66d4xF_aVMS%3Drjq71w0tc-E%2BWFGfqw%40mail.gmail.com.