Ask Your Question

Revision history [back]

len(list) & ceil(log(3,2)) bugs

I was programming functions in Sage for Big numbers and found a few bugs. I emailed Jason-sage and he suggested this forum. I hope my contributions can help building a better system.

BUG: Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3] array. SOLUTION: I repasted the same code on a new Worksheet and the len() function could be called again.

BUG: I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible... CODE INSIDE FUNCTION: def myfunction(num): # stops for up to 3 seconds if num == 3 t = cputime() precision = max(125, ceil(log(num,2)/2) + 10); print(cputime(t))

outside the function it is already faster, but still a bit slow the problem is the ceil() around the log() I believe, but why at 3? SOLUTION: precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system. Best Regards, GigaGerard

len(list) & ceil(log(3,2)) bugs

I was programming functions in Sage for Big numbers and found a few bugs. bugs.
I emailed Jason-sage and he suggested this forum. forum.
I hope my contributions can help building a better system.

BUG: system.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3] array. SOLUTION: [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible... responsible...
CODE INSIDE FUNCTION: FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 3
    t = cputime()
    precision = max(125, ceil(log(num,2)/2) + 10);
    print(cputime(t))

print(cputime(t));

outside the function it is already faster, but still a bit slow slow
the problem is the ceil() around the log() I believe, but why at 3? SOLUTION: 3?
SOLUTION:

    precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system. system.
However, I love the potential of this software system!
Best Regards, GigaGerard

len(list) & ceil(log(3,2)) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 3
    t = cputime()
    precision = max(125, ceil(log(num,2)/2) + 10);
    print(cputime(t));

outside the function it is already faster, but still a bit slow
the problem is the ceil() around the log() I believe, but why at 3?
SOLUTION:

    precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software system!software!
Best Regards, GigaGerard

len(list) & ceil(log(3,2)) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() cputime() before and cputime(t) cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 3
    t = cputime()
cputime();
    precision = max(125, ceil(log(num,2)/2) + 10);
    print(cputime(t));

outside the function it is already faster, but still a bit slow
the problem is the ceil() ceil() around the log() log() I believe, but why at 3?
SOLUTION:

    precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(3,2)) ceil(log(4,2)) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 3
4
    t = cputime();
    precision = max(125, ceil(log(num,2)/2) + 10);
    print(cputime(t));

outside the function it is already faster, but still a bit slow
the problem is the ceil() around the log() I believe, but why at 3?4?
SOLUTION:

    precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)) ceil(log(4,2)/2) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    precision = max(125, ceil(log(num,2)/2) + 10);
    print(cputime(t));

outside the function it is already faster, but still a bit slow
the problem is the ceil() around the log() I believe, but why at 4?
SOLUTION:

    precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)/2) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.
I run Sage 4.7.2 on the original Windows Vista offline in a new Firefox via the Oracle Virtual Box for Fedora, so that could have something to do with it.


BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    precision = max(125, ceil(log(num,2)/2) + 10);
    print(cputime(t));

outside the function it is already faster, but still a bit slow
the problem is the ceil() around the log() I believe, but why at 4?
SOLUTION:

    precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)/2) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.
I run Sage 4.7.2 on the original Windows Vista offline in a new Firefox via the Oracle Virtual Box for Fedora, so that could have something to do with it.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    precision = max(125, ceil(log(num,2)/2) + 10);
    print(cputime(t));print(cputime(t));

for m in range(2,12):
    myfunction(m);

outside the function it is already faster, but still a bit slow
the problem is the ceil() around the log() I believe, but why at 4?4 and why only when that 4 is a function argument (not a local variable or a hard-coded 4) that is originally part of a range array?
SOLUTION:

    precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)/2) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.
I run Sage 4.7.2 on the original Windows Vista offline in a new Firefox via the Oracle Virtual Box for Fedora, so that could have something to do with it.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    precision = max(125, ceil(log(num,2)/2) + 10);
    print(cputime(t));

for m in range(2,12):
    myfunction(m);

outside the function it is already faster, but still a bit slow
the
The problem is the ceil() around the log() I believe, but why at 4 and why only when that 4 is a function argument (not a local variable or a hard-coded 4) that is originally part of a range array?
SOLUTION:

    precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)/2) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.
