[sage-support] Project Euler

2008-10-26 Thread Rolandb
Hi, To learn SAGE takes a while, and good exercises are scarce. It was mentioned before, but the site http://projecteuler.net/ is interesting. The idea is to solve relatively simple mathematical problems and the level is going up slowly. For instance group operations, read/write to a file, speed

[sage-support] 0.00 correct?

2008-12-13 Thread Rolandb
Hi, Sage: A = matrix([ [-1.0, -1.0, 0.0, 1.0], [1.0, -1.0, -1.0, -2.0] ]) Sage: A.n(2) [-1.0 -1.0 0.00 1.0] [ 1.0 -1.0 -1.0 -2.0] Roland --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

[sage-support] PSLQ available?

2009-01-08 Thread Rolandb
Hi, Are algorithms like PSLQ available? If yes, please give a simple example so that I fully understand the commands. Thanks in advance! Roland --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

[sage-support] Memory Error?

2009-01-31 Thread Rolandb
/// }}} If you replace 10^9 with 10^6, the above listing works properly. Maybe I made a mistake? Rolandb --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr

[sage-support] Re: Memory Error?

2009-01-31 Thread Rolandb
wst...@gmail.com wrote: On Sat, Jan 31, 2009 at 11:15 AM, Rolandb rola...@planet.nl wrote: Hi, I received first a MemoryError, and later on Sage reported: That means that Sage ran out of memory.  It's not a bug -- it's just a limitation of your computer. srange() builds a list

[sage-support] numerical_sqrt?

2009-02-28 Thread Rolandb
Hi, what is the use of this function? It seems equivalent to sqrt. Roland --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more

[sage-support] Re: derivative

2009-02-28 Thread Rolandb
This works: f=arccos((1-x^2)/(1+x^2)) g=f.diff(x) g.simplify_full() 2*x/((x^2 + 1)*abs(x)) In general: type g. TAB and you will find all kind of handy functions. Roland On 28 feb, 10:58, Loïc xl...@free.fr wrote: Hello Another problem: I want the derivative for the function

[sage-support] Can not load *.sws file

2009-03-17 Thread Rolandb
Hi, I saved my notebook files to *.sws files, and I installed SAGE 3.4. However, I can not load a particular sws file. Can I send the file to somebody to have a look at it? Thanks in advance! Roland --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-support] Re: Can not load *.sws file

2009-03-17 Thread Rolandb
I solved my problem via KAIST 3.2.3. Size file was 13MB, maybe that's a problem. On 17 mrt, 07:17, Rolandb rola...@planet.nl wrote: Hi, I saved my notebook files to *.sws files, and I installed SAGE 3.4. However,  I can not load a particular sws file. Can I send the file to somebody to have

[sage-support] Unexpected behavior of remove

2009-03-21 Thread Rolandb
Hi, I didn't expect that whole M would be effected. M=[[0..9]]*3 print M[0] [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] M[1].remove(9) print M [[0, 1, 2, 3, 4, 5, 6, 7, 8], [0, 1, 2, 3, 4, 5, 6, 7, 8], [0, 1, 2, 3, 4, 5, 6, 7, 8]] Rolandb --~--~-~--~~~---~--~~ To post

[sage-support] Update R to the 2.9 release with milestone Sage 4.0

2009-05-02 Thread Rolandb
Hi Ticket #3086 states Update R to the 2.7 release and split off rpy.spkg with milestone Sage 4.0. If possible, two requests: 1) Update R to the latest 2.9 release (now sage 3.4 uses R version 2.6.1 (2007-11-26)) 2) To use R one has to load various additional packages. For instance I use the

[sage-support] Re: Update R to the 2.9 release with milestone Sage 4.0

2009-05-02 Thread Rolandb
users have the same needs. If its really worthwhile, we can consider to take the next step. Roland On 2 mei, 09:30, William Stein wst...@gmail.com wrote: On Sat, May 2, 2009 at 12:26 AM, Rolandb rola...@planet.nl wrote: Hi Ticket #3086 states Update R to the 2.7 release and split off

[sage-support] Operators and ?

2009-05-31 Thread Rolandb
Hi, (13 3) equals 104, and (13 3) equals 1. I could not find these operators in the documentation. Were are and explained? Thank in advance! Rolandb --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Save our Souls

2009-07-15 Thread Rolandb
like to avoid is a slow process (subroutine) that does the trick. Any ideas? Thanks in advance! Rolandb --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr

[sage-support] Problem with larger sws files

