[sage-support] factor((A-B)*(B-C)).list() ?

2023-10-23 Thread Rolandb
Hi, I am surprised by the output (9.8 and 10.1 Ubuntu): var('A,B,C') factor((A-B)*(B-C)).list() var('A,B,C') factor((A-B)*(B-C)).list() var('A,B,C') factor((A-B)*(B-C)).list() [-B^2 + B*C, B - C] I expected [B - A, B - C]. Any explanation? Kind regards, Roland -- You received th

Re: [sage-support] Cython fatal error: what to do?

2023-10-17 Thread Rolandb
Hi, My problem is solved! *Reinstalling Anaconda was the trick.* Thanks for all the support. Roland Op maandag 16 oktober 2023 om 20:53:39 UTC+2 schreef Jan Groenewald: > Hi > > Try > > sudo apt-get install python3-dev cython3 > > Regards, > Jan > > On Mon,

[sage-support] Cython fatal error: what to do?

2023-10-16 Thread Rolandb
Hi, Using Sagemath 9.8, and Ubuntu 22.04, I got the following error message when I tried to use %%cython in a Jupiter notebook cell: In file included from /usr/include/python3.10/Python.h:8, from /home/roland/.cache/ipython/cython/_cython_magic_a687e319b78554b58b88d328883ed96d.c:19: /usr/incl

[sage-support] Sage 9.4_20.04 Ubuntu: error relocate-once.py

2021-09-03 Thread Rolandb
Hi, Running the file 'relocate-once.py', I got an error: directory 'python' not recognized. Changing the line #!.. python into #!.. python3 solved the problem. Roland -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this

[sage-support] RuntimeWarning cypari2 leaked 6097768 bytes

2020-05-21 Thread Rolandb
Hi, Is it relevant to further investigate the background of this error message? /opt/sagemath-9.0/local/lib/python3.7/site-packages/sage/repl/ipython_kernel/__main__.py:15: RuntimeWarning: cypari2 leaked 6097768 bytes on the PARI stack If that's the case, I will report the details. Rolan

[sage-support] help cartesian_product?

2019-12-07 Thread Rolandb
Hi, I did not expect parts of the help text; see Class docstring: Is there a reason for it? Roland Type:LazyImportString form: The cartesian_product functorial constructionFile: /opt/sagemath-8.9/local/lib/python2.7/site-packages/sage/misc/lazy_import.pyxDocstring:

[sage-support] help triangle_sandpile? Output correct?

2019-08-04 Thread Rolandb
Hi, help triangle_sandpile? (version 8.8, Jupyter Windows) gives the following (unexpected) output after Class docstring Is this intended? Type:LazyImportString form: File: /opt/sagemath-8.8/local/lib/python2.7/site-packages/sage/misc/lazy_import.pyxDocstring:

[sage-support] Sage Windows and @parallel often fails: why?

2019-03-14 Thread Rolandb
Hi, When using @parallel(ncpus=x) for an x which is computer dependent, I sometimes get results, but often the program stops with the error message 16: [Errno 16] Device or resource busy: '/home/sage/.sage/temp/TABLET-ROLAND/690/dir_mGwWQS/740.sobj' Why? How can I avoid this? Roland -- Y

Re: [sage-support] Segmentation fault in is_squarefree

2019-03-03 Thread Rolandb
ter notebook to run > a cell with the following content > > import cypari2 > pari = cypari2.Pari() > pari(109604757131194562205071319966444535807).issquarefree() > > (I expect the very same error to occur, but it is better to double > check) > >

Re: [sage-support] Segmentation fault in is_squarefree

2019-03-03 Thread Rolandb
in (could you confirm > that you are using cygwin?). If so, you should try to reproduce the > problem without Sage by launching Python inside cygwin and then > > >>> import cypari2 > >>>

[sage-support] Segmentation fault in is_squarefree

