[sage-support] Re: Sage 7.6 compilation - gsl and r failures on Linux

2017-05-01 Thread Dima Pasechnik
IMHO you are the 1st one reporting about building Sage with gcc 7.0.0.
It's not surprising - most probably the corresponding upstream packages, 
gsl and R in this case, have not yet been ported to gcc 7.


On Monday, May 1, 2017 at 12:58:49 AM UTC+1, Tae Lim Kook wrote:
>
> Sorry if a similar message previously appeared on this group. I'm assuming 
> that it didn't get posted for some reason.
>
> OS: Linux (kernel 4.10.0 / distro: Ubuntu 17.10)
> GCC version: 7.0.0 20161202 experimental (built from source)
>
> error message for gsl:
>
> checking host system type... x86_64-unknown-linux-gnu
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables... 
> checking whether we are cross compiling... configure: error: in 
> `/home/uruwi/sage-7.6/local/var/tmp/sage/build/gsl-2.1.p1/src':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> Error configuring GSL.
>
> real0m0.460s
> user0m0.204s
> sys0m0.056s
>
> for R:
>
> checking size of int... 4
> checking size of long... 8
> checking size of long long... 8
> checking size of double... 8
> checking size of size_t... 8
> checking size of long double... 16
> checking whether we can compute C Make dependencies... yes, using $(CC) -
> MM
> checking whether gcc supports -c -o FILE.lo... yes
> checking for gcc option to support OpenMP... -fopenmp
> checking how to get verbose linking output from gfortran... -###
> checking for Fortran 77 libraries of gfortran...  -L/home/uruwi/sage-7.6/
> local/lib -L/home/uruwi/sage-7.6/local/lib/../lib64 -L/usr/local/lib/gcc/
> x86_64-pc-linux-gnu/7.0.0 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0
> /../../../x86_64-linux-gnu -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0
> /../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/
> x86_64-linux-gnu -L/usr/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-linux-
> gnu/7.0.0/../../.. -lgfortran -lm -lquadmath
> checking how to get verbose linking output from gcc... -###
> checking for C libraries of gcc...  -L/home/uruwi/sage-7.6/local/lib -L/
> home/uruwi/sage-7.6/local/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-
> linux-gnu/7.0.0 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0/../../../
> x86_64-linux-gnu -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0
> /../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/
> x86_64-linux-gnu -L/usr/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-linux-
> gnu/7.0.0/../../.. -lgcc_s
> checking for dummy main to link with Fortran 77 libraries... none
> checking for Fortran 77 name-mangling scheme... lower case, underscore, no 
> extra underscore
> checking whether gfortran appends underscores to external names... yes
> checking whether gfortran appends extra underscores to external names... 
> no
> checking whether mixed C/Fortran code can be run... configure: WARNING: 
> cannot run mixed C/Fortran code
> configure: error: Maybe check LDFLAGS for paths to Fortran libraries?
> Error configuring R.
>
> real0m33.667s
> user0m13.640s
> sys0m2.900s
>
>
>

-- 
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] Re: Sage 7.6 compilation - gsl and r failures on Linux

2017-05-01 Thread Dima Pasechnik
First thing you might like to try is to update to gcc 7.0.1;
see the related Fedora effort:
https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/thread/7OS7EDKLZDY27C6777O6HE2QMF7YU3X7/

On Monday, May 1, 2017 at 11:30:49 AM UTC+1, Dima Pasechnik wrote:
>
> IMHO you are the 1st one reporting about building Sage with gcc 7.0.0.
> It's not surprising - most probably the corresponding upstream packages, 
> gsl and R in this case, have not yet been ported to gcc 7.
>
>
> On Monday, May 1, 2017 at 12:58:49 AM UTC+1, Tae Lim Kook wrote:
>>
>> Sorry if a similar message previously appeared on this group. I'm 
>> assuming that it didn't get posted for some reason.
>>
>> OS: Linux (kernel 4.10.0 / distro: Ubuntu 17.10)
>> GCC version: 7.0.0 20161202 experimental (built from source)
>>
>> error message for gsl:
>>
>> checking host system type... x86_64-unknown-linux-gnu
>> checking for gcc... gcc
>> checking whether the C compiler works... yes
>> checking for C compiler default output file name... a.out
>> checking for suffix of executables... 
>> checking whether we are cross compiling... configure: error: in 
>> `/home/uruwi/sage-7.6/local/var/tmp/sage/build/gsl-2.1.p1/src':
>> configure: error: cannot run C compiled programs.
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details
>> Error configuring GSL.
>>
>> real0m0.460s
>> user0m0.204s
>> sys0m0.056s
>>
>> for R:
>>
>> checking size of int... 4
>> checking size of long... 8
>> checking size of long long... 8
>> checking size of double... 8
>> checking size of size_t... 8
>> checking size of long double... 16
>> checking whether we can compute C Make dependencies... yes, using $(CC) -
>> MM
>> checking whether gcc supports -c -o FILE.lo... yes
>> checking for gcc option to support OpenMP... -fopenmp
>> checking how to get verbose linking output from gfortran... -###
>> checking for Fortran 77 libraries of gfortran...  -L/home/uruwi/sage-7.6/
>> local/lib -L/home/uruwi/sage-7.6/local/lib/../lib64 -L/usr/local/lib/gcc/
>> x86_64-pc-linux-gnu/7.0.0 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0
>> /../../../x86_64-linux-gnu -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0
>> /../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/
>> x86_64-linux-gnu -L/usr/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-linux
>> -gnu/7.0.0/../../.. -lgfortran -lm -lquadmath
>> checking how to get verbose linking output from gcc... -###
>> checking for C libraries of gcc...  -L/home/uruwi/sage-7.6/local/lib -L/
>> home/uruwi/sage-7.6/local/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-
>> linux-gnu/7.0.0 -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0/../../../
>> x86_64-linux-gnu -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.0.0
>> /../../../../lib64 -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/
>> x86_64-linux-gnu -L/usr/lib/../lib64 -L/usr/local/lib/gcc/x86_64-pc-linux
>> -gnu/7.0.0/../../.. -lgcc_s
>> checking for dummy main to link with Fortran 77 libraries... none
>> checking for Fortran 77 name-mangling scheme... lower case, underscore, 
>> no extra underscore
>> checking whether gfortran appends underscores to external names... yes
>> checking whether gfortran appends extra underscores to external names... 
>> no
>> checking whether mixed C/Fortran code can be run... configure: WARNING: 
>> cannot run mixed C/Fortran code
>> configure: error: Maybe check LDFLAGS for paths to Fortran libraries?
>> Error configuring R.
>>
>> real0m33.667s
>> user0m13.640s
>> sys0m2.900s
>>
>>
>>

