Just for a start, try looking in sage/interfaces for several examples. You could also try wrapping it in Cython (though this is sometimes a bit harder with C++ than with C).
- Robert On Jun 10, 2008, at 7:35 AM, M. Yurko wrote: > After a little more searching, it appears that I should use a Pseudo > tty( right?). However, the programming guide gives no information on > how to actually do this. Any help would be greatly appreciated > (copying and pasting input and output is less than ideal). > > On Jun 10, 10:15 am, "M. Yurko" <[EMAIL PROTECTED]> wrote: >> Mike, thanks for the code. This is just what I need and works well >> from the command line. However, I'm a bit of a SAGE and linux newbie >> and I'm unsure about the best way of integrating this with SAGE. I >> checked the programming guide, but I only have some basic Python >> experience and have never done anything with C++ before. If it >> matters, I'm using Ubuntu 8.04 and have SAGE 3.0.2. >> >> On Jun 8, 11:15 pm, Michael <[EMAIL PROTECTED]> wrote: >> >>> My package has routines for the incomplete gamma function, and the >>> logarithmic >>> integral is a special case of that. For the incomplete gamma >>> function >>> I use a >>> combination of series, asumptotics, and continued fractions. The >>> relevant file >>> is Lgamma.h in the include directory of my L-function >>> package:http://pmmac03.math.uwaterloo.ca/~mrubinst/ >>> L_function_public/CODE/ >> >>> Mike >> >>> On Jun 7, 4:08 pm, "William Stein" <[EMAIL PROTECTED]> wrote: >> >>>> On Sat, Jun 7, 2008 at 12:54 PM, M. Yurko <[EMAIL PROTECTED]> wrote: >> >>>>> Is there any way for SAGE to calculate Li(x) (logarithmic >>>>> integral) >>>>> for complex inputs? >> >>>> I don't think that functionality is directly exposed in Sage in >>>> any easy >>>> to use way. I've cc'd Mike Rubinstein who has probably written >>>> fast >>>> C++ code (that is included with sage) in hopes that he will have >>>> a comment >>>> to make. >> >>>> William > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---