2019-03-03 Thread Rolandb
Hi, the following result is probably not intended: Sage 8.6 Windows aa=109604757131194562205071319966444535807 print is_squarefree(aa) ---SignalError Traceback (most recent call last) in ()

[sage-support] 6.7 ova release for VM VirtualBox

2015-05-31 Thread Rolandb
Hi, Will sage-6.7.ova be released soon? Is there some kind of policy? I noticed that *.ova files are released irregularly. Thanks, Roland -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving email

[sage-support] A bug in Sympy qfbsolve?

2014-12-06 Thread Rolandb
Hi, please look at the following unexpected behavior: sage: from sympy.solvers.diophantine import * sage: w=gp.Qfb(1,0,-16).qfbsolve(17) sage: print w Traceback (most recent call last): ... TypeError: Error executing code in GP: CODE: sage[26]=Qfb(sage[23],sage[24],sage[25]); PARI/GP ERROR

Re: [sage-support] Re: Policy regarding the output of a standard Sage function

2014-12-05 Thread Rolandb
> # outputs: > > [] 3437458237428 [] 3437458237427 (519651, 1779725) 3437458237426 [] > 3437458237425 [] 3437458237424 [] 3437458237423 [] 3437458237422 [] > 3437458237421 [] 3437458237420 [] 3437458237419 > > See [1] > > -- William > > [1] > https:/

[sage-support] Policy regarding the output of a standard Sage function

2014-12-05 Thread Rolandb
Hi, please look at the following example. sage: print two_squares(3437458237428) Traceback (most recent call last): ... ValueError: 3437458237428 is not a sum of 2 squares The ouput is an error message. Thus if I want to test several cases, I have to check each case like: sage: for k in xrange

[sage-support] I was not expecting this ... (sqrt bug)

2013-11-29 Thread Rolandb
*File:* /home/sage/sage-5.12/devel/sage/sage/rings/integer.pyx *Type:* *Definition:* sqrt( [noargspec] ) *Docstring:* The Integer class represents arbitrary precision integers. It derives from the Element class, so integers can be used as ring elements anywhere in Sage. Integer() interpre

[sage-support] Plot is maybe too good :)

2013-11-03 Thread Rolandb
Hi, The following works, but should '==' work? var('a,b') b=5 plot(a^2-b==3,a,1,7) Roland -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+u

[sage-support] Re: How to view the new Trac as non-developer?

2013-07-21 Thread Rolandb
Hi, I receive this message again today. <https://lh6.googleusercontent.com/-SzoqQCkwfuc/UewbwobzzRI/AFc/cJNk_VF_WJk/s1600/Message.PNG> Op vrijdag 19 juli 2013 15:46:07 UTC+2 schreef Rolandb het volgende: > > Thanks for your reply! This morning I got a error message, but

[sage-support] Re: How to view the new Trac as non-developer?

2013-07-19 Thread Rolandb
Thanks for your reply! This morning I got a error message, but now http://trac.sagemath.org/report/33 it is visible again. Op vrijdag 19 juli 2013 10:25:00 UTC+2 schreef P Purkayastha het volgende: > > On 07/19/2013 02:53 PM, Rolandb wrote: > > Hi, > > > > Since mid 2

[sage-support] How to view the new Trac as non-developer?