-- 
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] Transforming a complex function f:C->C into a function g:R^2->R^2

2017-05-01 Thread Robert Jacobson
I am wanting to hand off a holomorphic function to an external library, but 
the library only works with real numbers (operations with C++ doubles). 
Thus I wish to have Sage compute functions u and v for which f(x+i y) = 
u(x,y) + i v(x,y) such that u and v are expressed only in terms of 
operations on real numbers, i.e., without the imaginary unit i. I am 
impressed by how far I can get by simply calling f(x+i y).real_part(), but 
abs(x+I*y) is not rewritten as sqrt(x+I*y). A simple example session to 
illustrate:

sage: y, z = var('y, z')
sage: assume(x, 'real')
sage: assume(y, 'real')
sage: abs(x+I*y)
abs(x + I*y)
sage: abs(x+I*y).real_part()
abs(x + I*y)
sage: norm(x+I*y)
x^2 + y^2
sage: log(x+I*y).real_part()
log(abs(x + I*y))
sage: sin(x+I*y).real_part()
cosh(y)*sin(x)

Is there a simple way to do what I am trying to do? Perhaps by asking Sage 
to replace abs(z) with sqrt(norm(z))?

Best,

Robert

-- 
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] Re: Transforming a complex function f:C->C into a function g:R^2->R^2

