Re: [sage-support] 6.9rc3 : Ipython notebook seems seriously out of whack.

2015-10-12 Thread Emmanuel Charpentier
I went back o the "develop" branch", fetched the last release (6.9) and 
re-made. $SAGE_ROOT/local/lib/libtinfo* is still out of the way.

The resulting system can open a sample sheet created with 6.9rc3, correctly 
solves x^2+1==0 and typesets the output if necessary.

Two bizarreries :


   - Example of typeset output (cut from Jupyter to Google groups) :

In [5]:

solve(x^2+1==0, x)

Out[5]:
[x=(−i),x=i]

 (i. e. \newcommand{\Bold}[1]{\mathbf{#1}}\left[x = \left(-i\right), x = 
i\right]). The "simple" output doesn't have the superfetatory parentheses 
around the -I solution...


   - The mathjax menu seems difficult to reach


ISTR that something analogous has been discussed recently, but can't 
retrieve it at the moment...

HTH,

--
Emmanuel Charpentier

Le dimanche 11 octobre 2015 09:53:49 UTC+2, Emmanuel Charpentier a écrit :
>
> Works for me in a new sheet. Doesn't in a sheet initially created by 
> 6.9beta1. As far as I can tell, nothing in the sheet explains this 
> behaviour...
>
> And #19374 still doesn't work for me neither in the "old" or the "new" 
> sheet).
>
> HTH,
>
> --
> Emmanuel Charpentier
>
>
> Le dimanche 11 octobre 2015 07:58:53 UTC+2, tdumont a écrit :
>>
>> Le 10/10/2015 22:32, Jeroen Demeyer a écrit : 
>> > On 2015-10-10 21:24, Emmanuel Charpentier wrote: 
>> >> In [2]: 
>> >> %display simple 
>> >> 
>> >> solve(x^2+1==0,x,to_poly_solve="force") 
>> >> Out[2]: 
>> >> 
>> >> [] 
>> >> 
>> >> 
>> >> Huh ? 
>> > Works for me... 
>> > 
>> > In any case, it would be very unlikely that a Sage command actually 
>> > gives different output in the command line and in the Jupyter notebook. 
>> > 
>>
>>  >jupyter notebook 
>> sage 6.9 rc3 
>> This works for me too. 
>> t;d. 
>>
>

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


Re: [sage-support] 6.9rc3 : Ipython notebook seems seriously out of whack.

2015-10-12 Thread Eric Gourgoulhon


Le lundi 12 octobre 2015 09:33:21 UTC+2, Emmanuel Charpentier a écrit :
>
>
>
> Two bizarreries :
>
> The "simple" output doesn't have the superfetatory parentheses around the 
> -I solution...
>
>
This has nothing to do with the LaTeX rendering in the jupyter notebook: it 
results from sage command latex and is already here in the console:

sage: latex([x == -I, x == I])
\left[x = \left(-i\right), x = i\right]



>- The mathjax menu seems difficult to reach
>
>
>
Have you tried to right-click on the displayed formula ? (it works for me) 

Best wishes,

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


[sage-support] Is this a bug in Polyhedron class (RDF vs AA)?

2015-10-12 Thread jplab
Hi everyone,

Is the following behavior normal:

sage: P = polytopes.regular_polygon(5)
sage: a_vertex = P.vertices()[0]
sage: for facet in P.Hrepresentation(): print facet.contains(a_vertex), 
facet.interior_contains(a_vertex)

True False
True True
True False
True True
True True
sage: P = polytopes.regular_polygon(5, base_ring=RDF)
sage: a_vertex = P.vertices()[0]
sage: for facet in P.Hrepresentation(): print facet.contains(a_vertex), 
facet.interior_contains(a_vertex) 
True True
True True
True True
True True
True True

Doing this containment test in RDF seems to break. I guess that there are 
many methods that depend on the containment methods that also break then?


-- 
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: Is this a bug in Polyhedron class (RDF vs AA)?

2015-10-12 Thread Nathann Cohen
Hellooo,

Is the following behavior normal:
>

Well... In the first case you work on an exact ring, and in the second case 
you compare the output of >= and > on an inexact ring.

I do not know if there is something wrong somewhere, but I do not expect 
float computations to be exact either, so I do not know...

Nathann

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


Re: [sage-support] Re: Is this a bug in Polyhedron class (RDF vs AA)?

2015-10-12 Thread Vincent Delecroix

On 12/10/15 12:57, Nathann Cohen wrote:

Is the following behavior normal:


Well... In the first case you work on an exact ring, and in the second case
you compare the output of >= and > on an inexact ring.

I do not know if there is something wrong somewhere, but I do not expect
float computations to be exact either, so I do not know...


Yeap. This is exactly it. You have vertices over an inexact ring and 
equations over an inexact ring. You should not expect anything beyond 
the precision of the ring. Including subtle difference between < and <=.


sage: 0.9 == 0.3 + 0.3 + 0.3
False
sage: 0.9 > 0.3 + 0.3 + 0.3
True

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