[sage-devel] About solve(x*abs(x)==1, x)

2017-12-13 Thread Jori Mäntysalo

This has been discussed earlier, but I was again asked about this:

sage: solve(x*abs(x)==1, x)
[x == (1/abs(x))]
sage: solve([x*abs(x)==1, x==x], x)
[[x == 1]]

And yes, to_poly_solve=True can be used. But this is annoying to teach and 
gives bad impression of Sage. Is there any plans to make this better?


--
Jori Mäntysalo


[sage-devel] request to build/test mac-app on OSX 10.13

2017-12-13 Thread Dima Pasechnik
Could anyone who happens to be using OSX 10.13 check whether mac-app builds 
and works?
We have a recent thread here "Sage 8.1 building Mac-app fails" saying that 
it apparently fails on OSX 10.13
(but works on 10.12 - the OSX version I can test on ATM)

(if you never built it before, note you would need 10-15 Gb of disk space 
for this)

Thanks,
Dima

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


[sage-devel] Re: Sage 8.1 Mac OS 10.13.2 Build: Error installing package r-3.4.2.p0

2017-12-13 Thread Dima Pasechnik
It would also be great to get a confirmation that the external libcurl 
installation was picked up.
Namely, somewhere in the output of ./configure there should be a line

   curl-7.56.1 not installed (configure check)

(in the long list of the other Sage packages) - perhaps the version number 
is different there for you; 
most probably 7.55.1.

If this is indeed this case, you are probably hitting an R bug---indeed, 
these lines in your log:

[r-3.4.2.p0] checking libcurl version ... 7.55.1
[r-3.4.2.p0] checking curl/curl.h usability... yes
[r-3.4.2.p0] checking curl/curl.h presence... yes
[r-3.4.2.p0] checking for curl/curl.h... yes
[r-3.4.2.p0] checking if libcurl is version 7 and >= 7.22.0... no

look as if for R the version 7.55.1 is smaller than 7.22.0, which is kind 
of silly.


On Tuesday, December 12, 2017 at 10:19:55 PM UTC, Dima Pasechnik wrote:
>
> there is a conflict with your Anaconda installation. Make sure it not in 
> your PATH.
>

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


[sage-devel] Re: Shutdown sagenotebook and jupyter server

2017-12-13 Thread Sarfo
I meant both

On Monday, 11 December 2017 11:27:27 UTC, Dima Pasechnik wrote:
>
>
>
> On Monday, December 11, 2017 at 9:56:17 AM UTC, Sarfo wrote:
>>
>> I noticed the sage notebook and jupyter servers still run in the 
>> background after i have exited and closed all notebooks and the browser. 
>>
>
> Do you mean a jupyter notebook whn you say "sage notebook"?
>  
>
>> Please may I know how to shut them down without having to manually kill 
>> those processes in the terminal. (I launch the notebook interface with an 
>> executable script).  Wouldn't it be great if a server shutdown button is 
>> added to the interface? Thank you.
>>
>

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


[sage-devel] Re: Shutdown sagenotebook and jupyter server

2017-12-13 Thread Sarfo


On Monday, 11 December 2017 11:27:27 UTC, Dima Pasechnik wrote:
>
>
> Do you mean a jupyter notebook whn you say "sage notebook"?
>


I mean both (the jupyter notebook and the old sage notebook) 

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


[sage-devel] Re: Shutdown sagenotebook and jupyter server

2017-12-13 Thread Nils Bruin
On Monday, December 11, 2017 at 1:56:17 AM UTC-8, Sarfo wrote:
>
> I noticed the sage notebook and jupyter servers still run in the 
> background after i have exited and closed all notebooks and the browser. 
> Please may I know how to shut them down without having to manually kill 
> those processes in the terminal. (I launch the notebook interface with an 
> executable script).  Wouldn't it be great if a server shutdown button is 
> added to the interface? Thank you.
>

For jupyter this might happen eventually:

https://github.com/jupyter/notebook/pull/3004

Since sagenb was originally designed as a multiuser service, it's not quite 
appropriate there. If an "admin" is logged in (which is the default 
solution for local notebooks) it could have a "notebook shutdown" button, 
but sagenb isn't being developed anymore.
 

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


[sage-devel] Re: About solve(x*abs(x)==1, x)