2009-07-15 Thread Rolandb
, VMware (Windows). Your help is much appreciated! Rolandb --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit

[sage-support] Simplify an expression

2009-07-20 Thread Rolandb
Hi, How to simplify an expression if you have some known relations (equalities)? Example: relation: 0 = a*x1^2 + b*x2^2 expression = (a*x1^2 + b*x2^2)*y1+b*y2^3 Given the relation, the expression could be simplified to b*y2^2. But how in Sage? Tnx in advance. Rolandb

[sage-support] Re: Simplify an expression

2009-07-21 Thread Rolandb
Simon, thanks! But in general there is no (Sage) algoritm to simplify expressions given some equalities? Rolandb On 21 jul, 08:05, Simon King simon.k...@uni-jena.de wrote: Hi Roland, On 21 Jul., 06:33, Rolandb rola...@planet.nl wrote: Hi, How to simplify an expression if you have

[sage-support] A weird exception?

2009-08-29 Thread Rolandb
+1). Profile.run shows that suddenly many functions are called which seems odd for such a simple recursive function. Why? Thanks in advance! Rolandb --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Re: A weird exception?

2009-08-29 Thread Rolandb
floor(ln(256)/ln(2))+1 is no improvement; floor(math.log(mx)/ math.log(g))+1 is. Rolandb --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com

[sage-support] Re: A weird exception?

2009-08-30 Thread Rolandb
Hi, Using math.log has a disadvantage; it is less accurate. sage: print n(math.log(2),100) sage: print n(log(2),100) 0.69314718055994528622676398300 0.69314718055994530941723212146 Rolandb On 30 aug, 06:48, Robert Bradshaw rober...@math.washington.edu wrote: On Aug 29, 2009, at 12:44 PM

[sage-support] Re: A weird exception?

2009-09-01 Thread Rolandb
On 1 sep, 11:08, Robert Bradshaw rober...@math.washington.edu wrote: On Aug 29, 2009, at 11:05 PM, Rolandb wrote: Hi, Using math.log has a disadvantage; it is less accurate. sage: print n(math.log(2),100) sage: print n(log(2),100) 0.69314718055994528622676398300

[sage-support] SAGE notebook: worksheet not readable

2007-07-17 Thread Rolandb
Hi, I worked on a worksheet rolandtest4 (owner rolandb) but this file seems unreadable. Can somebody fix it? Thanks! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL

[sage-support] Sage notebook works, but extremely slow ...?

2007-07-29 Thread Rolandb
Hi, I use SAGE 2.6.17 and Firefox 2.0.0.5. Until a few days ago it worked fine on my Toshiba Terca. Now it still works, but it takes ages for Firefox to load pages so all speed has gone. I tried all kind of options as firewalls on/out, various network options et cetera, but now I'm slowly moving

[sage-support] Problem

2008-05-21 Thread Rolandb
The following problem occured and I don't understand what the mistake is using isqrt. Please help. Thanks in advance. I use Sage 3.0.0. Roland sage: for n in range(1,10): ...print n, isqrt(n) 1 Traceback (most recent call last): File stdin, line 1, in module File

[sage-support] Re: Problem

2008-05-22 Thread Rolandb
Tnx On 22 mei, 07:02, Justin C. Walker [EMAIL PROTECTED] wrote: On May 21, 2008, at 21:14 , Roland van den Brink wrote: The following problem occured and I don't understand what the mistake is using isqrt. Please help. Thanks in advance. I use Sage 3.0.0. Roland sage: for n in

[sage-support] Update SAGE: sws files lost!

2008-06-29 Thread Rolandb
A huge dissatisfier for the third time .. I update VMARE (to version 2.04) and thereafter SAGE (from 3.0 to 3.0.3). This is the third time I lost all my notebook files (sws) ... How can this be avoided!! Please help, because many days of work are now 'lost'. Thanks in advance. Roland

[sage-support] Replace?

2008-08-19 Thread Rolandb
Hi. Look at this: vv='abc' print vv[0] vv.replace('b','n') print vv vv.replace('b','n') The answers are different!?... Roland --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Download version 3.1.1 on http://www.sagemath.org/ ?

2008-08-20 Thread Rolandb
Hi. All download spots have only version 3.0.6...? For example http://www.sagemath.org/bin/microsoft_windows/ Roland --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL

[sage-support] Intended or unintended recursion?

2008-08-25 Thread Rolandb
Hi. The following programme looks simple: sage: def posible_values(row,found,maxum): ...result=found ...if row==[]: row=[1] ...if result==[]: result=found=row #Recursion: intended or unintended? ...if max(row)maxum: ... for k in found: ... for p in row:

[sage-support] Re: Intended or unintended recursion?

2008-08-25 Thread Rolandb
2008/8/25 Rolandb [EMAIL PROTECTED]: Hi. The following programme looks simple: sage: def posible_values(row,found,maxum): ...    result=found ...    if row==[]: row=[1] ...    if result==[]: result=found=row                   #Recursion: intended or unintended? ...    if max(row

[sage-support] Re: Download version 3.1.1 on http://www.sagemath.org/ ?

2008-09-03 Thread Rolandb
Hi. It would be great if with release 3.1.2 a Windows version is available without too much delay. Tnx! Roland On 21 aug, 06:30, William Stein [EMAIL PROTECTED] wrote: On Wed, Aug 20, 2008 at 9:26 PM, Rolandb [EMAIL PROTECTED] wrote: Hi. All download spots have only version 3.0.6

[sage-support] Re: problem with range, int, Integer and division in a loop

2008-09-06 Thread Rolandb
Tnx! srange does the tric. Maybe srange (instead of range) should be promoted far more for this reason! Roland On 6 sep, 00:52, Timothy Clemans [EMAIL PROTECTED] wrote: srange gives a list of Sage integers and follows the syntax of range. On Fri, Sep 5, 2008 at 5:41 PM, Harald Schilly [EMAIL

[sage-support] Operand % and SymbolicVariable do not match?

2008-09-07 Thread Rolandb
Hi. I want to use x%y for two variables x,y. This doesn't work as the following example shows: sage: var('x,y') sage: def proc(a,b): return a%b sage: print proc(6,3) sage: print proc(x,y) 0 Traceback (most recent call last): File stdin, line 1, in module File

[sage-support] Re: Lost notebook worksheets after updating

2008-09-29 Thread Rolandb
Several times I indicated the same problem but until now no action. I just save my worksheets (around 30) manually and recover the *.sws files one by one in the new SAGE version. Life is hard Roland On 29 sep, 14:11, Daniel Loughran [EMAIL PROTECTED] wrote: I am currently using sage on

[sage-support] Motion planets

2009-10-12 Thread Rolandb
Hi, I'm interested in the motion of planets around the sun. Before I 'reinvent the wheel', maybe someone has made a simple model and he/she is willing to share it? Thanks in advance! Rolandb --~--~-~--~~~---~--~~ To post to this group, send email to sage-support

[sage-support] Remove?

2009-10-23 Thread Rolandb
Hi, print [1,2,3,4].remove(4) None I would expect [1,2,3] Rolandb --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options

[sage-support] gcd bug?

2009-11-19 Thread Rolandb
Hi. Look at: R.A,B=QQ[] expr=(A,B) (a,b)=sorted([abs(expr[n]([2,16])) for n in [0,1]]) print a,b,a.gcd(b) I got: 2 16 1 I expected: 2 16 2 Reason? Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] SIGSEGV ERROR

2009-11-29 Thread Rolandb
Hi, Unhandled SIGSEGV: A segmentation fault occured in SAGE. This probably occured because a *compiled* component of SAGE has a bug in it (typically accessing invalid memory) or is not properly wrapped with _sig_on, _sig_off. You might

[sage-support] Re: SIGSEGV ERROR

2009-11-30 Thread Rolandb
I located the file at https://:8000/home/pub/0 SIGSEGV with version 4.1, Windows. I did not compile it from source. No output at all with version 4.2.1 using KAIST. On 29 nov, 20:50, Burcin Erocal bur...@erocal.org wrote: Hi Roland, On Sun, 29 Nov 2009 11:46:00 -0800 (PST) Rolandb rola

[sage-support] Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-11-30 Thread Rolandb
Hi, How serious is the following message? Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk' or one of the snapshot disks it depends on. Reason: Failed to lock the file. Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-01 Thread Rolandb
Hi, Sage fails to start. Does this mean that I lost all my notebook files? That would be very sad... Thanks in advance of a solution which save my files!! Roland On 1 dec, 04:57, Rolandb rola...@planet.nl wrote: Hi, How serious is the following message? Cannot open the disk 'D

[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-01 Thread Rolandb
! BUT HOW? Roland On 1 dec, 21:57, Robert Bradshaw rober...@math.washington.edu wrote: I don't know much about Windows, but did you try restarting? That   might release any stale file locks. (Don't worry, your data should   still be there.) On Dec 1, 2009, at 11:00 AM, Rolandb wrote: Hi, Sage