I run Sage 4.7.2 on the original Windows Vista offline in a new Firefox via the Oracle Virtual Box for Fedora, so that could have something to do with it.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    precision pr = max(125, ceil(log(num,2)/2) + 10);
ceil(log(num,2)/2);
    print(cputime(t));

for m in range(2,12):
    myfunction(m);

The problem is the ceil() around the log() I believe, but why at 4 and why only when that 4 is a function argument (not a local variable or a hard-coded 4) that is originally part of a range array?
SOLUTION:

    precision = ceil(max(125, log(num,2)/2 + 10));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)/2) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.
I run Sage 4.7.2 on the original Windows Vista offline in a new Firefox via the Oracle Virtual Box for Fedora, so that could have something to do with it.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    pr = ceil(log(num,2)/2);
    print(cputime(t));

for m in range(2,12):
    myfunction(m);

The problem is the ceil() around the log() I believe, but why at 4 and why only when that 4 is a function argument (not a local variable or a hard-coded 4) that is originally part of a range array?
SOLUTION:

 precision pr = ceil(max(125, log(num,2)/2 + 10));ceil(log(num+0,2)/2);

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)/2) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.
I run Sage 4.7.2 on the original Windows Vista offline in a new Firefox via the Oracle Virtual Box for Fedora, so that could have something to do with it.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    pr = ceil(log(num,2)/2);
ceil(log(num, 2)/2);
    print(cputime(t));

for m in range(2,12):
    myfunction(m);

The problem is the ceil() around the log() I believe, but why at 4 and why only when that 4 is a function argument (not a local variable or a hard-coded 4) that is originally part of a range array?
SOLUTION:

    pr = ceil(log(num+0,2)/2);ceil(log(num+0, 2)/2);

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)/2) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.
I run Sage 4.7.2 on the original Windows Vista offline in a new Firefox via the Oracle Virtual Box for Fedora, so that could have something to do with it.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    pr sad = ceil(log(num, 2)/2);
    print(cputime(t));

for m in range(2,12):
    myfunction(m);

The problem is the ceil() around the log() I believe, but why at 4 and why only when that 4 is a function argument (not a local variable or a hard-coded 4) that is originally part of a range array?
SOLUTION:

 pr happy = ceil(log(num+0, 2)/2);

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)/2) ceil(log(4,2)) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.
I run Sage 4.7.2 on the original Windows Vista offline in a new Firefox via the Oracle Virtual Box for Fedora, so that could have something to do with it.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    sad = ceil(log(num, 2)/2);
2));
    print(cputime(t));

for m in range(2,12):
    myfunction(m);

The problem is the ceil() around the log() I believe, but why at 4 and why only when that 4 is a function argument (not a local variable or a hard-coded 4) that is originally part of a range array?
SOLUTION:

    happy = ceil(log(num+0, 2)/2);2));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard

len(list) & ceil(log(4,2)) bugs

I was programming functions in Sage for Big numbers and found a few bugs.
I emailed Jason-sage and he suggested this forum.
I hope my contributions can help building a better system.
I run Sage 4.7.2 on the original Windows Vista offline in a new Firefox offline via the Oracle Virtual Box for Fedora, Fedora on an old Windows Vista, so that could have something to do with it.

BUG:
Suddenly the Python len(list) function wasn't working anymore on a simple [1,2,3]
array.
SOLUTION:
I repasted the same code on a new Worksheet and the len() function could be called again.

BUG:
I had output that was becoming very slow for mysterious reasons (a 2 to 3 seconds time lag) for some simple small values. I used t = cputime() before and cputime(t) after blocks of code and found the responsible...
CODE INSIDE FUNCTION:

def myfunction(num):              # stops for up to 3 seconds if num == 4
    t = cputime();
    sad = ceil(log(num, 2));
    print(cputime(t));

for m in range(2,12):
    myfunction(m);

The problem is the ceil() around the log() I believe, but why at 4 and why only when that 4 is a function argument (not a local variable or a hard-coded 4) that is originally part of a range array?
SOLUTION:

    happy = ceil(log(num+0, 2));

These bugs seem to an innocent amateur like me that Sage is an unstable system.
However, I love the potential of this software!
Best Regards, GigaGerard