[sage-support] if I input 1.1, why is it real not rational?

2014-03-28 Thread Ralf Stephan
I would like to understand Sage behaviour better. I just found out that Sage is different from Pari when it comes to user input of values: sage: Ei(1.1).n(100) 2.1673782795634028985887198360 sage: Ei(11/10).n(100) 2.1673782795634028235837873423 while in Pari: ? sin(1.1) %1 =

Re: [sage-support] if I input 1.1, why is it real not rational?

2014-03-28 Thread Christophe Bal
Hello. I do not think that is really a convention, but it is very logical because 1.1 can also be a float result given by Python. But floats and decimals are not the same due to the ways operators act on them. Christophe BAL Le 28 mars 2014 10:34, Ralf Stephan gtrw...@gmail.com a écrit : I

Re: [sage-support] using s_integral_points to get the rank of an elliptic curve

2014-03-28 Thread paussse
Thank you very much for your explanation and the kind help. With best regards, Petra Tadic On Thursday, March 27, 2014 9:08:26 PM UTC+1, John Cremona wrote: On 27 March 2014 18:04, pau...@gmail.com javascript: wrote: Thank you very much for your kind help. It is a honor to get the

[sage-support] Re: if I input 1.1, why is it real not rational?

2014-03-28 Thread Ralf Stephan
On Friday, March 28, 2014 10:34:55 AM UTC+1, Ralf Stephan wrote: I would like to understand Sage behaviour better. I just found out that Sage is different from Pari when it comes to user input of values: sage: Ei(1.1).n(100) 2.1673782795634028985887198360 sage: Ei(11/10).n(100)

Re: [sage-support] if I input 1.1, why is it real not rational?

2014-03-28 Thread Ralf Stephan
On Friday, March 28, 2014 10:39:10 AM UTC+1, projetmbc wrote: I do not think that is really a convention, but it is very logical because 1.1 can also be a float result given by Python. But floats and decimals are not the same due to the ways operators act on them. But then it would be more

Re: [sage-support] if I input 1.1, why is it real not rational?

2014-03-28 Thread Christophe Bal
Your last comment is good. Maybe you can use Decimal(1.1) to avoid confusion. Le 28 mars 2014 10:57, Ralf Stephan gtrw...@gmail.com a écrit : On Friday, March 28, 2014 10:39:10 AM UTC+1, projetmbc wrote: I do not think that is really a convention, but it is very logical because 1.1 can also

Re: [sage-support] Re: graph.trace_faces() gives me inconsistent results

2014-03-28 Thread Nathann Cohen
Oh, I forgot : it is indeed weird that faces may not exist in your version of Sage even though trace_faces is already deprecated,but everything seems to be fine in Sage 6.2.beta5. Sorry for that, I don't know where it comes from, but it will be fixed if you update your install :-) Nathann On 28

[sage-support] Re: graph.trace_faces() gives me inconsistent results

2014-03-28 Thread Nathann Cohen
Hello ! for a simple graph, trace_faces() gives the expected answer for the faces of a planar graph That's a good news :-D the face that should exist between just nodes 3,4 and 5 is not found, it's replaced with a face around nodes 1,2,3,4,5. Any ideas what is wrong, or

[sage-support] Re: graph.trace_faces() gives me inconsistent results

2014-03-28 Thread Christa Brelsford
Nathann, Thanks for your help! I'm fairly new to both Sage and graph theory, but I understand the difference you point out, and it looks like the trace faces function is giving me accurate faces for some valid planar embedding- just not the one I thought it was working on. I spoke with a

[sage-support] Re: if I input 1.1, why is it real not rational?

2014-03-28 Thread Nils Bruin
On Friday, March 28, 2014 2:34:55 AM UTC-7, Ralf Stephan wrote: while in Pari: ? sin(1.1) %1 = 0.89120736006143533995180257787170353832 ? sin(11/10) %2 = 0.89120736006143533995180257787170353832 Pari works with multiprecision by default, so you're getting more digits here: ?

[sage-support] Re: if I input 1.1, why is it real not rational?

2014-03-28 Thread kcrisman
I think that Ralf's point is the following print (4.001^2).n(300) print ((4001/1000)^2).n(300) 16.0080013699597073136828839778900146484375 16.00800100 print

Re: [sage-support] Re: graph.trace_faces() gives me inconsistent results

2014-03-28 Thread Tom Boothby
Christa, The problem is not with the code, but your expectations of it (which may be valid, but that would be a feature request and not a bug). You expect the code to look at your planar position dictionary, and gin up an embedding from that. That is not a bad idea, and possibly a good feature

[sage-support] Fwd: sage bug

2014-03-28 Thread William Stein
-- Forwarded message -- From: aperry ape...@math.harvard.edu Date: Fri, Mar 28, 2014 at 5:25 PM Subject: sage bug To: wst...@uw.edu Hi, I'd like to report a bug in sage. There seems to be a problem with the functions that check whether two quadratic forms over Z are equivalent.

[sage-support] sage notebook in other browser

2014-03-28 Thread Prakash Dey
My default browser is firefox when i type *$ sage -notebook *it opens in firefox. Is there a way to specify other browser like *chromium-browser* -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving

Re: [sage-support] sage notebook in other browser

2014-03-28 Thread Jori Mantysalo
On Fri, 28 Mar 2014, Prakash Dey wrote: Is there a way to specify other browser like *chromium-browser* Should need only setting SAGE_BROWSER. See http://www.sagemath.org/doc/faq/faq-usage.html#how-do-i-get-started -- Jori Mäntysalo -- You received this message because you are subscribed

[sage-support] Re: sage notebook in other browser

2014-03-28 Thread Prakash Dey
Thank You Very much. Now I will be able to make a unity launcher for sage. -- 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