[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-01 Thread Rolandb
Hi William, The 7zip file is 0.98 Gb, but I don't have a online place to download it to. Is there an other solution? Roland On 2 dec, 06:10, William Stein wst...@gmail.com wrote: On Mon, Nov 30, 2009 at 10:57 PM, Rolandb rola...@planet.nl wrote: Hi, How serious is the following message

[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-02 Thread Rolandb
, William Stein wst...@gmail.com wrote: On Mon, Nov 30, 2009 at 10:57 PM, Rolandb rola...@planet.nl wrote: Hi, How serious is the following message? Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk' or one of the snapshot disks it depends on. Reason: Failed to lock

[sage-support] Re: Cannot open the disk 'D:\Program Files\Sage\sage-vmware-4.1\disk.vmdk'

2009-12-03 Thread Rolandb
Dear Robert, I removed the maps *.lcd: no solution. I cleaned my registry: no solution I restarted my computer: no solution . I became angry and I saved all disk*.* files, I installed Sage for Windows again and replaced the new disk*.* files with the old files Guess what: problem solved!

[sage-support] Memory problem?

2009-12-03 Thread Rolandb
Hi, I encounterd a memory problem. The file can be found on http://www.sagenb.org/home/rolandb/3/ ( http://:/home/pub/1204 ), and is also listed below. I use version 4.1, Windows. Although it seems a simple set of lines, after two/three minutes my hard disk starts to make a lot of noise

[sage-support] 4*A^3: How to separate the number 4?

2009-12-05 Thread Rolandb
Hi, gg=4*A^3 gg.factor() (4) * A^3 How to separate the number 4? Nor gg.dict() nor list(gg.factor()) has the number 4. Remarkable is also the output of gg.factor()/4: (4) * 4^-1 * A^3 Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

Re: [sage-support] 4*A^3: How to separate the number 4?

2009-12-05 Thread Rolandb
: On Sat, Dec 5, 2009 at 11:01 PM, Rolandb rola...@planet.nl wrote: Hi, gg=4*A^3 gg.factor() (4) * A^3 How to separate the number 4?  Nor gg.dict() nor list(gg.factor()) has the number 4. gg.factor().unit() should give it to you. --Mike -- To post to this group, send email

[sage-support] Sorted inconsistent?

2009-12-14 Thread Rolandb
Hi, consider: R.A,B,C=QQ[] print sorted([(A, 3), (A - 2*B, 1)]) print sorted([(-A + 2*B, 1), (A, 3)]) Outcome not equal. Issue of Python or Sage? Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] ValueError: Unable to solve

2010-01-10 Thread Rolandb
Hi, The following message amazes me, because if an equation is unsolvable I would assume [] as output. ValueError: Unable to solve [x^3 + 3*x^2*y + 3*x*y^2 == 45487, y^3 == 549755813888] for (x, y) Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Fast Ramanujan's tau function

2010-01-17 Thread Rolandb
, 2727432, 10661420, -7109760] If m increases, this routine becomes is slow. Is there a fast routine (or table) for large m? Thanks in advance! Rolandb -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr

[sage-support] Solve_mod: a problem?

