Thanks William,
Actually I try to solve it for different x and n. A typical example of
(x,n) is:
%time
bruteforce(7^10*29^5,973)
[(3899224, 2437015)]
CPU time: 25.88 s, Wall time: 26.12 s
Roland
On 7 feb, 22:29, William Stein wrote:
> On Sun, Feb 7, 2010 at 12:35 PM, Rolandb wrote:
> > Hi,
>
Thanks to all of you...Dave
On Feb 7, 3:23 pm, Alex Ghitza wrote:
> On Sun, 7 Feb 2010 15:17:08 -0800 (PST), davedo2 wrote:
> > I want to run a range of numbers through the factor() function and if
> > I run a loop through a list as in:
> > for i in [25,37,205]:
> > print i.factor()
> > it w
The problem was mine, which I first asked Minh, who kindly
communicated it to the group. I have since discovered ulimit, which
is a very powerful part of the bash shell. There is documentation:
type "help ulimit" in a bash shell and you'll see the equivalent of a
man page. ("man bash" is too hug
On Sun, 7 Feb 2010 15:17:08 -0800 (PST), davedo2 wrote:
> I want to run a range of numbers through the factor() function and if
> I run a loop through a list as in:
> for i in [25,37,205]:
> print i.factor()
> it works fine, but if I try
> for i in range(1,5):
> print i.factor()
> I get th
davedo2 wrote:
I want to run a range of numbers through the factor() function and if
I run a loop through a list as in:
for i in [25,37,205]:
print i.factor()
it works fine, but if I try
for i in range(1,5):
print i.factor()
I get the error message 'int' object has no attribute 'factor'
On Sun, Feb 7, 2010 at 3:17 PM, davedo2 wrote:
> I want to run a range of numbers through the factor() function and if
> I run a loop through a list as in:
> for i in [25,37,205]:
> print i.factor()
> it works fine, but if I try
> for i in range(1,5):
> print i.factor()
> I get the error mes
I want to run a range of numbers through the factor() function and if
I run a loop through a list as in:
for i in [25,37,205]:
print i.factor()
it works fine, but if I try
for i in range(1,5):
print i.factor()
I get the error message 'int' object has no attribute 'factor' - how
do I get
fac
On Sun, Feb 7, 2010 at 12:35 PM, Rolandb wrote:
> Hi,
> Consider Euler’s famous expression x=a^2+n*b^2. I want to solve a and
> b, given x and n. Because solve_mod is totally broken, I tried to
> develop a clever method myself. Counterintuitively, I found that the
> most simple brute force method
On Sun, Feb 7, 2010 at 12:27 PM, pong wrote:
> I've installed the SAGE 4.3.1. Looks like the problem I mentioned
> persist.
>
> I tried to obtain an account to open a ticket about a month ago
> but did not get a reply.
Anyone can now register on the web for a trac account here:
http://
Hi,
Consider Euler’s famous expression x=a^2+n*b^2. I want to solve a and
b, given x and n. Because solve_mod is totally broken, I tried to
develop a clever method myself. Counterintuitively, I found that the
most simple brute force method in SAGE is relatively fast.
def bruteforce(number,n):
I've installed the SAGE 4.3.1. Looks like the problem I mentioned
persist.
I tried to obtain an account to open a ticket about a month ago
but did not get a reply.
I hope this issue will be addressed some how.
On Jan 6, 12:43 am, Nathann Cohen wrote:
> Hello !!!
>
> To open a tick
> > Please, keep sending these bugs and feature requests for p-adic
> > extensions. I don't think the code has gotten much use, and I'd
> > like to see actual use cases.
what about even just coercing from a p-adic field to its residue
field?
sage: R. = Zq(9)
sage: K = R.residue_field()
sage:
On Sun, Feb 7, 2010 at 12:30 PM, zieglerk wrote:
> I'm using sage from the command line (or more precisely through emacs
> sagemode).
>
> Let me ask the opposite question: How can I allocate *more* memory to
> the sage process. Sometimes extensive calculations break of with an
> "out of memory"
On Sun, Feb 7, 2010 at 9:30 AM, zieglerk wrote:
> I'm using sage from the command line (or more precisely through emacs
> sagemode).
>
> Let me ask the opposite question: How can I allocate *more* memory to
> the sage process. Sometimes extensive calculations break of with an
> "out of memory" m
I'm using sage from the command line (or more precisely through emacs
sagemode).
Let me ask the opposite question: How can I allocate *more* memory to
the sage process. Sometimes extensive calculations break of with an
"out of memory" message. (Or is this more an issue of my OS?)
As a footnote
15 matches
Mail list logo