2013-07-18 Thread Rolandb
Hi, Since mid 2007 I use Sage and often I look at Trac to learn about new and handy routines / tricks. But Trac has changed ( http://trac.sagemath.org/report/33) :( How can non-developers (as me) view the new Trac? Roland -- You received this message because you are subscribed to the Google

[sage-support] Re: Ellipsis suddenly appears?

2013-06-17 Thread Rolandb
Hi, thanks for the swift reply. It was already common in version 4.8. I was not aware that 1 dot extra would have such an effect. Op maandag 17 juni 2013 17:50:04 UTC+2 schreef Rolandb het volgende: > > Hi, why do I get *Ellipsis* here? Sage 5.9 VB Win64 Roland > > sage: [0.5

[sage-support] Ellipsis suddenly appears?

2013-06-17 Thread Rolandb
Hi, why do I get *Ellipsis* here? Sage 5.9 VB Win64 Roland sage: [0.5,1.0,...,6.0] [0.500, 1.00, Ellipsis, 6.00] -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receivi

[sage-support] Adding Gnumeric - spreadsheet functionality to Sage

2013-06-13 Thread Rolandb
Hi, Just adding up two developments: - Sage is a serious and free Mathematical tool (with probably after the Summer releasing version 6.0 which includes many improvements since version 5 early 2012). - Gnumericis a se

[sage-support] Cython & time in html listing

2013-05-29 Thread Rolandb
Hi, Cython has a particular method to state the time. The first line of the html listing shows: Generated by Cython 0.19 on Wed May 29 12:00:31 2013 Actually it is exactly 6 hrs later (in Europe). Any explanation? Virtualbox Sage 5.9 Roland -- You received this message because you are subscr

[sage-support] Re: Assign to generated variable names

2013-05-11 Thread Rolandb
Hi, with numbers the problem is like thisI assume: data=zip([randint(-4, 5) for i in range(ns)],[randint(-1, 16) for i in range(ns)]) A_data=matrix(ns,ns,[map(int,A(x=s,y=t).list()) for s,t in data]) tofit=[randi

[sage-support] Math Processing Error

2013-04-08 Thread Rolandb
Hi, after a few day all cores active, I suddenly received the following message: Any idea what this means? Windows 7 64b i7-2600 @3.40 8GB Roland -- You received this message because you

[sage-support] Unsafe Math?

2013-03-31 Thread Rolandb
Hi, Why does my computer complains heavelly when I go to public worksheets? Roland -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubs

[sage-support] Inconsistency regarding QQ and ZZ?

2013-03-17 Thread Rolandb
Hi, QQ[] is a field of rationals fractions and ZZ[] of integers. The following puzzles me: sage: R.=QQ[] sage: factor(A^d+2*A-3) Traceback (most recent call last): ... TypeError: non-integral exponents not supported sage: R.=ZZ[] sage: factor(A^d+2*A-3) Traceback (most recent call last): ... Type

[sage-support] Bug in solve?

2013-02-24 Thread Rolandb
Hi, Using 5.7 in Windows 64, I got the following message: solution=solve([(a*x+b*y)*x*y/c==1,3*log(a + b + c) - log(27*a*b*x*y)],x,y,solution_dict=True) for sol in solution: show(sol) ;;; ;;; Detected access to protected memory, also kwown as 'bus or segmentation fault'. ;;; Jumping to the

[sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?

2013-01-17 Thread Rolandb
het volgende: > > Ahem ... > > This : > > Le jeudi 17 janvier 2013 08:35:34 UTC+1, Rolandb a écrit : >> >> [ Bandwidth savings ... ] >> > > >> Sage origin is mathematics, but over time it has become a great tool for >> normal work too

[sage-support] Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?

2013-01-16 Thread Rolandb
Dear all, I suggested to a friend living in Africa (Lomé) to use Sage instead of using Excel for semi-professional work. Excel is great - I'm a big fan - but not for semi-professional work as you have to use multiple tables, sheets, not-that-easy-to-learn VBA et cetera. Sage origin is mathematic

[sage-support] Re: Performance improvements over time (fyi)

2013-01-02 Thread Rolandb
t; update the quite old benchmark website here: > http://www.sagemath.org/tour-benchmarks.html > ? > > greetings Harald > > On Tuesday, January 1, 2013 10:18:57 PM UTC+1, Rolandb wrote: >> >> >> <https://lh5.googleusercontent.com/-eUE6Ohvp6Io/UONReg0z-6I

[sage-support] Performance improvements over time (fyi)

2013-01-01 Thread Rolandb
Compliments to those who realized the above progress. Roland -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, s

[sage-support] Five minor issues & Thank You

2013-01-01 Thread Rolandb
Hi, One of the real joys of the holiday season is the opportunity to say Thank You to all Sage developers, and to wish them, users and all who are dear and near the very best for the New Year! I noted five minor issues: 1)Developer’s Guide v5.5: typo Howver, in order to do devel

[sage-support] TypeError: ECL says: THROW: The catch MACSYMA-QUIT is undefined

2012-11-06 Thread Rolandb
Hi, have a look at: print [p for p in Integer(8).factor(limit=10^6)] [(2, 3L)] Is the 3L intended? The following line: if 1/3*log(3L) != log(6L): print "Correct" yields: TypeError: ECL says: THROW: The catch MACSYMA-QUIT is undefined... version 5.3 64b, Ubuntu 12.04.1 Rolandsolve* · *server

[sage-support] Re: finance.TimeSeries SIGSEGV

2012-09-17 Thread Rolandb
Hi, I followed the instructions of Jan Groenewald and ... it works! All thank for considering this item. Roland -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe

[sage-support] Re: finance.TimeSeries SIGSEGV

2012-09-17 Thread Rolandb
Hi all, thanks for the support! Version 5.0: no problem Versions 5.1 and 5.3: ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory It boils down to how to install libgfortran... Roland -- You received this message because you are subscribed to the Googl

[sage-support] finance.TimeSeries SIGSEGV

2012-09-15 Thread Rolandb
doc/live/reference/sage/finance/time_series.html example v = finance.TimeSeries([5,4,1.3,2,8,10,3,-5]) /home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/libcsage.so(print_backtrace+0x31)[0x7f010766e16a] /home/roland/Sage/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_6

[sage-support] Re: Google Chrome keeps saying "Page contains unsafe content"

2012-05-28 Thread Rolandb
Hi Simon, Thank for your considerations! The message only appears with this group; not with -devel, -release and sage_trac. Also gmane is fine. I will ask Google (as I happen to know a specialist) if they can find more technical details. Meanwhile, your alternative route will be my standard. R

[sage-support] Re: var: a more compact declaration possible?

2012-02-25 Thread Rolandb
Why? Roland On 25 feb, 21:38, Rob Beezer wrote: > Is this better? > > sage: [var('b'+str(i), latex_name="\\beta_"+str(i),domain='real') for > i in range(4)] > [b0, b1, b2, b3] > sage: latex(b3) > \beta_3 > > Rob > > On Feb 25, 2:08 am,

[sage-support] var: a more compact declaration possible?

2012-02-25 Thread Rolandb
Hi, Is a more compact declaration possible / supported? var('b0',latex_name="\\beta_0",domain='real') var('b1',latex_name="\\beta_1",domain='real') var('b2',latex_name="\\beta_2",domain='real') var('b3',latex_name="\\beta_3",domain='real') var('t1',latex_name="\\tau_1",domain='positive') var('t2'

[sage-support] BKZ method: two different outcomes?

2011-12-06 Thread Rolandb
Hi, I’m puzzled about the following behavior. Two integer matrices only differ by a linear transformation, but their BKZ output is different. transfer=matrix(2,2,[[1,0],[27/20,-1/20]]) print transfer [1 0] [27/20 -1/20] AA=matrix(ZZ,2,5,[[3,1,-1,-3,0],[81,-73,-127,99,20]]) print AA [ 3

[sage-support] Re: bug in ZM_lll

2011-11-30 Thread Rolandb
Thanks! It works now. -- 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 this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org

[sage-support] Re: bug in ZM_lll

2011-11-30 Thread Rolandb
Dear Simon, Sage 4.7.1, i7 2600, Windows 7, Fedora 14. Bug repeates over and over. Probably the same bug as #11604. How can I upload the seamingly related patch in VM Virtualbox / Fedora 14 / Windows? http://spkg-upload.googlecode.com/files/pari-2.4.3.alpha.p8.spkg Roland -- To post to this

[sage-support] Re: bug in ZM_lll

2011-11-30 Thread Rolandb
Additional information: kbug=matrix(7,5,[[pq^i for i in xrange(5)] for pq in [0,-1,1/2, -1/2, -3/4, 5/3, -26/25]]) print kbug.integer_kernel() *** bug in ZM_lll, please report -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] bug in ZM_lll

2011-11-29 Thread Rolandb
Hi, I was kindly asked to report the following: *** bug in ZM_lll, please report Traceback (most recent call last): File "", line 1, in File "_sage_input_65.py", line 10, in exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(

[sage-support] Re: Ticket # 5310 and related issues

2011-10-30 Thread Rolandb
On 30 okt, 03:13, William Stein wrote: > Sage's factor currently just calls pari which makes no use of anything > anywhere else in sage.  It would be nice if somebody were to change this, > but I have seen many people try and fail. Dear William, I'm still puzzled why I find such a difference in

[sage-support] Ticket # 5310 and related issues

2011-10-29 Thread Rolandb
Hi, What the status is of factoring integers: from 1 up to 80-100 digits? Ticket #5310 seems to address this by implementing Msieve, but I noticed no activity lately. For instance n.trail_division() speeds up calculations a lot, but it seems not be integrated with a general approach. This implies

[sage-support] Re: list(factor(1)) yields []: Is this consequent?

2011-09-13 Thread Rolandb
On 13 sep, 22:53, Maarten Derickx wrote: > I think it is consequent. list(factor(n)) just gives a list of tuples (p,e) > where p is a prime dividing n and e is it's exponent. Since there are no > primes dividing 1 the list is empty. Thanks for the swift reply! However, not always one knows tha

[sage-support] list(factor(1)) yields []: Is this consequent?

2011-09-13 Thread Rolandb
Hi, factor(1) 1 list(factor(1)) [] Is this as expected? Why is list(factor(1)) not equal to [1,1]? I'm aware that: factor(1).unit() 1 Sage 4.7, Windows 7 Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+un

[sage-support] Socket.error

2011-07-11 Thread Rolandb
Hi, Using Windows 7, Virtualbox, Sage 4.7 I got the following message: socket.error Last listings: 429 os.chdir(cwd) 430 if e == 256: 431raise socket.error What to do? Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send em

[sage-support] Comma: just an observation

2011-06-20 Thread Rolandb
Hi, look at the following lines: sage: def comma(): ... print "*" sage: comma(), #<= the "," has no effect; this is expected? sage: comma() sage: print comma() #The print commando (function) has effect, and yields None * * * None Roland (version 4.7,

[sage-support] Re: External Networks

2011-05-31 Thread Rolandb
On 31 mei, 21:53, naz...@verizon.net wrote: > I just downloaded VMware Player and the sage-vmware-4.6.zip file. It works > great. However, I do have two problems. I could be wrong, but they seem to be > related. First, I get the error message "External network not setup" whenever > I switch to t

[sage-support] Re: Problem with Solve

2011-05-28 Thread Rolandb
I looked at your problem. A few observations. On 27 mei, 18:13, rpoirier wrote: > I want to solve a relativity problem using SOLVE. > I used to be able to, but now I run into a problem. > > lp=60e9*1000 > dtp=1.25*24*3600 > beta=var('beta') > gamma=1/(sqrt(1-beta^2)) > solve(dtp*gamma==lp/(beta*c

[sage-support] Re: serious usability problem with unsaved notebooks

2011-05-14 Thread Rolandb
On 15 mei, 01:13, Tom wrote: > I keep getting notebooks that are messed up: text and formulas have been > randomly moved around and some are missing.  I think this happens when > closing the Sage notebook without either saving or discarding the changes. >  I haven't changed any of the default se

[sage-support] .factor() output consistent?

2011-05-01 Thread Rolandb
Hi, look at the following example: sage: R.=QQ[] sage: list((A^2+B).factor()+(B^2).factor()) [(1, A^2), (1, B^2), (1, B)] sage: list((A^2+B).factor())+list((B^2).factor()) [(A^2 + B, 1), (B, 2)] Is the first result what I could (should) expect? (tested via KAIST, version 4.6.1) Roland -- To po

[sage-support] Solving ax^2+bxy+cy^2=n fast (BinaryQF)

2011-02-27 Thread Rolandb
Hi, I was wondering whether equations as ax^2+bxy+cy^2=n can be solved fast. Solve is a general application with a lot of overhead. I think of methods such as can be found on www.alpertron.com.ar/METHODS.HTM by Dario Alejandro Alpern, or www.numbertheory.org/php/ by Keith Matthews. It seems to me l

[sage-support] Link missing

2011-02-14 Thread Rolandb
Hi, link missing Indices and tables * Index * Module Index * Search Page Requested page /doc/numerical_sage/py-modindex.html could not be found. Roland -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-suppor

[sage-support] Typo: fiel

2011-02-14 Thread Rolandb
Hi, a typo. How can I reload a Python script in a Sage session? You can load a Python script in a Sage session with the command load. For example, we could use Sage to import a file called simple.py with: load("simple.py") and repeat this command every time that we change the fiel simple.py. Ho

[sage-support] Comparing version 3.4 versus 4.6

2011-02-04 Thread Rolandb
Hi, just FYI. Cleaning up various old notebook files, I came across the following Benchmark. It seems that overall version 4.6 is faster, but not for all tests. 3.4 4.6 Benchmark 0.4s0.4sFactor the following polynomial over the rational numbers: (x^97+19*x+1)*(x^103-19*x^97+14)*(x^

[sage-support] Re: Sage with VMware does not work

2010-12-05 Thread Rolandb
suggestions? Thanks in advance. Hi, Maybe the following links provide you with a solution. 1. http://groups.google.com/group/sage-support/browse_thread/thread/7c30c801be94e5ae/762524a771479d54?lnk=gst&q=rolandb#762524a771479d54 2. http://ask.sagemath.org/question/139/the-network-connection-is-

[sage-support] Re: Error message EOFError

2010-11-22 Thread Rolandb
> > Paste that content in "Edit plain text" mode in your notebook in the > browser, press "save changes" and presto you should have your contents > back. > > /Calle > > On 12 Nov, 22:09, Rolandb wrote: > > > Hi, > > > I have a similar prob

[sage-support] Heavy memory usage in a basic example: what happens? How to manage it?

2010-11-16 Thread Rolandb
Hi, I assumed that pure python would not consume (too much) memory. But consider the following simple pure python example: sage: def splits(lijst,n): ... ... """ ... Divides a list in all combinations of n smaller partitions ... example: ... splits(range(5),2)= [[[0], [1,

[sage-support] Very long message: normal or is there a problem?

2010-11-13 Thread Rolandb
Hi, I upgraded VM player from 3.1.1 to 3.1.2. To test the upgrade I started Sage 4.5.1 (because 4.5.3 has a EOFError problem). A very long message appeared. Normal or is there a problem? Roland 2010-09-08 10:57:14-0700 [HTTPChannel,541,127.0.0.1] Starting zipping a group of worksheets in a sep

[sage-support] Error message EOFError

2010-11-12 Thread Rolandb
Hi, I have a similar problem as Brian had earlier: http://groups.google.com/group/sage-support/browse_thread/thread/c56db77811364972/13fdcb48875e6675?lnk=gst&q=brian#13fdcb48875e6675 If I start Sage from the command line with notebook(), I get the following messages: sage: notebook() --

[sage-support] Service Temporarily Unavailable

2010-11-08 Thread Rolandb
Hi, I got the following message using Firefox with Sage 4.5.3 via VM 3.1.1 build-282343. Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache/2.2.12 (Ubuntu) Server at 192.168.231

[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 do

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

2010-10-12 Thread Rolandb
On 13 okt, 03:39, kcrisman wrote: > On Oct 12, 6:37 pm, Robert Samal 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, solution_dict=True) > > > pr

[sage-support] Cython slow with symbolics?

2010-10-04 Thread Rolandb
Hi, I wonder why this (simple) example is still slow? %cython from sage.all import QQ def ctel2(int diep): R = QQ['A, B'] (A, B) = R._first_ngens(2) cdef long tel=0 cdef int i,k0,k1,k2,k3,k4,k5 para=[1,A,B,A**2,A*B,B**2] ABC=A*B*(A+B) for k0 in xrange(-diep,diep+1):

[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 traceback)

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

2010-09-10 Thread Rolandb
On 10 sep, 17:56, HarryK wrote: > On Aug 8, 9:16 am, Rolandb wrote: > > > > > On 8 aug, 01:47, Alex Ghitza wrote: > > > > Hi, > > > > On Sat, 7 Aug 2010 12:37:16 -0700 (PDT), Rolandb > > > wrote: > > > > I'm thrilled that a

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

2010-09-09 Thread Rolandb
On 9 sep, 22:54, jockothy wrote: > On Sep 8, 7:25 pm, Rolandb 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-ne

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

2010-09-08 Thread Rolandb
On 15 aug, 12:50, jockothy 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 an exter

[sage-support] Re: Error message

2010-08-27 Thread Rolandb
On 28 aug, 02:31, Mitesh Patel 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) st

[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 [-] twisted.web

[sage-support] Re: Finding symbolic solutions

2010-08-18 Thread Rolandb
On 16 aug, 19:44, Rolandb wrote: > On 16 aug, 05:53, Kenny Brown wrote: > > > On Aug 13, 3:07 pm, Rolandb 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.

[sage-support] Re: Finding symbolic solutions

2010-08-16 Thread Rolandb
On 16 aug, 05:53, Kenny Brown wrote: > On Aug 13, 3:07 pm, Rolandb 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 with P1(A,B)=A,

[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 A*B*(A+B)

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

2010-08-11 Thread Rolandb
On 11 aug, 22:36, Josh 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 crashed with the V

[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 wrote: > Hi, > > On Wed, 11 Aug 2010 10:02:03 -0700 (PDT), Rolandb 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. > > >

[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: Bad Gateway

2010-08-10 Thread Rolandb
On 10 aug, 07:45, Mitesh Patel 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

[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] 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 t

[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? Tha

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

2010-08-08 Thread Rolandb
On 8 aug, 01:47, Alex Ghitza wrote: > Hi, > > On Sat, 7 Aug 2010 12:37:16 -0700 (PDT), Rolandb 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.s

[sage-support] Re: China

2010-08-07 Thread Rolandb
On 7 aug, 21:54, William Stein wrote: > On Sat, Aug 7, 2010 at 12:47 PM, Rolandb 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

[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 po

[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] Re: tell to sage "do something if you can but if you can not, pass to anything else"

2010-07-20 Thread Rolandb
his 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, 201

[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 wit

[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 futur

[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 wrote: > Hi

[sage-support] Why is "map" using memory?

2010-06-20 Thread Rolandb
Hi, Look at: R.=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 increase a

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

2010-06-18 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 wi

[sage-support] Re: MemoryError

2010-06-18 Thread Rolandb
memory error? Roland On 29 mei, 09:43, Robert Bradshaw 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 &g

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

2010-06-11 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.=QQ[]", ".factor()", ".unit()" and ".factor(proof=False,limit=10^5)". I could not find anything in the documentation about for instance handling elements of R.=QQ[],

[sage-support] Re: Cython and static data

2010-06-07 Thread Rolandb
sage: timeit('for x in sxrange(1,10): x.is_square()', number=25) 25 loops, best of 3: 46.3 ms per loop Still 25% gain On 8 jun, 00:43, Yann wrote: > You migth also try this: > > timeit('for x in sxrange(1,10): x.is_square()', number=25) > >

[sage-support] Re: Cython and static data

2010-06-07 Thread Rolandb
w 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

[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. Suggestions

  1   2   >