Re: [sage-support] Sage Crash Report

2017-10-26 Thread Renan Birck Pinheiro
Hello,

gfortran is installed but sage still doesn't work. I do
have libgfortran.so.4 rather than libgfortran.so.3 that sage wants.

Thanks,

2017-10-25 11:12 GMT-02:00 Jeroen Demeyer <jdeme...@cage.ugent.be>:

> This is a known problem which will be fixed for Sage 8.1
>
> For now, you have to install gfortran from your Fedora distribution.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-support@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Renan Birck Pinheiro - Blog <http://renanbirck.blogspot.com> - LinkedIn
<https://www.linkedin.com/in/renanbirck> - GitHub
<http://github.com/renanbirck>
+55 47 997112201 +55 48 991618277 - skype: birck.renan

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Sage Crash Report

2017-10-24 Thread Renan Birck Pinheiro
Hello,

I'm trying to install sagemath 8.0 on Fedora 26 x86_64.

I downloaded the tarball from the mirror and then uncompressed it, but when
I run sage I get (after it finishes patching files) the crash that is in
the attached file.

What to do?

Thanks,
-- 
Renan Birck Pinheiro - Blog <http://renanbirck.blogspot.com> - LinkedIn
<https://www.linkedin.com/in/renanbirck> - GitHub
<http://github.com/renanbirck>
+55 47 97112201 - skype: birck.renan

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
***

IPython post-mortem report

{'commit_hash': u'5c9c918',
 'commit_source': 'installation',
 'default_encoding': 'UTF-8',
 'ipython_path': 
'/home/renan/SageMath/local/lib/python2.7/site-packages/IPython',
 'ipython_version': '5.1.0',
 'os_name': 'posix',
 'platform': 'Linux-4.13.5-200.fc26.x86_64-x86_64-with-fedora-26-Twenty_Six',
 'sys_executable': '/home/renan/SageMath/local/bin/python',
 'sys_platform': 'linux2',
 'sys_version': '2.7.13 (default, Jul 22 2017, 00:49:06) \n[GCC 6.3.1 20161221 
(Red Hat 6.3.1-1)]'}

***



***

Crash traceback:

---
---
ImportErrorPython 2.7.13: /home/renan/SageMath/local/bin/python
   Tue Oct 24 23:18:49 2017
A problem occurred executing Python code.  Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/home/renan/SageMath/src/bin/sage-ipython in ()
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 """
  4 Sage IPython startup script.
  5 """
  6 
  7 from sage.repl.interpreter import SageTerminalApp
  8 
  9 app = SageTerminalApp.instance()
---> 10 app.initialize()
global app.initialize = >
 11 app.start()

 in initialize(self=, argv=None)