2010-01-31 Thread Rolandb
Hi, Consider: var('a,b') print solve_mod([a^2+7*b^2==23],101) [(4, 1), (4, 100), (5, 12), (5, 89), (7, 16), (7, 85), (8, 15), (8, 86), (11, 17), (11, 84), (14, 29), (14, 72), (15, 0), (18, 19), (18, 82), (19, 46), (19, 55), (20, 50), (20, 51), (22, 8), (22, 93), (24, 27), (24, 74), (29, 35),

[sage-support] Re: Solve_mod: a problem?

2010-01-31 Thread Rolandb
/31 Rolandb rola...@planet.nl: Hi, Consider: var('a,b') print solve_mod([a^2+7*b^2==23],101) [(4, 1), (4, 100), (5, 12), (5, 89), (7, 16), (7, 85), (8, 15), (8, 86), (11, 17), (11, 84), (14, 29), (14, 72), (15, 0), (18, 19), (18, 82), (19, 46), (19, 55), (20, 50), (20, 51), (22, 8

[sage-support] Solving a^2+n*b^2

2010-02-07 Thread Rolandb
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):

[sage-support] Re: Solving a^2+n*b^2

2010-02-07 Thread Rolandb
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 wst...@gmail.com wrote: On Sun, Feb 7, 2010 at 12:35 PM, Rolandb

[sage-support] Re: Solving a^2+n*b^2

2010-02-09 Thread Rolandb
Alasdair, Thanks! On 9 feb, 11:54, Alasdair amc...@gmail.com wrote: Do a google search on Cornacchia's algorithm.  Shouldn't be too hard to program in Sage (if it isn't there already). Alasdair On Feb 8, 4:07 pm, Rolandb rola...@planet.nl wrote: Thanks William, Actually I try to solve

[sage-support] Problem with Virtualbox

2010-02-19 Thread Rolandb
Hi, I downloaded sage-virtualbox-4.3.zip, and installation went well. However, the second time I tried to use Virtualbox, I got the message Configuring network And now Firefox 3.5.8 can not find http:\ \192.168.56.101 What to do? Thanks in advance for a swift response! Roland -- To post to

[sage-support] How to use BPTJCubes.c from Flint?

2010-02-20 Thread Rolandb
Hi, Could someone please indicate how I can use (for instance) the routine BPTJCubes.c from the standard package Flint? Thanks in advance! Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Small bug?

2010-04-06 Thread Rolandb
Hi, using SAGE 4.1: %timeit('for k in xrange(2,10): factor(3+10^k)') 625 loops, best of 3: 1.08 ms per loop Traceback (most recent call last): File stdin, line 1, in module File /home/notebook/sage_notebook/worksheets/admin/18/code/65.py, line 6, in module print

[sage-support] Some experiences

2010-04-07 Thread Rolandb
Hi, some experiences. I moved from Vista 32 to Windows 7 64 during Easter. I have a Q6700 PC. Three issues are maybe of general interest. 1) Virtualbox 4.3.4: A clumsy environment so I switched back to (the new) VMware player 3.01 and (the old) Sage 4.1. Now I was positively surprised how cool

[sage-support] Some leakage?

2010-04-24 Thread Rolandb
Hi, consider the following: timeit('factor(3^89-1, proof=False)') timeit('factor(3^89-1,proof=True)') timeit('factor(3^89-1, proof=False)') timeit('factor(3^89-1,proof=True)') 5 loops, best of 3: 188 ms per loop 5 loops, best of 3: 195 ms per loop 5 loops, best of 3: 194 ms per loop 5 loops,

[sage-support] Re: Notebook running very slowly

2010-04-28 Thread Rolandb
Hi William, Sage 4.4. is out. What file do I have to download in order to use it with Vmware player 3.01 and Windows 7 64b? Currently I use Sage 4.1 Thank in advance for your swift reply. Roland On 27 apr, 07:04, William Stein wst...@gmail.com wrote: On Fri, Apr 16, 2010 at 3:01 AM, NCP

[sage-support] Re: Test if a variable is numerical

2010-05-07 Thread Rolandb
Hi, Maybe this helps: a=[1,2.3] print isinstance(a,list) True a=67 print isinstance(a,Integer) True Roland On 7 mei, 23:49, Nathann Cohen nathann.co...@gmail.com wrote: Thank you !!! :-) Would there be any way to do the same thing without having to import RR in all of my functions, though

[sage-support] Loading ABC triples: How to read *.gz files?

2010-05-24 Thread Rolandb
Hi, The site http://abcathome.com/data/ has a link the file triples_sofar.gz, a database with ABC triples. I would like to use the file within Sage. The link is http://abcathome.com/data/triples_sofar.gz The size is around 162Mb; unpacked around 400Mb. Via F =

[sage-support] Re: Loading ABC triples: How to read *.gz files?

2010-05-24 Thread Rolandb
wst...@gmail.com wrote: On Mon, May 24, 2010 at 12:03 AM, Rolandb rola...@planet.nl wrote: Hi, The sitehttp://abcathome.com/data/has a link the file triples_sofar.gz, a database with ABC triples. I would like to use the file within Sage. The link ishttp://abcathome.com/data/triples_sofar.gz

[sage-support] Re: Loading ABC triples: How to read *.gz files?

2010-05-25 Thread Rolandb
Tnx! Just for others (and maybe for the manual): import gzip F = get_remote_file(http://abcathome.com/data/triples_sofar.gz;) input_file = gzip.open(F, 'rb') all_data = input_file.read() Roland On 24 mei, 21:58, Jason Grout jason-s...@creativetrax.com wrote: On 05/24/2010 02:36 PM, Rolandb

[sage-support] MemoryError

2010-05-27 Thread Rolandb
Hi, I'm running a routine which uses a large data set (13 million elements). After a while the output is: MemoryError no mem for new parser What to do? Thanks in advance for the swift reply! Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

[sage-support] Re: MemoryError

2010-05-28 Thread Rolandb
:41, Robert Bradshaw rober...@math.washington.edu wrote: On May 27, 2010, at 11:31 AM, Rolandb wrote: Hi, I'm running a routine which uses a large data set (13 million elements). After a while the output is: MemoryError no mem for new parser What to do? Thanks in advance

[sage-support] Cython and static data

2010-06-07 Thread Rolandb
Hi, Using cython, I want to make optimal use of static data. The reason is that lookup is (often) much faster than recalulating. I now use: cdef list nice_list_name=[3 , 3 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 5 , 5 , 5 , et cetera] But this didn't increase the speed.

[sage-support] Re: Cython and static data

2010-06-07 Thread Rolandb
...@math.washington.edu wrote: On Jun 7, 2010, at 8:04 AM, Rolandb wrote: Hi, Using cython, I want to make optimal use of static data. The reason is that lookup is (often) much faster than recalulating. I now use: cdef list nice_list_name=[3 , 3 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 5

[sage-support] How to do it in cython?

2010-06-12 Thread Rolandb
Hi, I have a small (nonsense) example of a program I would like to be able to convert to cython. But I don't know how to convert: R.A,B,C=QQ[], .factor(), .unit() and .factor(proof=False,limit=10^5). I could not find anything in the documentation about for instance handling elements of

[sage-support] Re: MemoryError

2010-06-18 Thread Rolandb
? Roland On 29 mei, 09:43, Robert Bradshaw rober...@math.washington.edu wrote: On May 28, 2010, at 9:53 PM, Rolandb wrote: Tnx Robert, I rewrote the routine somewhat to use less stored values. Still I got the following message: error: no morememory System -1596988k:2096917k Appl

[sage-support] Re: Sage can't find a Python program I wrote

2010-06-19 Thread Rolandb
Hi, May I extend the question somewhat. If you look at http://www.sagemath.org/doc/tutorial/programming.html#section-standalone , you find the text: It is also easy to access C functions defined in separate *.c files. Here’s an example. Create files test.c and test.spyx in the same directory

[sage-support] Why is map using memory?

2010-06-20 Thread Rolandb
Hi, Look at: R.A,B,C=QQ[] print get_memory_usage() for i in xrange(1): (an,bn,cn)=map(lambda x: abs(x((1,8,9))), (A,B,C)) print get_memory_usage() 819.94921875 828.94921875 Why is the memory usage increasing with 9Mb? This only happens when map is used repeatedly! I would expect no

[sage-support] Re: Why is map using memory?

2010-06-20 Thread Rolandb
Hi, I found a more simplified example: print get_memory_usage() for i in xrange(1): A(1,8,9) print get_memory_usage() Why is type(A) 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingu \lar' using memory? Roland On 20 jun, 16:18, Rolandb rola...@planet.nl wrote: Hi

[sage-support] Re: Is there any way to get old VMware versions?

2010-06-21 Thread Rolandb
Hi Alex, +10 for the person who is willing and able to make a recent VMWare Sage image (x86_64). Since April I rather use VMWare Sage than the Virtualbox version, despite the disadvantages of the old release. VWMare did change a lot; a good reason to support both Virtualbox and VMWare in the

[sage-support] Re: tell to sage do something if you can but if you can not, pass to anything else

2010-07-19 Thread Rolandb
Hi, I use ZZ(ss).factor(proof=False,limit=10^5). By changing 'limit' you limit the search. 2^26 * 3^30 * 5^15 * 7^5 * 13^5 * 23^2 * 29 * 37 * 967 * 100231435706561580153005984524922236635721822683010490144527758096287118\ 468921220756478157058125901560872523532972896397 This can be combined

[sage-support] Re: tell to sage do something if you can but if you can not, pass to anything else

2010-07-20 Thread Rolandb
, On this topic, Sebastian Pancratz and I wrote an optimized implementation of trial division to find the smallest factor of an integer:      http://trac.sagemath.org/sage_trac/ticket/9537 This may be in sage-4.5.2.  -- William On Mon, Jul 19, 2010 at 9:16 PM, Rolandb rola...@planet.nl wrote

[sage-support] 4.5.1 or 4.5.2 for win?

2010-08-07 Thread Rolandb
Hi, I'm thrilled that a new VMware version is out. But looking at METALINK, I found version 4.5.2 for win while other versions are 4.5.1? See www.sagemath.org/mirror/win/meta/sage-vmware-4.5.2.zip. Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] China

2010-08-07 Thread Rolandb
Hi, Maybe the following is of some interest. Last week, I was in both Beijing and Shanghai. The main webpages www.sagemath.org as well as http://groups.google.com/group/sage-support could be used, but no other Sage webpages! It seems that a potential huge community can't use Sage. Roland -- To

[sage-support] Re: China

2010-08-07 Thread Rolandb
On 7 aug, 21:54, William Stein wst...@gmail.com wrote: On Sat, Aug 7, 2010 at 12:47 PM, Rolandb rola...@planet.nl wrote: Hi, Maybe the following is of some interest. Last week, I was in both Beijing and Shanghai. The main webpageswww.sagemath.orgas well as http://groups.google.com/group

[sage-support] Re: 4.5.1 or 4.5.2 for win?

2010-08-08 Thread Rolandb
On 8 aug, 01:47, Alex Ghitza aghi...@gmail.com wrote: Hi, On Sat, 7 Aug 2010 12:37:16 -0700 (PDT), Rolandb rola...@planet.nl wrote: I'm thrilled that a new VMware version is out. But looking at METALINK, I found version 4.5.2 for win while other versions are 4.5.1? Seewww.sagemath.org

[sage-support] Bad Gateway

2010-08-08 Thread Rolandb
Hi, I used dowload all, and thereafter I tried to upload the file download_worksheets. The following message appears: Bad Gateway The proxy server received an invalid response from an upstream server. Apache/2.2.12 (Ubuntu) Server at 192.168.231.129 Port 80 Any idea how to get the job done?

[sage-support] Memleak: could this be solved please?

2010-08-09 Thread Rolandb
Hi, Memory leaks are annoying. For instance #9298. Could somebody have a look at it? Thanks in advance! Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit

[sage-support] Error message

2010-08-10 Thread Rolandb
Hi, I get the following message: terminate called after throwing an instance of 'std::runtime_error' what(): /usr/local/sage/local/bin/sage-sage: line 349: 3732 Aborted python $@ VMware, Sage 4.1 Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe

[sage-support] Re: Bad Gateway

2010-08-10 Thread Rolandb
On 10 aug, 07:45, Mitesh Patel qed...@gmail.com wrote: On 08/08/2010 05:43 AM, Rolandb wrote: I used dowload all, and thereafter I tried to upload the file download_worksheets. The following message appears: Bad Gateway The proxy server received an invalid response from an upstream

[sage-support] VMware memory allocation: how to change it with version 4.5.2?

2010-08-11 Thread Rolandb
Hi, VMware is supported again which I appriciate very much. But there is a difference with (for instance) Sage 4.1. With Sage 4.1 I could change the memory allocation via the option VM Settings. With Sage 4.5.2. the allocation is only 512Mb, and can't be changed. Any solution at hand? Thanks in

[sage-support] Re: VMware memory allocation: how to change it with version 4.5.2?

2010-08-11 Thread Rolandb
On 11 aug, 23:45, Alex Ghitza aghi...@gmail.com wrote: Hi, On Wed, 11 Aug 2010 10:02:03 -0700 (PDT), Rolandb rola...@planet.nl wrote: But there is a difference with (for instance) Sage 4.1. With Sage 4.1 I could change the memory allocation via the option VM Settings. With Sage 4.5.2

[sage-support] Re: help! windows crash - sage inaccessible from host browser

2010-08-11 Thread Rolandb
On 11 aug, 22:36, Josh yoshua.coo...@gmail.com wrote: This is probably completely noobish of me, but I really need help solving the following problem (which has now occurred for the second time).  First, the setup: Sage Version 4.3 VirtualBox 3.1.4 Windows 7 Firefox 3.6.8 My machine

[sage-support] Finding symbolic solutions

2010-08-13 Thread Rolandb
Hi, Some help is appreciated concerning the following. Suppose P1,P2,P3 are two-variate polynomials. I search for all sets of (P1,P2,P3) such that: i) P1(A,B)+P2(A,B)=P3(A,B) ii) Greatest common denominator P1 and P2 equals 1 [Thus gcd( P1, P2 )=1] iii) P1*P2*P3 can be divided by

