[sage-support] Re: strange behavior
yep sorry... here is the error message flor...@florian-laptop:~/sage$ sage friction.py Ok... dann legen wir mal los! step1: definition of the density profile 99824085.5683 step2: definition of the circular velocity 3.51331142172386 step3: definition of the integrated mass 229643.853879355 step3: definition of the integrated mass Traceback (most recent call last): File friction.py, line 29, in module print mass(r).n(),\n File /home/florian/sage/functions.py, line 21, in mass i_term = integral(x**2*rho(x), x, 0, r) File /usr/lib/python2.5/site-packages/sage/misc/functional.py, line 436, in integral return x.integral(*args, **kwds) File /usr/lib/python2.5/site-packages/sage/calculus/calculus.py, line 2508, in integral return self.parent()(self._maxima_().integrate(v, a, b)) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 1601, in integral return I(var, min, max) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1182, in __call__ return self._obj.parent().function_call(self._name, [self._obj] + list(args)) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line , in function_call return self.new(%s(%s)%(function, ,.join([s.name() for s in args]))) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1013, in new return self(code) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 377, in __call__ return Expect.__call__(self, x) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 948, in __call__ return cls(self, x) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1214, in __init__ self._name = parent._create(value) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1092, in _create self.set(name, value) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 855, in set self._eval_line(cmd) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 567, in _eval_line self._expect_expr() File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 457, in _expect_expr i = self._expect.expect(expr) File /usr/lib/python2.5/site-packages/pexpect.py, line 1311, in expect return self.expect_list(compiled_pattern_list, timeout, searchwindowsize) File /usr/lib/python2.5/site-packages/pexpect.py, line 1325, in expect_list return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize) File /usr/lib/python2.5/site-packages/pexpect.py, line 1396, in expect_loop raise EOF (str(e) + '\n' + str(self)) pexpect.EOF: End Of File (EOF) in read_nonblocking(). Exception style platform. pexpect.spawn object at 0x3cfe890 version: 2.3 ($Revision: 399 $) command: /usr/bin/maxima args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage- maxima.lisp'] searcher: searcher_re: 0: re.compile(\(\%i[0-9]+\)) 1: re.compile(zero or nonzero?) 2: re.compile(an integer?) 3: re.compile(positive, negative, or zero?) 4: re.compile(positive or negative?) 5: re.compile(Break [0-9]+) buffer (last 100 chars): before (last 100 chars): `rat' replaced 1.0 by 1/1 = 1.0 `rat' replaced 1.234567901234568 by 100/81 = 1.234567901234568 after: class 'pexpect.EOF' match: None match_index: None exitstatus: None flag_eof: True pid: 4147 child_fd: 3 closed: False timeout: None delimiter: class 'pexpect.EOF' logfile: None logfile_read: None logfile_send: None maxread: 1 ignorecase: False searchwindowsize: None delaybeforesend: 0 delayafterclose: 0.1 delayafterterminate: 0.1 Maxima crashed -- automatically restarting. End Of File (EOF) in read_nonblocking(). Exception style platform. pexpect.spawn object at 0x3cfe890 version: 2.3 ($Revision: 399 $) command: /usr/bin/maxima args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage- maxima.lisp'] searcher: searcher_re: 0: re.compile(\(\%i[0-9]+\)) buffer (last 100 chars): before (last 100 chars): after: class 'pexpect.EOF' match: None match_index: None exitstatus: 1 flag_eof: True pid: 4166 child_fd: 3 closed: False timeout: 30 delimiter: class 'pexpect.EOF' logfile: None logfile_read: None logfile_send: None maxread: 1 ignorecase: False searchwindowsize: None delaybeforesend: 0 delayafterclose: 0.1 delayafterterminate: 0.1 sage: Error running friction.py using Python flor...@florian-laptop:~/sage$ --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: strange behavior
hello flor...@florian-laptop:~/Gadget-2.0.3/Analysis$ sage -v | SAGE Version 3.0.5, Release Date: 2008-07-11 my operation system is ubuntu 9,04 What are the paths below to /usr/lib? I don't know what you mean... regards florian On Jun 14, 10:00 pm, William Stein wst...@gmail.com wrote: On Sun, Jun 14, 2009 at 6:48 AM, Florian Beutlerflorian.beut...@gmx.de wrote: yep sorry... here is the error message What version of Sage are you using? On what computer? Etc. etc. What are the paths below to /usr/lib? -- William flor...@florian-laptop:~/sage$ sage friction.py Ok... dann legen wir mal los! step1: definition of the density profile 99824085.5683 step2: definition of the circular velocity 3.51331142172386 step3: definition of the integrated mass 229643.853879355 step3: definition of the integrated mass Traceback (most recent call last): File friction.py, line 29, in module print mass(r).n(),\n File /home/florian/sage/functions.py, line 21, in mass i_term = integral(x**2*rho(x), x, 0, r) File /usr/lib/python2.5/site-packages/sage/misc/functional.py, line 436, in integral return x.integral(*args, **kwds) File /usr/lib/python2.5/site-packages/sage/calculus/calculus.py, line 2508, in integral return self.parent()(self._maxima_().integrate(v, a, b)) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 1601, in integral return I(var, min, max) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1182, in __call__ return self._obj.parent().function_call(self._name, [self._obj] + list(args)) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line , in function_call return self.new(%s(%s)%(function, ,.join([s.name() for s in args]))) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1013, in new return self(code) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 377, in __call__ return Expect.__call__(self, x) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 948, in __call__ return cls(self, x) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1214, in __init__ self._name = parent._create(value) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1092, in _create self.set(name, value) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 855, in set self._eval_line(cmd) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 567, in _eval_line self._expect_expr() File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 457, in _expect_expr i = self._expect.expect(expr) File /usr/lib/python2.5/site-packages/pexpect.py, line 1311, in expect return self.expect_list(compiled_pattern_list, timeout, searchwindowsize) File /usr/lib/python2.5/site-packages/pexpect.py, line 1325, in expect_list return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize) File /usr/lib/python2.5/site-packages/pexpect.py, line 1396, in expect_loop raise EOF (str(e) + '\n' + str(self)) pexpect.EOF: End Of File (EOF) in read_nonblocking(). Exception style platform. pexpect.spawn object at 0x3cfe890 version: 2.3 ($Revision: 399 $) command: /usr/bin/maxima args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage- maxima.lisp'] searcher: searcher_re: 0: re.compile(\(\%i[0-9]+\)) 1: re.compile(zero or nonzero?) 2: re.compile(an integer?) 3: re.compile(positive, negative, or zero?) 4: re.compile(positive or negative?) 5: re.compile(Break [0-9]+) buffer (last 100 chars): before (last 100 chars): `rat' replaced 1.0 by 1/1 = 1.0 `rat' replaced 1.234567901234568 by 100/81 = 1.234567901234568 after: class 'pexpect.EOF' match: None match_index: None exitstatus: None flag_eof: True pid: 4147 child_fd: 3 closed: False timeout: None delimiter: class 'pexpect.EOF' logfile: None logfile_read: None logfile_send: None maxread: 1 ignorecase: False searchwindowsize: None delaybeforesend: 0 delayafterclose: 0.1 delayafterterminate: 0.1 Maxima crashed -- automatically restarting. End Of File (EOF) in read_nonblocking(). Exception style platform. pexpect.spawn object at 0x3cfe890 version: 2.3 ($Revision: 399 $) command: /usr/bin/maxima args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage- maxima.lisp'] searcher: searcher_re: 0: re.compile(\(\%i[0-9]+\)) buffer (last 100 chars): before (last 100 chars): after: class 'pexpect.EOF' match: None match_index: None exitstatus: 1 flag_eof: True pid: 4166 child_fd: 3 closed: False timeout: 30 delimiter: class 'pexpect.EOF' logfile: None logfile_read: None logfile_send: None maxread: 1 ignorecase: False
[sage-support] Re: strange behavior
hello flor...@florian-laptop:~/Gadget-2.0.3/Analysis$ sage -v | SAGE Version 3.0.5, Release Date: 2008-07-11 my operation system is ubuntu 9,04 What are the paths below to /usr/lib? I don't know what you mean... regards florian On Jun 14, 10:00 pm, William Stein wst...@gmail.com wrote: On Sun, Jun 14, 2009 at 6:48 AM, Florian Beutlerflorian.beut...@gmx.de wrote: yep sorry... here is the error message What version of Sage are you using? On what computer? Etc. etc. What are the paths below to /usr/lib? -- William flor...@florian-laptop:~/sage$ sage friction.py Ok... dann legen wir mal los! step1: definition of the density profile 99824085.5683 step2: definition of the circular velocity 3.51331142172386 step3: definition of the integrated mass 229643.853879355 step3: definition of the integrated mass Traceback (most recent call last): File friction.py, line 29, in module print mass(r).n(),\n File /home/florian/sage/functions.py, line 21, in mass i_term = integral(x**2*rho(x), x, 0, r) File /usr/lib/python2.5/site-packages/sage/misc/functional.py, line 436, in integral return x.integral(*args, **kwds) File /usr/lib/python2.5/site-packages/sage/calculus/calculus.py, line 2508, in integral return self.parent()(self._maxima_().integrate(v, a, b)) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 1601, in integral return I(var, min, max) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1182, in __call__ return self._obj.parent().function_call(self._name, [self._obj] + list(args)) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line , in function_call return self.new(%s(%s)%(function, ,.join([s.name() for s in args]))) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1013, in new return self(code) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 377, in __call__ return Expect.__call__(self, x) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 948, in __call__ return cls(self, x) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1214, in __init__ self._name = parent._create(value) File /usr/lib/python2.5/site-packages/sage/interfaces/expect.py, line 1092, in _create self.set(name, value) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 855, in set self._eval_line(cmd) File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 567, in _eval_line self._expect_expr() File /usr/lib/python2.5/site-packages/sage/interfaces/maxima.py, line 457, in _expect_expr i = self._expect.expect(expr) File /usr/lib/python2.5/site-packages/pexpect.py, line 1311, in expect return self.expect_list(compiled_pattern_list, timeout, searchwindowsize) File /usr/lib/python2.5/site-packages/pexpect.py, line 1325, in expect_list return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize) File /usr/lib/python2.5/site-packages/pexpect.py, line 1396, in expect_loop raise EOF (str(e) + '\n' + str(self)) pexpect.EOF: End Of File (EOF) in read_nonblocking(). Exception style platform. pexpect.spawn object at 0x3cfe890 version: 2.3 ($Revision: 399 $) command: /usr/bin/maxima args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage- maxima.lisp'] searcher: searcher_re: 0: re.compile(\(\%i[0-9]+\)) 1: re.compile(zero or nonzero?) 2: re.compile(an integer?) 3: re.compile(positive, negative, or zero?) 4: re.compile(positive or negative?) 5: re.compile(Break [0-9]+) buffer (last 100 chars): before (last 100 chars): `rat' replaced 1.0 by 1/1 = 1.0 `rat' replaced 1.234567901234568 by 100/81 = 1.234567901234568 after: class 'pexpect.EOF' match: None match_index: None exitstatus: None flag_eof: True pid: 4147 child_fd: 3 closed: False timeout: None delimiter: class 'pexpect.EOF' logfile: None logfile_read: None logfile_send: None maxread: 1 ignorecase: False searchwindowsize: None delaybeforesend: 0 delayafterclose: 0.1 delayafterterminate: 0.1 Maxima crashed -- automatically restarting. End Of File (EOF) in read_nonblocking(). Exception style platform. pexpect.spawn object at 0x3cfe890 version: 2.3 ($Revision: 399 $) command: /usr/bin/maxima args: ['/usr/bin/maxima', '-p', '/usr/lib/sagemath/local/bin/sage- maxima.lisp'] searcher: searcher_re: 0: re.compile(\(\%i[0-9]+\)) buffer (last 100 chars): before (last 100 chars): after: class 'pexpect.EOF' match: None match_index: None exitstatus: 1 flag_eof: True pid: 4166 child_fd: 3 closed: False timeout: 30 delimiter: class 'pexpect.EOF' logfile: None logfile_read: None logfile_send: None maxread: 1 ignorecase: False
[sage-support] strange behavior
Hay I am a bit annoyed by sage... I just want to print a function two times and sage gives me an error... this is the first script #!/usr/bin/env sage -python import sys from sage.all import * import functions from functions import * grav_const = 4.3e-06 pi = 3.14159265358979323846 sat_mass = 20. print Ok... dann legen wir mal los!\n print step1: definition of the density profile r = 0.08 print rho(r),\n print step3: definition of the integrated mass print mass(r).n(),\n print step3: definition of the integrated mass print mass(r).n(),\n the function definition is the following import sys from sage.all import * def rho(r): return 1.32419e+08/(1.+(r/0.81))**3 def mass(r): pi = 3.14159265358979323846 x=var('x') assume(x0) i_term = integral(x**2*rho(x), x, 0, r) return i_term*4.*pi; so I just try to plot the mass two times... the error message of sage is not very helpful (at least to me) thanks for any help florian --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---