/home/renan/SageMath/local/lib/python2.7/site-packages/traitlets/config/application.py
 in catch_config_error(method=, 
app=, *args=(None,), **kwargs={})
 72 TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR = False
 73 else:
 74 raise ValueError("Unsupported value for environment variable: 
'TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR' is set to '%s' which is none of 
 {'0', '1', 'false', 'true', ''}."% _envvar )
 75 
 76 
 77 @decorator
 78 def catch_config_error(method, app, *args, **kwargs):
 79 """Method decorator for catching invalid config 
(Trait/ArgumentErrors) during init.
 80 
 81 On a TraitError (generally caused by bad config), this will print 
the trait's
 82 message, and exit the app.
 83 
 84 For use on init methods, to prevent invoking excepthook on invalid 
input.
 85 """
 86 try:
---> 87 return method(app, *args, **kwargs)
method = 
app = 
args = (None,)
kwargs = {}
 88 except (TraitError, ArgumentError) as e:
 89 app.print_help()
 90 app.log.fatal("Bad config encountered during initialization:")
 91 app.log.fatal(str(e))
 92 app.log.debug("Config at the time: %s", app.config)
 93 app.exit(1)
 94 
 95 
 96 class ApplicationError(Exception):
 97 pass
 98 
 99 
100 class LevelFormatter(logging.Formatter):
101 """Formatter with additional `highlevel` record
102 

/home/renan/SageMath/local/lib/python2.7/site-packages/IPython/terminal/ipapp.py
 in initialize(self=, argv=None)
294 
295 return super(TerminalIPythonApp, self).parse_command_line(argv)
296 
297 @catch_config_error
298 def initialize(self, argv=None):
299 """Do actions after construct, but before starting the app."""
300 super(TerminalIPythonApp, self).initialize(argv)
301 if self.subapp is not None:
302 # don't bother initializing further, starting subapp
303 return
304 # print self.extra_args
305 if self.extra_args and not self.something_to_run:
306 self.file_to_run = self.extra_args[0]
307 self.init_path()
3

[sage-support] Re: Strange sum() result and can't be evaluated numerically

2012-09-15 Thread Renan Birck Pinheiro

Em sábado, 15 de setembro de 2012 05h37min03s UTC-3, achrzesz escreveu:


 sage: s=maxima('1/2*sqrt(%pi)*sqrt(2)*sqrt(x)*bessel_j(1/2, 
 x),besselexpand:true')
 sage:  s.sage().full_simplify()
 sin(x)



For now this is enough for what I need. Thanks! 

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
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.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




[sage-support] Strange sum() result and can't be evaluated numerically

2012-09-14 Thread Renan Birck Pinheiro
The command sum( ((-1)^k*(x^(2*k+1))/factorial(2*k+1)),k,0,oo) should give
sin(x) - it does in Mathematica. But in Sage it gives

1/2*sqrt(pi)*sqrt(2)*sqrt(x)*bessel_j(1/2, x)

which can't be evaluated numerically:

_(x=3).N()

Traceback (most recent call last):
  File stdin, line 1, in module
  File _sage_input_4.py, line 10, in module
exec compile(u'open(___code___.py,w).write(# -*- coding: utf-8
-*-\\n +
_support_.preparse_worksheet_cell(base64.b64decode(Xyh4PTMpLk4oKQ==),globals())+\\n);
execfile(os.path.abspath(___code___.py))
  File , line 1, in module

  File /tmp/tmpMc56sG/___code___.py, line 3, in module
exec compile(u'_(x=_sage_const_3 ).N()
  File , line 1, in module

  File expression.pyx, line 4319, in
sage.symbolic.expression.Expression._numerical_approx
(sage/symbolic/expression.cpp:20837)
TypeError: cannot evaluate symbolic expression numerically

What am I missing here? I am using Sage 5.3.

Thanks!

--
Renan Birck Pinheiro - Grupo de Microeletrônica
Engenharia Elétrica - UFSM - Santa Maria, Brasil
http://renanbirck.blogspot.com - +55 55 91162798

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
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.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




Re: [sage-support] Crash report: integral of ln(1+4/5*sin(x)) crashes Maxima and Sage

2012-06-07 Thread Renan Birck Pinheiro
2012/6/7 Benjamin Jones benjaminfjo...@gmail.com


 The same happens with the indefinite integral and the exact definite
 integral from -pi to pi.

 Has anyone seen similar crashes using sage-5.0 or earlier?



I have the same problem with sage-5.0 (built from source) on Arch Linux.

Renan
-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee - UFSM http://www.ufsm.br - Santa
Maria, Brazil

http://renanbirck.blogspot.com / skype: renan.ee.ufsm / +55 55 91162798

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: Issues with bessel function.

2012-01-21 Thread Renan Birck Pinheiro
2012/1/22 Eric Kangas eric.c.kan...@gmail.com

 If I did this correctly. This is the error I get from the debugger.

 error:
 -
 *** SyntaxError: can't assign to function call (stdin, line 1)

 the code I used was:
 -
 r,p,z,g,k,ro,gro = var('r,p,z,g,k,ro,gro')
 g = 1; k = 1; ro = 1; gro = 1
 Psi(r,z) = lambda r,z: ((r*bessel_J(1, g*r))/
 (ro*bessel_J(1,gro)))*(cos(k*z))

 The psi function is the line of code that has the issue.



Do not use 'Psi(r,z) = ...', just use 'Psi = ...'. Such as:

r,p,z,g,k,ro,gro = var('r,p,z,g,k,ro,gro')
g = 1; k = 1; ro = 1; gro = 1
Psi = lambda r,z: ((r*bessel_J(1, g*r))/ (ro*bessel_J(1,gro)))*(cos(k*z))


-- 
Renan Birck Pinheiro, Grupo de Microeletrônica
http://www.ufsm.br/gmicro, Engenharia
Elétrica http://www.ufsm.br/cee, UFSM http://www.ufsm.br - Santa Maria,
Brazil

http://renanbirck.blogspot.com / skype: renan.ee.ufsm / (55) 91433210

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Factors of an integer

2012-01-16 Thread Renan Birck Pinheiro
2012/1/16 Santanu Sarkar sarkar.santanu@gmail.com

 Is there any function in Sage by which I can get the
 number of prime factors,  number of factors of a
 positive ineger?

 If I understand you correctly:

sage: factor(372)
2^2 * 3 * 31

One can get the number of factors by using 'len' on the result of this or
in tuples form by using 'list':

sage: len(factor(372))
3
sage: list(factor(372))
[(2, 2), (3, 1), (31, 1)]

Renan
-- 
Renan Birck Pinheiro, Grupo de Microeletrônica
http://www.ufsm.br/gmicro, Engenharia
Elétrica http://www.ufsm.br/cee, UFSM http://www.ufsm.br - Santa Maria,
Brazil

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


[sage-support] Solving differential equations with unit_step?

2012-01-09 Thread Renan Birck Pinheiro
Hi,

I'm trying to solve a differential equation with unit step, e.g. the
equation y'(x) = U(x-5) - where U is the unit step, and the inicial
condition y(0) is 0.

The result is 0 for 0x5 and x-5 for x5 (it's a simple integral of the
unit step function). WolframAlpha gives the correct result [1], however
sage fails:

sage: x=var('x')
sage: y=function('y',x)

sage: desolve(diff(y,x) - unit_step(x-5),y,ics=[0,1])
---
TypeError Traceback (most recent call last)

/home/renan/ipython console in module()

/opt/sage/local/lib/python2.6/site-packages/sage/calculus/desolvers.pyc in
desolve(de, dvar, ics, ivar, show_method, contrib_ode)
488 raise NotImplementedError, Maxima was unable to
solve this BVP. Remove the initial condition to get the general
solution.
489
-- 490 soln=soln.sage()
491 if is_SymbolicEquation(soln) and soln.lhs() == dvar:
492 # Remark: Here we do not check that the right hand side
does not depend on dvar.

/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/interface.pyc
in sage(self)
866 Rational Field
867 
-- 868 return self._sage_()
869
870 def __repr__(self):

/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/maxima_abstract.pyc
in _sage_(self)
   1222 import sage.calculus.calculus as calculus
   1223 return calculus.symbolic_expression_from_maxima_string(
self.name(),
- 1224 maxima=self.parent())
   1225
   1226 def _symbolic_(self, R):

/opt/sage/local/lib/python2.6/site-packages/sage/calculus/calculus.pyc in
symbolic_expression_from_maxima_string(x, equals_sub, maxima)
   1699 return symbolic_expression_from_string(s, syms,
accept_sequence=True)
   1700 except SyntaxError:
- 1701 raise TypeError, unable to make sense of Maxima expression
'%s' in Sage%s
   1702 finally:
   1703 is_simplified = False

TypeError: unable to make sense of Maxima expression
'y(x)=-at(integrate(unit_step(x-5),x),[x=0,y(x)=1])+integrate(unit_step(x-5),x)+1'
in Sage

desolve_laplace is no better:

sage: desolve_laplace(diff(y,x) - unit_step(x-5),y,ics=[0,1])
---
TypeError Traceback (most recent call last)

/home/renan/ipython console in module()

/opt/sage/local/lib/python2.6/site-packages/sage/calculus/desolvers.pyc in
desolve_laplace(de, dvar, ics, ivar)
657 if str(soln).strip() == 'false':
658 raise NotImplementedError, Maxima was unable to solve this
ODE.
-- 659 soln=soln.sage()
660 if ics!=None:
661 d = len(ics)

/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/interface.pyc
in sage(self)
866 Rational Field
867 
-- 868 return self._sage_()
869
870 def __repr__(self):

/opt/sage/local/lib/python2.6/site-packages/sage/interfaces/maxima_abstract.pyc
in _sage_(self)
   1222 import sage.calculus.calculus as calculus
   1223 return calculus.symbolic_expression_from_maxima_string(
self.name(),
- 1224 maxima=self.parent())
   1225
   1226 def _symbolic_(self, R):

/opt/sage/local/lib/python2.6/site-packages/sage/calculus/calculus.pyc in
symbolic_expression_from_maxima_string(x, equals_sub, maxima)
   1699 return symbolic_expression_from_string(s, syms,
accept_sequence=True)
   1700 except SyntaxError:
- 1701 raise TypeError, unable to make sense of Maxima expression
'%s' in Sage%s
   1702 finally:
   1703 is_simplified = False

TypeError: unable to make sense of Maxima expression
'ilt(e^-(5*?g2652)*(y(0)*?g2652*e^(5*?g2652)+1)/?g2652^2,?g2652,x)' in Sage

Any suggestions? I seached but couldn't find an example of ODEs with
unit_step being solved in Sage. I'm using Sage 4.7.2.

Thanks!

[1]
http://www.wolframalpha.com/input/?i=y%27%28x%29+%3D+unit+step%28x-5%29%2C+y%280%29+%3D+0
-- 
Renan Birck Pinheiro, Grupo de Microeletrônica
http://www.ufsm.br/gmicro, Engenharia
Elétrica http://www.ufsm.br/cee, UFSM http://www.ufsm.br - Santa Maria,
Brazil

http://renanbirck.blogspot.com / skype: renan.ee.ufsm / (55) 91433210

-- 
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
URL: http://www.sagemath.org


[sage-support] Re: Solving differential equations with unit_step?

2012-01-09 Thread Renan Birck Pinheiro


On 9 jan, 15:39, Renan Birck Pinheiro renan.ee.u...@gmail.com wrote:
 Hi,

 I'm trying to solve a differential equation with unit step, e.g. the
 equation y'(x) = U(x-5) - where U is the unit step, and the inicial
 condition y(0) is 0.

 sage: desolve(diff(y,x) - unit_step(x-5),y,ics=[0,1])


Oops. I made a typo setting the initial conditions, but still it fails
with similar errors.

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Solving differential equations with unit_step?

2012-01-09 Thread Renan Birck Pinheiro
2012/1/9 David Joyner wdjoy...@gmail.com

 AFAIK, Sage cannot at this time take the inverse Laplace transform of
 something of the form e^{-5s}/s.


And indeed it can't.

sage: F = e^(-5*s)/s
sage: F.inverse_laplace(s,t)
ilt(e^(-5*s)/s, s, t)

-- 
Renan Birck Pinheiro, Grupo de Microeletrônica
http://www.ufsm.br/gmicro, Engenharia
Elétrica http://www.ufsm.br/cee, UFSM http://www.ufsm.br - Santa Maria,
Brazil

http://renanbirck.blogspot.com / skype: renan.ee.ufsm / (55) 91433210

-- 
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
URL: http://www.sagemath.org


Re: [sympy] Re: [sage-support] Solving differential equations with unit_step?

2012-01-09 Thread Renan Birck Pinheiro
2012/1/9 Aaron Meurer asmeu...@gmail.com

 Thanks to Tom's Google Summer of Code project, SymPy can indeed solve
 this problem. The code is only in the git master, but will be included
 in SymPy 0.7.2.


This looks pretty good, I will try and compile the git version.

Thanks.
-- 
Renan Birck Pinheiro, Grupo de Microeletrônica
http://www.ufsm.br/gmicro, Engenharia
Elétrica http://www.ufsm.br/cee, UFSM http://www.ufsm.br - Santa Maria,
Brazil

http://renanbirck.blogspot.com / skype: renan.ee.ufsm / (55) 91433210

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] How to open a second terminal on fedora

2011-12-17 Thread Renan Birck Pinheiro
2011/12/17 Carl Eberhart carl.eberh...@gmail.com

 I am using sage4.7.2 in VirtualBox on windows xp.
 I would like to have a second fedora terminal open while the notebook
 server is running.  Can this be
 done?  Thanks.
 Carl


On the VM window, press Alt-F2 and you will be on a login prompt.
Login as root and password 'sage', then I recommend to create a new
(unprivileged) user and log in with it.

Otherwise you can install a SSH client (I use PuTTY) and SSH to the virtual
machine (127.0.0.1, port ) and do the same procedures.


-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] How to open a second terminal on fedora

2011-12-17 Thread Renan Birck Pinheiro
2011/12/17 Volker Braun vbraun.n...@gmail.com

 For the record, there is already an unprivileged user account that you can
 use: login=sage, password=sage. This is the account that the sage notebook
 server is running under.



 Indeed. I forgot about this.



-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] problem evaluating integral

2011-12-10 Thread Renan Birck Pinheiro
2011/12/10 andres.ordonez andres.felipe.ordo...@gmail.com

 Hi, I'm having trouble evaluating this integral

 integral( x / (exp(x) - 1) , (x,0,oo)).n()

 I get

 TypeError: cannot evaluate symbolic expression numerically

 The answer (according to mathematica) should be pi^2 / 6

 Is something wrong with my code?

 Thanks!


Apparently it stumbles upon a limit which Maxima is incapable of doing.

sage: integrate(x/(exp(x)-1),(x,0,oo))
-1/6*pi^2 + limit(-1/2*x^2 + x*log(-e^x + 1) + polylog(2, e^x), x,
+Infinity)

if oo is replaced by a very large number, seems to work...

sage: (real_part(integrate(x/(exp(x)-1),(x,0,1000)).n()) - (pi^2/6)).n()
-4.41002789841605e-11

-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: Installing latest sage

2011-11-29 Thread Renan Birck Pinheiro
2011/11/29 Eric Kangas eric.c.kan...@gmail.com

 Well for some reason when I am in the sage directory using the
 terminal I try calling up sage, and sage - testall this is what I get:


Try ./sage -testall (dot, slash, sage, space, -testall) within the sage
directory

-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm / (55) 91433210

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: Sage problem

2011-11-27 Thread Renan Birck Pinheiro
2011/11/27 Artur gra...@csl.pl

 **
 After Tab key on E I have following:

 snip

You forgot the point. Try

E. tab

(that is E, dot, then press tab).

Renan


-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: Installing latest sage

2011-11-22 Thread Renan Birck Pinheiro
2011/11/22 Eric Kangas eric.c.kan...@gmail.com

 it is interesting I had to compile from source on my tablet, but on my
 desktop I didn't have to compile from source just had to install the
 package.


Probably because the tablet uses another CPU which don't has the processor
instructions required for the binary build of Sage.

-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Error when trying to use sage server

2011-11-21 Thread Renan Birck Pinheiro
2011/11/21 Jason jason.harri...@gmail.com

 I did a fresh install of Ubuntu 10.04, and placed the precompiled sage
 4.7.2 folder in my home folder.

 I run sage in a terminal then use this command to start the server:
 notebook(interface='', server_pool=['sage1@localhost'], ulimit='-v
 50', accounts=True)

 I'm able to access it and create a user account from the web
 interface, but whenever I try to create or add a worksheet I get an
 error:
 exceptions.RuntimeError: unable to start subprocess using command
 'sage-native-execute ssh -t sage1@localhost /home/engineer/sage-4.7.2-
 linux-32bit-ubuntu_10.04_lts-i686-Linux/sage -python

 How can I fix this? (I'm only a basic linux user)



You don't need server_pool parameter, it is used only when one has many
servers running Sage.



-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm / (55) 91433210

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Why Install?

2011-11-09 Thread Renan Birck Pinheiro
2011/11/9 Chris chrisbel...@gmail.com


 1. Why install if there appears to be a web based interface? There
 seems to be no mention of this anywhere but is the implication that
 the web interface (which I guess runs on some server, somewhere) is
 intended as a demonstration and to reduce load on this server we
 should install Sage when we intend to use it for real?


You install a local copy that runs on your machine, and that can be run on
a server that your own. The web interface you see at, say,
http://www.sagenb.org/ is just that it is running on another server.

-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: Why Install?

2011-11-09 Thread Renan Birck Pinheiro
2011/11/9 Chris chrisbel...@gmail.com

 Is web based use at http://www.sagenb.org/ discouraged for regular use
 or considered ok? I'm guessing a local install will benefit me with
 faster responses?


I would not rely on the web-based use for critical work, as it might go
down due to reasons beyond your control (such as power outages, internet
connection problems etc...). Running a local install puts your in control,


 Also, what about the natural display thing? Is it possible?


As far as I know, not.
-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: Area of the intersection of two regions

2011-10-30 Thread Renan Birck Pinheiro
2011/10/30 achrzesz achrz...@wp.pl



 In Sage you need more steps.
 Assuming that you need the exact and the approximate value:

 var('x y')
 s=solve([x^2+y^2-4==0,x+y-1==0],[x,y])
 x0,x1=[sol[0].rhs() for sol in s]
 assume(abs(x)2)
 ii=integrate(integrate(1,(y,1-x,sqrt(4-x^2))),(x,x0,x1))
 #print ii
 print ii.n()
 #3.31871699805750

 (The integration can be done numerically)

 Andrzej Chrzeszczyk


 Seems to work. Thanks!

Renan


-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


[sage-support] Area of the intersection of two regions

2011-10-29 Thread Renan Birck Pinheiro
Hello,

Suppose I want to get the area of the intersection of two regions, given by
x^2+y^2  4 and x+y1 .

In Mathematica I can use

Integrate[
 Boole[And[x^2 + y^2  4,
   x + y  1]], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]

Boole is a function which turns True into 1 and False into 0.

How can I do the same in SAGE? I tried:

def boole(x):
if(x == True):
return 1
return 0

integrate(integrate( boole(x^2+y^24 and x+y1),(x,-oo,oo)),(y,-oo,oo))

but it doesn't work (gives zero).

Thanks!
-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


[sage-support] list_plot: The truth value of an array with more than one element is ambiguous

2011-09-09 Thread Renan Birck Pinheiro
Hi,

I have the following Sage code (it comes from a larger Python program):

from scipy.stats import norm, randint

signalD = randint(0,2);
signal = signalD.rvs(10);

It successfully generates the array signal with 10 random elements.

However, this fails:

list_plot(signal)
Traceback (click to the left of this block for traceback)
...
ValueError: The truth value of an array with more than one element
is ambiguous. Use a.any() or a.all()

Any ideas? Using a syntax like list_plot([i for i in signal]) does work,
however.

I'm using Sage 4.7.1 on x86_64 Arch Linux.

Thanks.
-- 
Renan Birck Pinheiro - Grupo de Microeletrônica
http://www.ufsm.br/gmicro- Engenharia
Elétrica http://www.ufsm.br/cee/UFSM http://www.ufsm.br

http://renanbirck.blogspot.com / skype: renan.ee.ufsm

-- 
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
URL: http://www.sagemath.org


[sage-support] plotting arg() of complex-valued function

2011-04-04 Thread Renan Birck Pinheiro

Hello,

I define a complex-valued function, and then want to plot its absolute 
value and argument:


w = var('w')
V(omega) = 1/(I*omega) + 1/2 + (I*omega)

plot(abs(V(w)),(w,0.1,5), axes_labels=['$Frequency$', '$Voltage$']) # 
This works, I get the correct plot.


However, I want to plot the argument of this function, and I try:

plot(arg(V(w)),(w,0,5), axes_labels=['$Frequency$', '$Phase$'])

But it gives those errors:

--
Traceback (most recent call last):
  File stdin, line 1, in module
  File _sage_input_29.py, line 10, in module
exec compile(u'open(___code___.py,w).write(# -*- coding: utf-8 
-*-\\n + 
_support_.preparse_worksheet_cell(base64.b64decode(cGxvdChhcmcoVih3KSksKHcsMCw1KSwgYXhlc19sYWJlbHM9WyckRnJlcXVlbmN5JCcsICckUGhhc2UkJ10p),globals())+\\n); 
execfile(os.path.abspath(___code___.py))

  File , line 1, in module

  File /tmp/tmphudQ36/___code___.py, line 3, in module
exec compile(uplot(arg(V(w)),(w,_sage_const_0 ,_sage_const_5 ), 
axes_labels=['$Frequency$', '$Phase$']) + '\n', '', 'single')

  File , line 1, in module

  File 
/tools/sage/local/lib/python2.6/site-packages/sage/misc/functional.py, 
line 81, in arg

except AttributeError: return CDF(x).arg()
  File complex_double.pyx, line 310, in 
sage.rings.complex_double.ComplexDoubleField_class.__call__ 
(sage/rings/complex_double.c:4190)
  File parent.pyx, line 915, in sage.structure.parent.Parent.__call__ 
(sage/structure/parent.c:6668)
  File coerce_maps.pyx, line 82, in 
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ 
(sage/structure/coerce_maps.c:3119)
  File coerce_maps.pyx, line 77, in 
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ 
(sage/structure/coerce_maps.c:3022)
  File complex_double.pyx, line 344, in 
sage.rings.complex_double.ComplexDoubleField_class._element_constructor_ 
(sage/rings/complex_double.c:4592)
  File expression.pyx, line 928, in 
sage.symbolic.expression.Expression._complex_double_ 
(sage/symbolic/expression.cpp:5306)
  File expression.pyx, line 771, in 
sage.symbolic.expression.Expression._eval_self 
(sage/symbolic/expression.cpp:4763)

TypeError: Cannot evaluate symbolic expression to a numeric value.
--

How do I solve this problem?

I'm using sage 4.6.2.

Thanks!
--
Renan Birck Pinheiro - Grupo de Microeletrônica - Eng. Elétrica/UFSM

http://renanbirck.blogspot.com | http://twitter.com/renan2112
skype: renan.ee.ufsm | msn: renan.bi...@hotmail.com

--
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
URL: http://www.sagemath.org


Re: [sage-support] Re: plotting arg() of complex-valued function

2011-04-04 Thread Renan Birck Pinheiro

Em 04-04-2011 19:07, achrzesz escreveu:

sage: plot(lambda w:arg(1/(I*w) + 1/2 + (I*w)) ,(w,0,5),
axes_labels=['$Frequency$', '$Phase$'])


Works. Thanks!

--
Renan Birck Pinheiro - Grupo de Microeletrônica - Eng. Elétrica/UFSM

http://renanbirck.blogspot.com | http://twitter.com/renan2112
skype: renan.ee.ufsm | msn: renan.bi...@hotmail.com

--
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
URL: http://www.sagemath.org


[sage-support] Re: Sage 4.6, openSUSE 11.3, sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook [long]

2010-12-20 Thread Renan Birck Pinheiro
On 19 dez, 21:43, Renan Birck Pinheiro renan.ee.u...@gmail.com
wrote:
 Hi,

 I'm using openSUSE 11.3 on x86_64. I try to install SAGE on it, and I
 downloaded the Ubuntu tarball (the Fedora tarball gives the same errors).

[snip]

Recompiling sage was the solution.

Renan

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: Sage 4.6, openSUSE 11.3, sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook [long]

2010-12-20 Thread Renan Birck Pinheiro

Em 20-12-2010 18:02, Pedro Sanchez escreveu:

That problem is caused due to a libreadline library mismatch between
those packaged with sage and those from the system.

I got 4.6 today, and same problem arose. Solution worked once more
again, delete sage's libreadline's thing.


Hmm. I would never have thought of that, and didn't find anything by 
Googling. Indeed this should be on the FAQ.


Thanks.
--
Renan Birck Pinheiro - Grupo de Microeletrônica - Eng. Elétrica/UFSM

http://renanbirck.blogspot.com | http://twitter.com/renan2112
skype: renan.ee.ufsm | MSN: renan.bi...@hotmail.com

--
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
URL: http://www.sagemath.org


[sage-support] Sage 4.6, openSUSE 11.3, sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook [long]

2010-12-19 Thread Renan Birck Pinheiro
456 #import pdb; pdb.set_trace()


/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py 
in _start(self)

885 self._session_number = n
886 return
-- 887 raise RuntimeError, msg
888
889 if self.__use_workspace_cache and self.__make_workspace:

RuntimeError: Unable to start gap
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

And any operation fails, e.g.

sage: 3+3
---
NameError Traceback (most recent call last)

/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/bin/ipython 
console in module()


NameError: name 'Integer' is not defined

Any suggestions (preferrably that do not involve recompiling, as this 
will take a long time)?


Thanks!
--
Renan Birck Pinheiro - Grupo de Microeletrônica - Eng. Elétrica/UFSM

http://renanbirck.blogspot.com | http://twitter.com/renan2112
skype: renan.ee.ufsm | MSN: renan.bi...@hotmail.com

--
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
URL: http://www.sagemath.org