2017-05-01 Thread Dominique Laurain
Hello Robert,

I wonder why you want to use the "abs()" function, when the "absolute 
value" function has no meaning for complex numbers.
How you define the 'greater than' (>)  operator in complex numbers ?
It is hazardous to mix symbolic computing (var, sqrt,..language) and field 
operatorsbecause off the scene, symbolic expressions have their own 
operators.
Yes : if you take norm(z) where z is a complex field element you get a real 
number...and then you can use abs() function (because ordered field).

Dominique

On Monday, 1 May 2017 20:43:32 UTC+2, Robert Jacobson wrote:
>
> I am wanting to hand off a holomorphic function to an external library, 
> but the library only works with real numbers (operations with C++ doubles). 
> Thus I wish to have Sage compute functions u and v for which f(x+i y) = 
> u(x,y) + i v(x,y) such that u and v are expressed only in terms of 
> operations on real numbers, i.e., without the imaginary unit i. I am 
> impressed by how far I can get by simply calling f(x+i y).real_part(), but 
> abs(x+I*y) is not rewritten as sqrt(x+I*y). A simple example session to 
> illustrate:
>
> sage: y, z = var('y, z')
> sage: assume(x, 'real')
> sage: assume(y, 'real')
> sage: abs(x+I*y)
> abs(x + I*y)
> sage: abs(x+I*y).real_part()
> abs(x + I*y)
> sage: norm(x+I*y)
> x^2 + y^2
> sage: log(x+I*y).real_part()
> log(abs(x + I*y))
> sage: sin(x+I*y).real_part()
> cosh(y)*sin(x)
>
> Is there a simple way to do what I am trying to do? Perhaps by asking Sage 
> to replace abs(z) with sqrt(norm(z))?
>
> Best,
>
> Robert
>

-- 
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] Re: Transforming a complex function f:C->C into a function g:R^2->R^2

2017-05-01 Thread Robert Jacobson


On Monday, 1 May 2017 15:31:12 UTC-4, Dominique Laurain wrote:
>
> I wonder why you want to use the "abs()" function, when the "absolute 
> value" function has no meaning for complex numbers.
>

The modulus of a complex number z is often called the absolute value of z 
and is typeset as |z|. The definition of this operation is 
|z|=sqrt(x^2+y^2) which you will recognize as the Euclidean distance on the 
complex plane between the origin and z, or the L^2 norm of z viewed as a 
vector in R^2. This terminology and notation are standard in the subject. 
Observe that insofar as this definition goes, no reference is made to the 
field properties of the complex numbers as such (although see below).

In computer algebra systems, the modulus of a complex number z is denoted 
almost universally using the same notation as the absolute value of a real 
number.
 

> How you define the 'greater than' (>)  operator in complex numbers ?
> It is hazardous to mix symbolic computing (var, sqrt,..language) and field 
> operatorsbecause off the scene, symbolic expressions have their own 
> operators.
> Yes : if you take norm(z) where z is a complex field element you get a 
> real number...and then you can use abs() function (because ordered field).
>

In the case of abs(z), z complex, there is a convenient connection between 
abs(z) and norm(z), but you have it backwards: it's the norm(z) function, 
defined as the field norm of z, that is defined in terms of the field 
properties of the complex numbers in Sage. The field norm of a complex 
number is just it's product with it's conjugate! So abs(z) = sqrt(norm(z)).

In my particular problem, I'm not choosing abs(z). Rather, Sage sometimes 
produces abs(z) when I ask for the real part of an expression. Consider:

sage: y = var('y')
sage: assume(x, 'real')
sage: assume(y, 'real')
sage: log(x+I*y).real_part()
log(abs(x + I*y))