[sage-support] Re: Finding symbolic solutions

2010-08-16 Thread Rolandb
On 16 aug, 05:53, Kenny Brown im.self.emplo...@gmail.com wrote: On Aug 13, 3:07 pm, Rolandb rola...@planet.nl wrote: The most elementary forms are A + B = A+B, A^2 + B*(A+B) = (A+B)^2 and (B-A)^2 + 4*A*B = (A+B)^2. You say A + B = A+B. Was that a typo? No. Just follow i,ii and iii

[sage-support] Re: Finding symbolic solutions

2010-08-18 Thread Rolandb
On 16 aug, 19:44, Rolandb rola...@planet.nl wrote: On 16 aug, 05:53, Kenny Brown im.self.emplo...@gmail.com wrote: On Aug 13, 3:07 pm, Rolandb rola...@planet.nl wrote: The most elementary forms are A + B = A+B, A^2 + B*(A+B) = (A+B)^2 and (B-A)^2 + 4*A*B = (A+B)^2. You say A + B

[sage-support] Error message

2010-08-27 Thread Rolandb
Hi, VMware 3.1.1 with 4.5.1: 2010-08-16 13:01:46-0700 [-] Log opened. 2010-08-16 13:01:46-0700 [-] twistd 9.0.0 (/home/sage/sage/local/bin/ python 2.6.4) starting up. 2010-08-16 13:01:46-0700 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2010-08-16 13:01:46-0700 [-]

