[sage-support] Re: formal sets

2017-11-05 Thread Ralf Stephan
Please review
https://trac.sagemath.org/ticket/24162

-- 
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: formal sets

2017-11-05 Thread Ralf Stephan
On Sunday, November 5, 2017 at 8:56:44 PM UTC+1, Eric Gourgoulhon wrote:
>
> sage: R = Set(RealSet(-oo,oo))
> sage: R.an_element()
> (-oo, +oo)
>

I see, R is a set with one element, so there is a difference to Set(ZZ)

In passing, we may also note that
> sage: RealSet(-oo,+oo).an_element()
> ...
> SignError: cannot add infinity to minus infinity
>
>
Thanks. I think this needs to be fixed. 

-- 
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: password

2017-11-05 Thread Eric Gourgoulhon
Run a sage session in a terminal and type:

sage: notebook(reset=True)

More details at 
https://ask.sagemath.org/question/26043/forgotten-notebook-password/

Eric.

-- 
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: formal sets

2017-11-05 Thread Eric Gourgoulhon
Hi, 

Le dimanche 5 novembre 2017 15:14:16 UTC+1, Ralf Stephan a écrit :
>
> A bit more tricky are the reals:
> sage: Set(RealSet(-oo,oo))
> Set of elements of (-oo, +oo)
>
>
Well, this one is maybe too tricky:
sage: R = Set(RealSet(-oo,oo))
sage: R.an_element()
(-oo, +oo)
???

In passing, we may also note that
sage: RealSet(-oo,+oo).an_element()
...
SignError: cannot add infinity to minus infinity


Eric.

-- 
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] password

2017-11-05 Thread Alvaro Ezequiel
how can i recover my password?? i dont remember it in the sage notebok, 
help!

-- 
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] formal sets

2017-11-05 Thread Ralf Stephan
Hello,

The set of integers can be formally represented as
sage: Set(ZZ)
Set of elements of Integer Ring

A bit more tricky are the reals:
sage: Set(RealSet(-oo,oo))
Set of elements of (-oo, +oo)

How could one represent the complexes? Is it a cartesian product?

Regards,

-- 
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] operate with base 2 numbers

2017-11-05 Thread Vincent Delecroix
Your question was unclear to me. All numbers are stored in base 2 on a 
computer. To create a number using base 2 notations you need to use 
"named arguments" as in


sage: RealNumber("10101e2", base=2)
84.0

sage: Rational("101/10010", base=2)
5/18

Vincent

On 04/11/2017 19:00, René Mérou wrote:


Hi all,

Can anyone explain how can I operate with floating numbers in base 2?

I want to have (1010-10)/10   and have one 1.010101010101010...  or
1.010101010101*2^0  or  if possible, to have 1.(01) a periodic number.

I know how to have it in base 10 and use str(2) to have the answer but i
would like to continue my work with the result as a number not as a string.

My tentatives:

Integer('1000',2)  goes well but just with integers

Rational('100.1',3)

TypeError: unable to convert '100.1' to a rational

Real('1.1',2)
NameError: name 'Real' is not defined

In a phrase, is there a way to operate directly with floating point or 
scientific numbers in base 2?



--
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: Why doesn't notebook work with Sage 8.0 on Fedora 26?

2017-11-05 Thread Dima Pasechnik
Do you have ~/.sage/ directory?
If yes, could you rename it to something else and try again?
Thanks. 

On Sunday, November 5, 2017 at 12:48:06 AM UTC, Lee Duke wrote:
>
>
> I am running Fedora 26. The system is uo-to-date. I downloaded Sage 8.0 
> source and compiled it following the directions provided on the Sage 
> website. The system compiled and was made with no errors. When I enter 
> "notebook()" I get:
>
>  ./sage
> ┌┐
> │ SageMath version 8.0, Release Date: 2017-07-21 │
> │ Type "notebook()" for the browser-based notebook interface.│
> │ Type "help()" for help.│
> └┘
> sage: notebook()
> ---
> OSError   Traceback (most recent call last)
>  in ()
> > 1 notebook()
>
> /home/duke/sage-8.0/src/sage/misc/lazy_import.pyx in 
> sage.misc.lazy_import.LazyImport.__call__ 
> (/home/duke/sage-8.0/src/build/cythonized/sage/misc/lazy_import.c:3559)()
> 352 True
> 353 """
> --> 354 return self.get_object()(*args, **kwds)
> 355 
> 356 def __repr__(self):
>
> /home/duke/sage-8.0/local/lib/python2.7/site-packages/sagenb/notebook/notebook_object.pyc
>  
> in __call__(self, *args, **kwds)
> 241 """
> 242 def __call__(self, *args, **kwds):
> --> 243 return self.notebook(*args, **kwds)
> 244 
> 245 notebook = run_notebook.notebook_run
>
> /home/duke/sage-8.0/local/lib/python2.7/site-packages/sagenb/notebook/run_notebook.pyc
>  
> in notebook_run(self, directory, port, interface, port_tries, secure, 
> reset, accounts, openid, server_pool, ulimit, timeout, doc_timeout, upload, 
> automatic_login, start_path, fork, quiet, server, profile, subnets, 
> require_login, open_viewer, address)
> 529 # if none use defaults
> 530 
> --> 531 nb = notebook.load_notebook(directory)
> 532 
> 533 directory = nb._dir
>
> /home/duke/sage-8.0/local/lib/python2.7/site-packages/sagenb/notebook/notebook.pyc
>  
> in load_notebook(dir, interface, port, secure, user_manager)
>1832 
>1833 dir = make_path_relative(dir)
> -> 1834 nb = Notebook(dir)
>1835 nb.interface = interface
>1836 nb.port = port
>
> /home/duke/sage-8.0/local/lib/python2.7/site-packages/sagenb/notebook/notebook.pyc
>  
> in __init__(self, dir, user_manager)
> 170 
> 171 # Store / Refresh public worksheets
> --> 172 for id_number in 
> os.listdir(self.__storage._abspath(self.__storage._user_path("pub"))):
> 173 if id_number.isdigit():
> 174 a = "pub/"+str(id_number)
>
> OSError: [Errno 2] No such file or directory: 
> '/home/duke/.sage/sage_notebook.sagenb/home/pub'
>
>

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