Best,

Robert

-- 
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] Re: Sage for Windows, when?

2017-05-01 Thread Jim Mooney
Thanks, I'll try that. dld now.

-- 
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] Re: Sage for Windows, when?

2017-05-01 Thread Jim Mooney


On Monday, April 24, 2017 at 3:07:00 AM UTC-7, Dima Pasechnik wrote:
>
>
> another option is to install a 2nd hard drive/SSD, (almost trivial on 
> desktop)  and install Linux there.
> The cost of such disks, 100GB would give you more than enough, is below 
> $100.
>
>
> I do have an SSD. Is the software and installation the same as for a USB? 

-- 
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] Re: Transforming a complex function f:C->C into a function g:R^2->R^2

2017-05-01 Thread Dominique Laurain
OK Robert : I misunderstood.
I cannot help either 
Dominique

-- 
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] Re: Sage for Windows, when?

2017-05-01 Thread Jim Mooney


On Monday, April 24, 2017 at 6:11:48 AM UTC-7, slelievre wrote:
>
> Dear Jim,
>
> have you tried using the SageMath installer for Windows
> that Erik Bray has produced, funded by OpenDreamKit?
>
> This graph, which worked in virtualbox, died in sagemath for win, so I'll 
wait for the beta ;)

def f(x,y):
return math.sin(y*y+x*x)/math.sqrt(x*x+y*y+.0001)
P = plot3d(f,(-3,3),(-3,3), adaptive=True, color=rainbow(60, 'rgbtuple'),  
   max_bend=.1, max_depth=15)
P.show()
  
/opt/sagemath-7.4/local/lib/python2.7/site-packages/sage/repl/rich_outpu\
t/display_manager.py:590: RichReprWarning: Exception in _rich_repr_
while displaying object: Jmol failed to create file
'/dot_sage/temp/Dragon/2372/dir_OChyYd/preview.png', see
'/dot_sage/temp/Dragon/2372/tmp_VwmJ4C.txt' for details
  RichReprWarning,
Graphics3d Object
C
 

-- 
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.


Re: [sage-support] Sage for Windows, when?

2017-05-01 Thread Jim Mooney


On Monday, April 24, 2017 at 2:57:41 AM UTC-7, vdelecroix wrote:
>
> Dear Jim, 
>
> For windows status, have a look at [1]. Concerning data storage with 
> flash drive, the live USB key [2] gives you access to your hard drive. 
> So I don't understand your limitation problem. 
>
> Vincent 
>

Casper only allows about 2 gigs for Persistence between startups, so I 
can't download much since Sage is big. If I'm mistaken, please clarify. 

-- 
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] vars() gives me an error message

2017-05-01 Thread Jim Mooney
When I try to use vars() to see local variables I get this pink error 
message that goes on about "crystals" What's that about?

-- 
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.


Re: [sage-support] Re: Sage for Windows, when?

2017-05-01 Thread Samuel Lelièvre
Henri, could you say more precisely what you mean by
"Jupyter notebooks run but do no calculation"?

Samuel

2017-04-29 16:01 GMT+02:00 HG :

> I installed it on w10 and w7 works fine in sagenb, jupyper notebook runs
> but do no calculation. It's a bit slow because my pc-s are really old
> stuff, but better that virtualbox and I am unpatient to test sage-8 (linux
> sage-8 beta 4 works fine )
> Le lundi 24 avril 2017 11:54:31 UTC+2, Jim Mooney a écrit :
>>
>> Sage is so painfully slow on win 8.1 since it's run in a virtualbox, I
>> had to fall back to Maxima (which is fine for now, but I'll want Sage
>> eventually). I don't want to partition and dual-boot linux, and running
>> linux from a flash drive only allows a tiny amount of storage for Sage,
>> even with a big flash drive. Is there any progress on Sage for Windows? Or
>> an ETA?
>>
>

-- 
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.