Hi,
If I type
sage: N(sqrt(floor(800*pi) - 1))
I get a number as expected.
If I type
sage: h(x) = (floor(8*pi*10^x)-1)^(1/2)
sage: a = h(10); a
sqrt(floor(800*pi) - 1)
that seems fine. But if I then do
sage: N(a)
Traceback:
File
"/usr/local/sage/sage-6.5/local/lib/python2.
Many thanks, that was a very clear answer! I replaced properties by setter
methods now.
Unfortunately, I get strange doctest errors here (the doctesting framework
cannot find anything previously defined in the same docstring), so I can
only hope that I made no mistakes...
More tomorrow...
Ma
On 03/30/15 05:13, Ivan Andrus wrote:
On Mar 29, 2015, at 9:39 AM, William Stein wrote:
On Sun, Mar 29, 2015 at 8:23 AM, jplab wrote:
Hi all,
Lately, I was suggested to create a post concerning the Sage logo. It would
be nice to have an open discussion about some possibilities. Perhaps this
On Sun, Mar 29, 2015 at 11:20 AM, Dima Pasechnik wrote:
> On 2015-03-29, William Stein wrote:
>> On Fri, Mar 27, 2015 at 1:14 AM, Dima Pasechnik wrote:
>>>
>>>
>>> On Thursday, 26 March 2015 19:48:37 UTC, Jeroen Demeyer wrote:
On 2015-03-26 20:17, William Stein wrote:
> Hi Sage De
On 2015-03-29, William Stein wrote:
> On Fri, Mar 27, 2015 at 1:14 AM, Dima Pasechnik wrote:
>>
>>
>> On Thursday, 26 March 2015 19:48:37 UTC, Jeroen Demeyer wrote:
>>>
>>> On 2015-03-26 20:17, William Stein wrote:
>>> > Hi Sage Developers,
>>> >
>>> > We've posted the following message on the ht
Hi Martin
What about something like this:
class A(SageObject):
def __new__(cls, a, b=None, c=None):
if isinstance(a, A):
print "just use a"
return a
else:
print "create new instance"
return super(A, cls).__new__(cls, a, b, c)
On Saturday, March 28, 2015 at 2:02:19 AM UTC-7, Martin R wrote:
>
> Hi there!
>
> I need help with two questions for an interface (to the FindStat database)
> I'm writing on http://trac.sagemath.org/ticket/17818.
>
> a design question: it appears that, in sage, python properties are hardly
> use
On Sunday, March 29, 2015 at 9:35:25 AM UTC-7, Martin R wrote:
>
> What I'd like to achieve is that A(a) yields a, if a is an instance of A.
>
I think that means that A needs to be a factory function rather than a
normal class:
class Aclass(...):...
def A(a):
if isinstance(a,Aclass):
The easy answer: Make A a function that either instantiates Aclass (the
renamed class) or returns the argument unchanged.
The IMHO unhealthy alternative is to use a metaclass to change the way the
constructor works so that there is a magic classmethod called before the
constructor, and that mag
Since the above appears to be a very difficult question (:-), I'm going to
add another one - which is actually mentioned in the thread title, but I
somehow forgot to ask...
Suppose I have a class A with an __init__ method taking a single mandatory
argument:
class A(SageObject):
def __init
> On Mar 29, 2015, at 9:39 AM, William Stein wrote:
>
> On Sun, Mar 29, 2015 at 8:23 AM, jplab wrote:
>> Hi all,
>>
>> Lately, I was suggested to create a post concerning the Sage logo. It would
>> be nice to have an open discussion about some possibilities. Perhaps this is
>> a good place to d
Looks nice, and it would be great to use as graphics on the sagemath web
page.
What IMHO is lacking is that it is too complicated. A *logo* is ideally
recognizable at 16x16px (e.g. favicon) and that pretty much excludes an
icosahedron. Its just too busy for that purpose. Maybe a tetrahedron wou
On Sun, Mar 29, 2015 at 8:51 AM, Jan Groenewald wrote:
> Hi
>
> On 29 March 2015 at 17:47, William Stein wrote:
>>
>> On Fri, Mar 27, 2015 at 1:14 AM, Dima Pasechnik wrote:
>> >
>> >
>> > On Thursday, 26 March 2015 19:48:37 UTC, Jeroen Demeyer wrote:
>> >>
>> >> On 2015-03-26 20:17, William Stei
Hi
On 29 March 2015 at 17:47, William Stein wrote:
> On Fri, Mar 27, 2015 at 1:14 AM, Dima Pasechnik wrote:
> >
> >
> > On Thursday, 26 March 2015 19:48:37 UTC, Jeroen Demeyer wrote:
> >>
> >> On 2015-03-26 20:17, William Stein wrote:
> >> > Hi Sage Developers,
> >> >
> >> > We've posted the fo
On Fri, Mar 27, 2015 at 1:14 AM, Dima Pasechnik wrote:
>
>
> On Thursday, 26 March 2015 19:48:37 UTC, Jeroen Demeyer wrote:
>>
>> On 2015-03-26 20:17, William Stein wrote:
>> > Hi Sage Developers,
>> >
>> > We've posted the following message on the http://sagenb.org site:
>> >
>> > "This Sage no
On Sun, Mar 29, 2015 at 8:23 AM, jplab wrote:
> Hi all,
>
> Lately, I was suggested to create a post concerning the Sage logo. It would
> be nice to have an open discussion about some possibilities. Perhaps this is
> a good place to do so.
>
> I hope the discussion will be constructive.
>
> Indeed
I can't say I have a problem with the current logo however having seen you
talk about the code behind this one I think it's super cool to have a logo
produced by Sage itself. I like it.
Vince
On Sun, Mar 29, 2015 at 4:23 PM jplab wrote:
> Hi all,
>
> Lately, I was suggested to create a post con
Hi Volker,
That is great. Looks like we can add buildslaves for many more and ask you
to add a counting lock across all our buildslaves so only one at time (or
at most 3 at a time due to RAM restrictions?) run concurrently.
I do wonder what kernel level dependencies come into play as we run LXC
c
Thanks for all the suggestions in this thread. I implemented a proper
fix for the globals() issue at
http://trac.sagemath.org/ticket/12446
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails f
19 matches
Mail list logo