[sage-support] Re: Error message

2010-08-27 Thread Rolandb
On 28 aug, 02:31, Mitesh Patel qed...@gmail.com wrote: On 08/27/2010 02:57 PM, Rolandb wrote: VMware 3.1.1 with 4.5.1: 2010-08-16 13:01:46-0700 [-] Log opened. 2010-08-16 13:01:46-0700 [-] twistd 9.0.0 (/home/sage/sage/local/bin/ python 2.6.4) starting up. 2010-08-16 13:01:46-0700

[sage-support] Re: 4.5.1 or 4.5.2 for win?

2010-09-08 Thread Rolandb
On 15 aug, 12:50, jockothy jgmcc...@gmail.com wrote: Hi! There is a (huge) difference between win version 4.5.1 and 4.5.2. In version 4.5.1 an externalnetworkwas setup, so I can use Sage via Windows Firefox using the address 192.168.236.128. The 4.5.2 version gives the warning that

[sage-support] Re: 4.5.1 or 4.5.2 for win?

2010-09-09 Thread Rolandb
On 9 sep, 22:54, jockothy jgmcc...@gmail.com wrote: On Sep 8, 7:25 pm, Rolandb rola...@planet.nl wrote:  Version 4.5.3 has the same problem. Could you elucidate somewhat more  on what you did exactly.  Where did you put the command   sudo rm /etc/udev/rules.d/70-  persistent-net.rules

