[sage-support] Re: Building SageMath 6.8 from source on 32-bit Ubuntu 15.04

2015-07-27 Thread John H Palmieri
Did you try this:


Note: incremental documentation builds sometimes cause spurious
error messages. To be certain that these are real errors, run
make doc-clean first and try again.


  John



On Monday, July 27, 2015 at 2:57:08 AM UTC-7, Brenton wrote:

 Hi, 

 I've been downloading the latest SageMath release source code via Git and 
 when I did this for beta releases and 6.8.rc0, the build happened without 
 error after I downloaded the singular patch into 
 `build/pkgs/singular/patches/`. SageMath 6.8.rc1  6.8 are where the 
 problem is. Running `make` from their directory gives the following error 
 message:

 Error building the documentation.


 Note: incremental documentation builds sometimes cause spurious
 error messages. To be certain that these are real errors, run
 make doc-clean first and try again.
 Traceback (most recent call last):
   File /home/fusion809/sage/src/doc/common/builder.py, line 1626, in 
 module
 getattr(get_builder(name), type)()
   File /home/fusion809/sage/src/doc/common/builder.py, line 292, in 
 _wrapper
 getattr(get_builder(document), 'inventory')(*args, **kwds)
   File /home/fusion809/sage/src/doc/common/builder.py, line 503, in 
 _wrapper
 x.get(9)
   File /home/fusion809/sage/local/lib/python/multiprocessing/pool.py, 
 line 558, in get
 raise self._value
 OSError: [misc ] /home/fusion809/sage/src/doc/en/reference/misc/sage/
 misc/ascii_art.rst:11: WARNING: autodoc can't import/find module 'sage.
 misc.ascii_art', it reported error: No module named ascii_art, please 
 check your spelling and sys.path


 Makefile:742: recipe for target 'doc-html' failed
 make[2]: *** [doc-html] Error 1
 make[2]: Leaving directory '/home/fusion809/sage/build/make'
 Makefile:563: recipe for target 'all' failed
 make[1]: *** [all] Error 2
 make[1]: Leaving directory '/home/fusion809/sage/build/make'


 real 16m54.732s
 user 12m49.636s
 sys 0m12.840s
 ***
 Error building Sage.


 The following package(s) may have failed to build (not necessarily
 during this run of 'make all'):


 * documentation: dochtml
   log file: /home/fusion809/sage/logs/pkgs/../dochtml.log

 Attached is my build file.

 Thanks for your time,
 Brenton


-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-27 Thread Volker Braun
Shipping with GCC 5.2.0 is probably a bit too risky on the Arch side... Can 
you try

make distclean  SAGE_INSTALL_GCC=yes make



On Monday, July 27, 2015 at 7:43:54 PM UTC+2, fidelbc wrote:

 Hello,

 I'm trying to build sage on arch linux:

 $ uname -a
 Linux 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 
 GNU/Linux

 The packages that seem to fail to build are gf2x and ncurses (please see 
 attached logs).

 I usually build sage using
 MAKE=make -j4

 Any help on trying to get the build to succeed are greatly appreciated!
 Fidel

 PS I used to be able to build sage without any issues, but after around 
 v6.6 this was no longer the case. Do you think these are OS specific issues?


-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Building SageMath 6.8: gf2x, ncurses error in ArchLinux

2015-07-27 Thread fidelbc
Hello,

I'm trying to build sage on arch linux:

$ uname -a
Linux 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 
GNU/Linux

The packages that seem to fail to build are gf2x and ncurses (please see 
attached logs).

I usually build sage using
MAKE=make -j4

Any help on trying to get the build to succeed are greatly appreciated!
Fidel

PS I used to be able to build sage without any issues, but after around 
v6.6 this was no longer the case. Do you think these are OS specific issues?

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


gf2x-1.1.p1.log
Description: Binary data


ncurses-5.9.20131221.log
Description: Binary data


[sage-support] sage-6.8 - two failed tests for R interface

2015-07-27 Thread Andrzej Giniewicz
Hello,

today I compiled sage-6.8 on my machine. Got two failures in R
interface - very strange ones I must say -
http://pastebin.com/Lvt6Lqt6 - all other tests pass.

Anyone seen such error? In completions each method is listed twice and
importing foobar does not raise exception.

Regards,
Andrzej.

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: sage-6.8 - two failed tests for R interface

2015-07-27 Thread Volker Braun
Haven't seen that one before. Did you build from scratch? Which OS?



On Monday, July 27, 2015 at 10:07:42 PM UTC+2, Andrzej Giniewicz wrote:

 Hello, 

 today I compiled sage-6.8 on my machine. Got two failures in R 
 interface - very strange ones I must say - 
 http://pastebin.com/Lvt6Lqt6 - all other tests pass. 

 Anyone seen such error? In completions each method is listed twice and 
 importing foobar does not raise exception. 

 Regards, 
 Andrzej. 


-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: [sage-edu] integration involving differential

2015-07-27 Thread David Joyner
On Mon, Jul 27, 2015 at 1:09 AM, sairam sairam.tatiko...@gmail.com wrote:

 Thank you very much for the reply.  In the integration specified, f is a
 function of y

 When I use the following as suggested by you,

 x, y, a= var('x,y,a')
 f = function(f, y)
 integrate(integrate((diff(f,y))*(exp(-a*x^2)*cos(y)^2*sin(x)^3), x, 0,
 pi), y, -pi, pi)

 Sagemath is dumping  an error. I would appreciate if you can helping me
 sorting out the problem in evaluating the integral.


A simpler way to get this error (since your double integral is obviously a
product of 2 integrals) is below. I don't understand this error either.

