[sage-support] installation proglems for sage binary on Ubuntu 17

2018-03-01 Thread Dima Pasechnik
this is an old version of Sagemath, and it most probably won't work on ubuntu 
17. If your OS release date is later than the Sagemath release date, all bets 
are off.
I am not 100% sure that even Sagemath 8.1 will work straight out of the box on 
Ubuntu 17.

-- 
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] Is this a bug?

2018-03-01 Thread Dima Pasechnik
nothing prevents Sagecell from predefining x, or even using Wfram alpha as the 
backend :-)

-- 
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: installation proglems for sage binary on Ubuntu 17

2018-03-01 Thread slelievre


Wed 2018-02-28 21:48:43 UTC, Tiago Oliveira Santana:

> I'm trying to install sage-7.6-Ubuntu_16.04-x86_64.tar.bz2 on Ubuntu 17,
> But I don't know what to do. Please Helping, I am new in Linux

Dear Tiago,

Since SageMath is now packaged for Debian, and since Ubuntu
is based on Debian, installation should be easy for you.

Starting from Ubuntu 17.04, you should be able to run

sudo apt install sagemath-jupyter

in a terminal, and to get a working SageMath installation in your system.

You should also install the prerequisites for SageMath to work.
I would recommend:

sudo apt update
sudo apt install gfortran

Let us know if that works and which version of Sage that gets you.

Another option is to build from source.

Kind regards, Samuel


-- 
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: installation proglems for sage binary on Ubuntu 17

2018-03-01 Thread Henri Girard

After installing on ubuntu I got this message and sage not running ?


sage
┌┐
│ SageMath version 8.1, Release Date: 2017-12-07 │
│ Type "notebook()" for the browser-based notebook interface.    │
│ Type "help()" for help.    │
└┘
Traceback (most recent call last):
  File "/usr/share/sagemath/bin/sage-ipython", line 7, in 
    from sage.repl.interpreter import SageTerminalApp
ImportError: No module named sage.repl.interpreter


Le 01/03/2018 à 14:03, Henri Girard a écrit :


Thanks, I didn't even notice it was packaged ! I used to get the 
binary but I like to have it as deb



Le 01/03/2018 à 11:47, slelievre a écrit :



Wed 2018-02-28 21:48:43 UTC, Tiago Oliveira Santana:

> I'm trying to install sage-7.6-Ubuntu_16.04-x86_64.tar.bz2 on 
Ubuntu 17,

> But I don't know what to do. Please Helping, I am new in Linux

Dear Tiago,

Since SageMath is now packaged for Debian, and since Ubuntu
is based on Debian, installation should be easy for you.

Starting from Ubuntu 17.04, you should be able to run

    sudo apt install sagemath-jupyter

in a terminal, and to get a working SageMath installation in your system.

You should also install the prerequisites for SageMath to work.
I would recommend:

    sudo apt update
    sudo apt install gfortran

Let us know if that works and which version of Sage that gets you.

Another option is to build from source.

Kind regards, Samuel


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




--
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] Find_root not finding a root

2018-03-01 Thread saad khalid
Hey everyone:

I'm running this code:
find_root(e^(-2*x*1)-(1 - 4*x),-2,2)

It returns 

2.4011774461136836e-13

which is approximately 0. However, there should be another root around x = 
-0.628. Why isn't it finding this root? 
Is there any way I can make sure it finds all of them?



Thanks

-- 
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: Find_root not finding a root

2018-03-01 Thread Simon King
Hi Khalid,

On 2018-03-02, saad khalid  wrote:
> I'm running this code:
> find_root(e^(-2*x*1)-(1 - 4*x),-2,2)
>
> It returns 
>
> 2.4011774461136836e-13
>
> which is approximately 0. However, there should be another root around x = 
> -0.628. Why isn't it finding this root? 
> Is there any way I can make sure it finds all of them?

I suppose you know that in Python (which is the underlying language 
of SageMath), you can access the documenation of an object by putting a
question mark after it. So, do

   sage: find_root?

and you can read:
   Numerically find a root of "f" on the closed interval [a,b] (or
   [b,a]) if possible, where "f" is a function in the one variable.
   Note: this function only works in fixed (machine) precision, it is
   not possible to get arbitrary precision approximations with it.

So, it says *a* root, not *all* roots. The solution returned above
obviously is in the given intervall, and so SageMath's answer complies
with the specification.

If you want other solutions, you need to provide a smaller intervall:

   sage: f(x) = e^(-2*x*1)-(1-4*x)
   sage: find_root(f, -1,0)
   0.0
   sage: f(x=0)
   0
   
--> one gets yet another solution, the intervall is still too large. Again
smaller:

   sage: find_root(f, -1,-0.5)
   -0.6282156043130847
   sage: f(x=_)
   -4.440892098500626e-16

And that was what you were looking for.

Best regards,
Simon


-- 
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] Info about python3.6+

2018-03-01 Thread Henri Girard

Hi,
This is the notebook I am running, apparently sage runs with python3.6+ 
, is this exact ?



   About Jupyter Notebook


   Server Information:

You are using Jupyter notebook.

The version of the notebook server is: *5.4.0*
The server is running on this version of Python:

Python 3.6.4+ (default, Feb 12 2018, 08:25:03)
[GCC 7.3.0]


   Current Kernel Information:

┌┐
│ SageMath version 8.1, Release Date: 2017-12-07 │
│ Type "notebook()" for the browser-based notebook interface.│
│ Type "help()" for help.│
└┘


Best regards,
Henri

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