[sage-support] Re: 4.5.1 or 4.5.2 for win?

2010-09-10 Thread Rolandb
On 10 sep, 17:56, HarryK haeckma...@gmx.de wrote: On Aug 8, 9:16 am, Rolandb rola...@planet.nl wrote: On 8 aug, 01:47, Alex Ghitza aghi...@gmail.com wrote: Hi, On Sat, 7 Aug 2010 12:37:16 -0700 (PDT), Rolandb rola...@planet.nl wrote: I'm thrilled that a new VMware version

[sage-support] Solve inconsequent

2010-10-03 Thread Rolandb
Hi, Two examples: var('x1,x2') y=[x1,x2] opl=solve([x1^2==4,x2^2==9],y,solution_dict=True) print opl [{x2: -3, x1: -2}, {x2: -3, x1: 2}, {x2: 3, x1: -2}, {x2: 3, x1: 2}] var('x1') y=[x1] opl=solve([x1^2==4],y,solution_dict=True) print opl Traceback (click to the left of this block for

[sage-support] Re: solve -- an easy issue with solution_dict=True)

2010-10-12 Thread Rolandb
On 13 okt, 03:39, kcrisman kcris...@gmail.com wrote: On Oct 12, 6:37 pm, Robert Samal robert.sa...@gmail.com wrote: I observed that solve behaves inconsistently in the following regards: sage: solve([x==1,x==-1],x) [] (this is as expected) However: solve([x==1,x==-1],x,

[sage-support] Python or Sage behavior?

2010-10-23 Thread Rolandb
Hi, look at the following simple routine. def why(): test=((k2,k1) for k1 in xrange(2,4) for k2 in xrange(1,k1) if gcd(k1,k2)==1) print [t for t in test] print [t for t in test] return why() [(1, 2), (1, 3), (2, 3)] [] It seems that test can only be used once. The Python

  1   2   >