sage: f = function(f, x)
sage: integrate(diff(f,x)*cos(x)^2, x, -pi, pi)
#0:
signum_int(q=cos(2*_SAGE_VAR_x)*'diff('realpart(f(_SAGE_VAR_x)),_SAGE_VAR_x,1)+sin(2*_SAGE_VAR_x)*'diff('imagpart...,x=_SAGE_VAR_x)
#1:
extra_integrate(q=cos(2*_SAGE_VAR_x)*'diff('realpart(f(_SAGE_VAR_x)),_SAGE_VAR_x,1)+sin(2*_SAGE_VAR_x)*'diff('imagpart...,x=_SAGE_VAR_x)
---
RuntimeError  Traceback (most recent call last)
ipython-input-17-9166435d0d62 in module()
 1 integrate(diff(f,x)*cos(x)**Integer(2), x, -pi, pi)

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/misc/functional.pyc
in integral(x, *args, **kwds)
800 
801 if hasattr(x, 'integral'):
-- 802 return x.integral(*args, **kwds)
803 else:
804 from sage.symbolic.ring import SR

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/symbolic/expression.so
in sage.symbolic.expression.Expression.integral
(build/cythonized/sage/symbolic/expression.cpp:50961)()

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/symbolic/integration/integral.pyc
in integrate(expression, v, a, b, algorithm, hold)
710 return indefinite_integral(expression, v, hold=hold)
711 else:
-- 712 return definite_integral(expression, v, a, b, hold=hold)
713
714 integral = integrate

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/symbolic/function.so
in sage.symbolic.function.BuiltinFunction.__call__
(build/cythonized/sage/symbolic/function.cpp:9269)()

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/symbolic/function.so
in sage.symbolic.function.Function.__call__
(build/cythonized/sage/symbolic/function.cpp:5911)()

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/symbolic/integration/integral.pyc
in _eval_(self, f, x, a, b)
173 for integrator in self.integrators:
174 try:
-- 175 return integrator(*args)
176 except NotImplementedError:
177 pass

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/symbolic/integration/external.pyc
in maxima_integrator(expression, v, a, b)
 19 result = maxima.sr_integral(expression,v)
 20 else:
--- 21 result = maxima.sr_integral(expression, v, a, b)
 22 return result._sage_()
 23

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/interfaces/maxima_lib.pyc
in sr_integral(self, *args)
774 
775 try:
-- 776 return
max_to_sr(maxima_eval(([max_integrate],[sr_to_max(SR(a)) for a in args])))
777 except RuntimeError as error:
778 s = str(error)

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/libs/ecl.so
in sage.libs.ecl.EclObject.__call__
(build/cythonized/sage/libs/ecl.c:6877)()

/Volumes/Bay3/sagefiles2/sage-6.4.1/local/lib/python2.7/site-packages/sage/libs/ecl.so
in sage.libs.ecl.ecl_safe_apply (build/cythonized/sage/libs/ecl.c:4734)()

RuntimeError: ECL says: Error executing code in Maxima:

Thank you once again,

 Regards,
 sairam

 On Sunday, July 26, 2015 at 4:38:59 PM UTC+5:30, David Joyner wrote:

 In the integrand below, is f simply a function of y or does it also
 depend on x?


 On Jul 26, 2015, at 04:25, sairam sairam.t...@gmail.com wrote:


 https://lh3.googleusercontent.com/-HGLRuiudDNI/VbRfkfqbiNI/AFk/gVw9Ejc6pyo/s1600/CodeCogsEqn.gif

 Hi

 I am new bie to sagemath and trying to find the analytical integration
 for the above.

 I have used the following expressions in sagemath

 x, y, a, f = var('x,y,a,f')



 f = function(f, x)
 or
 f = function(f,x,y)

 integrate(integrate((diff(f))*(exp(-a*x^2)*cos(y)^2*sin(x)^3), x, 0, pi),
 y, -pi, pi)


 In the first case, you want


 x, y, a= var('x,y,a')
 f = function(f, x)
 integrate(integrate((diff(f,x))*(exp(-a*x^2)*cos(y)^2*sin(x)^3), x, 0,
 pi), y, -pi, pi)

 which will give you the partially evaluated integral.

 The sagemath tutorials have more examples.
 http://doc.sagemath.org/html/en/tutorial/index.html




 Though it gives output for the above expression, it does not consider
 the term differential of f,  can 

[sage-support] Re: [sage-edu] integration involving differential

2015-07-27 Thread Nils Bruin
On Sunday, July 26, 2015 at 11:19:15 PM UTC-7, David Joyner wrote:

 sage: f = function(f, x)
 sage: integrate(diff(f,x)*cos(x)^2, x, -pi, pi)


It's abs_integrate again. In maxima:

 (%i1) load(abs_integrate);
(%o1) 
/usr/local/sage/sage-git/local/share/maxima/5.35.1/share/contrib/integration/abs_integrate.mac
(%i2) display2d:false;
(%o2) false
(%i3) integrate(cos(x)^2*diff(f(x),x),x);
diff: second argument must be a variable; found new\-var\-2172/2
#0: 
signum_int(q=cos(2*x)*'diff('realpart(f(x)),x,1)+sin(2*x)*'diff('imagpart(f(x)),x,1),x=x)
#1: 
extra_integrate(q=cos(2*x)*'diff('realpart(f(x)),x,1)+sin(2*x)*'diff('imagpart(f(x)),x,1),x=x)
 -- an error. To debug this try: debugmode(true);

(without abs_integrate, the integral is returned unchanged).

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.