2017-12-13 Thread rjf
how much of Sage are you using?  If you are
just using Sage as a front end to Maxima, maybe
you should just use Maxima.

The relationship of solve and to_poly_solve has been
discussed from time to time in the maxima newsgroup.

Whether there is a feasible "upgrade" to just use sympy's
solve is perhaps another path.  
RJF

On Wednesday, December 13, 2017 at 1:36:10 AM UTC-8, Jori Mäntysalo wrote:
>
> This has been discussed earlier, but I was again asked about this: 
>
> sage: solve(x*abs(x)==1, x) 
> [x == (1/abs(x))] 
> sage: solve([x*abs(x)==1, x==x], x) 
> [[x == 1]] 
>
> And yes, to_poly_solve=True can be used. But this is annoying to teach and 
> gives bad impression of Sage. Is there any plans to make this better? 
>
> -- 
> Jori Mäntysalo 
>

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


[sage-devel] Re: request to build/test mac-app on OSX 10.13

2017-12-13 Thread kcrisman


On Wednesday, December 13, 2017 at 7:18:46 AM UTC-5, Dima Pasechnik wrote:
>
> Could anyone who happens to be using OSX 10.13 check whether mac-app 
> builds and works?
> We have a recent thread here "Sage 8.1 building Mac-app fails" saying that 
> it apparently fails on OSX 10.13
> (but works on 10.12 - the OSX version I can test on ATM)
>
>
Our IT folks have recommended not upgrading yet, FWIW.

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


[sage-devel] Re: request to build/test mac-app on OSX 10.13

2017-12-13 Thread John H Palmieri
 I tried this. First I build sage, then did

$ cd src/mac-app
$ make

This led to an apparent error:

mkdir -p sage-8.1-OSX_10.13.2_x86_64
make: *** No rule to make target 
`sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/Contents/Resources/sage/sage', 
needed by `sage_symlink'.  Stop.
make: *** Waiting for unfinished jobs
xcodebuild -target Sage -configuration Debug \
ARCHS=x86_64 \
ONLY_ACTIVE_ARCH=NO \
SDKROOT=
Build settings from command line:
ARCHS = x86_64
ONLY_ACTIVE_ARCH = NO
SDKROOT = 

At this point it continued with 

=== BUILD TARGET Sage OF PROJECT Sage WITH CONFIGURATION Debug ===


and then after just a few minutes, it said

** BUILD SUCCEEDED **
mkdir -p sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app
cp -pRL build/Debug/Sage.app/ sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app
plutil -convert xml1 sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app/Contents/
Info.plist
sed -i '' "s/SAGE_VERSION/8.1/" sage-8.1-OSX_10.13.2_x86_64/SageMath-8.1.app
/Contents/Info.plist

but produced no .dmg file. If I make the change 

diff --git a/src/mac-app/Makefile b/src/mac-app/Makefile
index 430121647a..d0c8238cbc 100644
--- a/src/mac-app/Makefile
+++ b/src/mac-app/Makefile
@@ -103,7 +103,7 @@ $(TARGET)/README.txt: $(SAGE_ROOT)/src/bin/sage-README-
osx.txt
 
 non_app_files: $(TARGET)/README.txt $(TARGET)/.background/sage.png $(TARGET
)/Applications
 
-sage_symlink: $(APP)/Contents/Resources/sage/sage
+sage_symlink: $(APP)/Contents/Resources/sage
rm -f $(APP)/sage
ln -s Contents/Resources/sage/sage $(APP)/sage

 
then it seems to actually build correctly, producing a .dmg file.

-- 
John

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


Re: [sage-devel] Re: About solve(x*abs(x)==1, x)

2017-12-13 Thread Jori Mäntysalo

On Wed, 13 Dec 2017, rjf wrote:


how much of Sage are you using?  If you arejust using Sage as a front end to 
Maxima, maybe
you should just use Maxima.


I don't use. I was asked about this by a man who teaches course about 
"Computer programs for mathematics and statistics". And he is not happy 
about this.


--
Jori Mäntysalo


[sage-devel] Error downloading gmpy2-2.1.0a1.tar.gz

2017-12-13 Thread Vincent Delecroix

Hello,

The tarball for gmpy2 has not been updated on the mirrors.

Vincent

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