Re: [sage-devel] Re: Ticket 15003

2014-02-17 Thread Amit Jamadagni
Hello,
A review on the ticket would be great
http://trac.sagemath.org/ticket/15003. Thanks.


On Sat, Feb 15, 2014 at 7:14 AM, Amit Jamadagni wrote:

> Hello,
>  I have tried to resolve the issue. Any comments would be helpful.
> Thanks.
>
>
> On Fri, Feb 14, 2014 at 4:31 AM, Volker Braun wrote:
>
>> Never copy&paste code around. Just call gamma from factorial.
>>
>>
>> On Thursday, February 13, 2014 8:13:47 PM UTC, Amit Jamadagni wrote:
>>>
>>> Hello,
>>> I was going through this ticket http://trac.sagemath.
>>> org/ticket/15003. The factorial should return gamma(x+1) which is the
>>> necessary answer, can this be directly called or should there be a
>>> replication of the code from gamma implementation.I was going through
>>> real_mpfi.pyx. This is the first time I am trying to fix a ticket for Sage.
>>> Any help would be really great. Thanks.
>>>
>>  --
>> 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 http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

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


[sage-devel] Re: systemd and trac #381

2014-02-17 Thread Volker Braun
I had some troubles running the buildbot slave through systemd. You service 
will be selinux confined and some doctests with external programs fail on 
Fedora 20. Nothing particularly important afair.

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


[sage-devel] Re: systemd and trac #381

2014-02-17 Thread Jason Grout

On 2/17/14 11:09 AM, William Stein wrote:

On Mon, Feb 17, 2014 at 9:07 AM, Jason Grout
 wrote:

On 2/15/14 11:44 PM, Henry de Valence wrote:


This approach requires systemd and is Linux-specific, but as every major
Linux distribution is either using systemd now or plans to move to it in
the future, it seems like it might be worthwhile for Sage to ship
systemd .service files for Linux users.



Well, except for Ubuntu.  But nevertheless, thanks! (as a person moving to a
systemd-based system)


Ubuntu is moving to systemd soon.

http://www.linux.com/news/software/applications/762189-shuttleworth-losing-gracefully



Oh, wow, I guess that seals the fate of upstart.  Thanks for pointing 
this out.


Jason



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


Re: [sage-devel] Re: systemd and trac #381

2014-02-17 Thread William Stein
On Mon, Feb 17, 2014 at 9:07 AM, Jason Grout
 wrote:
> On 2/15/14 11:44 PM, Henry de Valence wrote:
>>
>> This approach requires systemd and is Linux-specific, but as every major
>> Linux distribution is either using systemd now or plans to move to it in
>> the future, it seems like it might be worthwhile for Sage to ship
>> systemd .service files for Linux users.
>
>
> Well, except for Ubuntu.  But nevertheless, thanks! (as a person moving to a
> systemd-based system)

Ubuntu is moving to systemd soon.

http://www.linux.com/news/software/applications/762189-shuttleworth-losing-gracefully

>
> Thanks,
>
> Jason
>
>
>
> --
> 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 http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

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


[sage-devel] Re: systemd and trac #381

2014-02-17 Thread Jason Grout

On 2/15/14 11:44 PM, Henry de Valence wrote:

This approach requires systemd and is Linux-specific, but as every major
Linux distribution is either using systemd now or plans to move to it in
the future, it seems like it might be worthwhile for Sage to ship
systemd .service files for Linux users.


Well, except for Ubuntu.  But nevertheless, thanks! (as a person moving 
to a systemd-based system)


Thanks,

Jason


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


[sage-devel] Re: systemd and trac #381

2014-02-17 Thread Keshav Kini
Henry de Valence  writes:
> Hi all,
>
> while looking at the SAGE FAQ here [1], I noticed the link to Trac #381 [2]
> (the link is broken, on the FAQ page, though).
>
> One option which is not mentioned, but which is extremely convenient,
> is to run Sage using a systemd user session. The Arch Linux packages 
> for Sage include the file
>
> /usr/lib/systemd/user/sage.service

[snip]

> This approach requires systemd and is Linux-specific, but as every major
> Linux distribution is either using systemd now or plans to move to it in
> the future, it seems like it might be worthwhile for Sage to ship 
> systemd .service files for Linux users.

+1, this sounds like a good idea!  I made #15828 to track this, though I
don't (yet) use systemd so I won't involve myself in actually doing the
work ;)

http://trac.sagemath.org/ticket/15828

Thanks,
Keshav

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


Re: [sage-devel] Re: Issue With Implementation of Gamma Function

2014-02-17 Thread Zimmermann Paul
   Hi Jori,

> Date: Mon, 17 Feb 2014 14:56:56 +0200 (EET)
> From: Jori Mantysalo 
>=20
> On Mon, 17 Feb 2014, Zimmermann Paul wrote:
>=20
> > On my computer, computing gamma(Pi^2) to 1 bits takes about 1.4s (f=
or the
> > first computation, when Bernoulli numbers are not cached) instead of 6.=
1s with
> > Pari/GP.
>=20
> Out of curiosity: How this compares to, for example, Mathematica?
>=20
> --=20
> Jori M=C3=A4ntysalo

I don't have access to Mathematica, but according to [1], Mathematica 8.0 t=
akes
about 1.7 seconds for the first computation at 3000 decimal digits, which i=
s
comparable to 1 bits (however this is for complex input, I don't know i=
f
Mathematica is faster for real numbers).

Subsequent computations on my machine take 0.083s each with the development
version of MPFR (at 1 bits).

Paul

[1] http://fredrikj.net/blog/2013/02/timings-for-the-complex-gamma-function=
-in-arb/

--=20
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 e=
mail to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-devel] Re: Issue With Implementation of Gamma Function

2014-02-17 Thread Jori Mantysalo

On Mon, 17 Feb 2014, Zimmermann Paul wrote:


On my computer, computing gamma(Pi^2) to 1 bits takes about 1.4s (for the
first computation, when Bernoulli numbers are not cached) instead of 6.1s with
Pari/GP.


Out of curiosity: How this compares to, for example, Mathematica?

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


Re: [sage-devel] Re: Issue With Implementation of Gamma Function

2014-02-17 Thread Zimmermann Paul
a last update: MPFR now uses the Von Staudt=E2=80=93Clausen theorem to comp=
ute
Bernoulli numbers (thanks to Fredrik Johansson for pointing out this formul=
a).
On my computer, computing gamma(Pi^2) to 1 bits takes about 1.4s (for t=
he
first computation, when Bernoulli numbers are not cached) instead of 6.1s w=
ith
Pari/GP.

Paul Zimmermann

--=20
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 e=
mail to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.