Re: [sage-devel] Re: Questions about Solve

2011-09-14 Thread William Stein
On Tue, Sep 13, 2011 at 10:48 AM, kcrisman kcris...@gmail.com wrote:
 Personally, I'm in favor of deprecating the solve(eq, x,y) or solve(list
 of equations, x,y,z) syntax, and would prefer that the variables be
 specified as a list:

 Backwards-incompatible, hence fodder for the mythical Sage 5.0 ...

(Aside, that has nothing to do with this particular solve issue.)

We deprecate after one year.  I think deprecation should have nothing
to do with sage 5.0.  The policy, which we agreed on long ago is
deprecation after one year (minimum), except when there is a
compelling argument otherwise (e.g., combinat's pickles).

-- William



 solve(eq, [x,y]) or
 solve(list of equations, [x,y,z])

 Though I should point out, in fairness, that Maxima requires this -
 see http://maxima.sourceforge.net/docs/manual/en/maxima_20.html#IDX850
 - so maybe we were wrong.

 P.S. I wish we had keyword-only arguments
 (http://www.python.org/dev/peps/pep-3102/), so that we could clearly

 Huh, that is interesting.

 --
 To post to this group, send an email to sage-devel@googlegroups.com
 To unsubscribe from this group, send an email to 
 sage-devel+unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/sage-devel
 URL: http://www.sagemath.org




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

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: embedding sage in c or c++

2011-09-14 Thread Willem Jan Palenstijn
On Tue, Sep 13, 2011 at 04:45:58PM -0700, Michael Rubinstein wrote:
 Thanks! That worked for me too, though I'm not sure how you decided on
 the specific choices of libraries to link to.

Good to hear. The libraries are just what I needed to add to get it to link
without errors after starting with the -lpython2.6, by the way.


-Willem Jan

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: embedding sage in c or c++

2011-09-14 Thread Alexander Dreyer
On 14 Sep., 11:35, Willem Jan Palenstijn w...@usecode.org wrote:
 On Tue, Sep 13, 2011 at 04:45:58PM -0700, Michael Rubinstein wrote:
  Thanks! That worked for me too, though I'm not sure how you decided on
  the specific choices of libraries to link to.

 Good to hear. The libraries are just what I needed to add to get it to link
 without errors after starting with the -lpython2.6, by the way.
More generically, you may ask python itself about this, just integrate
the following into you build system:
  python -c from distutils.sysconfig import *; print get_config_vars()
['LIBS']

My best,
  Alexander

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Questions about Solve

2011-09-14 Thread kcrisman
  Backwards-incompatible, hence fodder for the mythical Sage 5.0 ...
 We deprecate after one year.  I think deprecation should have nothing
 to do with sage 5.0.  The policy, which we agreed on long ago is

Sometimes we've talked about 1 year + next (major) version.   My
point was that 5.0 seems to eternally be one year off :)

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] sage: documentation strings

2011-09-14 Thread Pedro Cruz
I've search here 

http://www.sagemath.org/doc/developer/conventions.html#documentation-strings

looking for this type of docstring:


   sage: txt=r''' hello
   : this goes on '''



This does not work using sage -t module.py. 

However python works like:

r
1+1
   2
txt = r''' um
   ... ola  dois '''
print txt
 um
ola  dois 
 


How can I test multiline instructions using sage: ?

Thanks. Pedro

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] sage: documentation strings

2011-09-14 Thread Minh Nguyen
Hi Pedro,

On Thu, Sep 15, 2011 at 1:05 AM, Pedro Cruz pedrocruzave...@gmail.com wrote:
 I've search here

 http://www.sagemath.org/doc/developer/conventions.html#documentation-strings

 looking for this type of docstring:

 
sage: txt=r''' hello
: this goes on '''
 

 This does not work using sage -t module.py.

Use this

...

Not like this:

:

See the following document for lots of examples on how to do
multi-line doctests:

http://www.sagemath.org/doc/thematic_tutorials/functional_programming.html

The Sage reference manual contains much more examples on multi-line doctests:

http://www.sagemath.org/doc/reference/index.html

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: sage: documentation strings

2011-09-14 Thread Keshav Kini
This is exactly what trac #10458 is about: 
http://trac.sagemath.org/sage_trac/ticket/10458

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] [ANN] Sage - FLINT Days in December

2011-09-14 Thread Bill Hart
Hi all,

John Cremona and I have just been successful with a grant application
to fund a Sage - FLINT Days at Warwick University in December this
year (dates and organisers to be announced shortly). This will be
organised as a Sage Days with a focus on topics relevant to fast
Number Theory. This conference will be especially useful for Number
Theorists and people in related areas who wish to learn how to use
Sage (and FLINT) for their research (and hobbies).

There will be about two talks per day by invited speakers. The
remainder will be dedicated to collaboration and coding sprints.

If you need funding to attend, we can quite possibly support you, so
please contact us as soon as possible. In addition to overseas
participants, we particularly encourage UK participants to sign up. We
requested additional funding for UK postgraduates too.

Formal invitations will be sent out when we get underway with organisation.

The Sage-FLINT Days will have an evening public lecture. If anyone has
a suggestion of who we should invite to give this lecture, please let
us know. It should be suitable for a general public audience, highly
entertaining and related to computational mathematics (preferably
Number Theory).

Suggestions for coding sprints and other collaborations are welcome on
the wiki [1]. We'll be adding some ourselves in the next few days.

The conference is made possible by generous support from the UK's
Engineering and Physical Sciences Research Council (EPSRC) and is
supplementary to my EPSRC grant Algorithms in Algebraic Number
Theory.

Best Wishes,

Bill Hart.

[1] http://wiki.sagemath.org/SageFlintDays

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: porting sage to OS X 10.7

2011-09-14 Thread R. Andrew Ohana
sqrt5.cs should back up now.

On Sun, Sep 11, 2011 at 10:15, William Stein wst...@gmail.com wrote:
 On Sun, Sep 11, 2011 at 10:05 AM, R. Andrew Ohana
 andrew.oh...@gmail.com wrote:
 I'm not in Seattle currently, so I can't until probably Wednesday. Is there
 anyone else who has access to the hardware?

 No worries.

 Incidentally, my main laptop is now upgraded to 10.7!


 --
 Andrew

 On Sep 11, 2011 12:21 AM, William Stein wst...@gmail.com wrote:
 On Saturday, September 10, 2011, Dima Pasechnik dimp...@gmail.com wrote:
 is sqrt5.cs.washington.edu down?


 Yes. Andrew, can you fix it?
 --
 To post to this group, send an email to sage-devel@googlegroups.com
 To unsubscribe from this group, send an email to
 sage-devel+unsubscr...@googlegroups.com 
 sage-devel%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/sage-devel
 URL: http://www.sagemath.org


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




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




-- 
Andrew

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org