[sage-devel] Re: Inserting Images into Notebook - upload dialog

2010-04-12 Thread Alec Mihailovs
On Apr 12, 8:43 am, Tim Joseph Dumol t...@timdumol.com wrote:

 import shutil
 shutil.copy(DATA + 'myfilename.ext', '.')

That could be done similarly without using DATA - as

from shutil import copy
copy('/home/excetera.png', '.')

Alec

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


[sage-devel] Re: Inserting Images into Notebook - upload dialog

2010-04-12 Thread Alec Mihailovs
On Apr 12, 4:49 pm, William Stein wst...@gmail.com wrote:
 On Monday, April 12, 2010, Alec Mihailovs  wrote:

  from shutil import copy
  copy('/home/excetera.png', '.')

 Using DATA explicitly and shutil is not necessary.  Just upload the
 file foo.png as you say, then use it in the  tag directly and it
 should just work.

Yes, if a file is uploaded, then it could be used as html('img
src=excetera.png/')

What I wrote (with shutil, but without DATA), works directly, without
uploading, and without using html. An interesting thing is that after
that is done, and the image is copied to one of cells (but without
uploading), it still can be used in an html tag from another cell just
referring to its name - same as if it was uploaded.

Alec

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


[sage-devel] Re: If using a computer to do your math homework is like copying

2010-04-04 Thread Alec Mihailovs
On Apr 4, 11:22 am, rjf fate...@gmail.com wrote:

 (followup could be done at the MIT page, here, or Sage-flame, or is
 there a list for educational applications
 of Sage??)

I forwarded that to

http://groups.google.com/group/sage-edu

(but that should be approved by moderators there :)

Alec Mihailovs

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


[sage-devel] Re: Sage on AIX

2010-04-03 Thread Alec Mihailovs
On Apr 3, 5:28 am, Dima Pasechnik dimp...@gmail.com wrote:
 one can apparently get remote access to an AIX system via
 IBM's Academic Initiative 
 programhttp://www.ibm.com/developerworks/university/software/get_software.html

Not exactly related to this thread (but related to this link),
Microsoft also offers free (as in beer) Visual Studio 2008, Windows
Server 2008 Enterprise, Expression Studio 3 and more for faculty,

http://www.microsoft.com/education/facultyconnection/software/softwarelist.aspx?c1=en-usc2=0

That might be helpful for people interested in developing native Sage
port on Windows.

Alec Mihailovs

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


[sage-devel] Re: Annual Spies Prize Winner Announced!

2010-03-22 Thread Alec Mihailovs
Minh,

In a few days that I was here, you were one of the most helpful guys,
together with William Stein, David Joyner and Mike Hansen, as well as
Jaap Spies himself. I guess that Jaap, William, and David can't have
this award, and Mike had it last year. That seems to be a rather
simple choice for the committee.

Congratulations!!!

Alec Mihailovs

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: method int_repr only works for small finite fields

2010-03-21 Thread Alec Mihailovs
On Mar 20, 10:11 pm, Minh Nguyen nguyenmi...@gmail.com wrote:
 On Sun, Mar 21, 2010 at 10:19 AM, Alasdair McAndrew amc...@gmail.com wrote:

  def intr(z):
      C=z.polynomial().coeffs()
      fc=parent(z).characteristic()
      tmp=0
      for i in range(len(C),0,-1):
          tmp=fc*tmp+int(C[i-1])
      return tmp

That can be also written short, but working slightly slower as

sage: def intr1(z):
: return
ZZ(z.polynomial().coeffs(),parent(z).characteristic())

And using functional programming, which works slightly faster than
intr, as

sage: def int4(z):
: C=reversed(map(int,z.polynomial().coeffs()))
: fc=parent(z).characteristic()
: return reduce(lambda x,y:fc*x+y,C)

Alec Mihailovs



-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: method int_repr only works for small finite fields

2010-03-21 Thread Alec Mihailovs
On Mar 21, 10:03 am, Martin Albrecht m...@informatik.uni-bremen.de
wrote:

 In all cases it should return a Sage Integer not a
 Python int.

All of the functions intr, intr1, and int4 return a Sage integer, not
a Python int.

Also, for small fields, log_to_int operates the same way,

sage: F.X=GF(2^6)
sage: r=F.random_element(); r

X^5 + X^2 + X + 1

sage: int4(r)

39

sage: r.log_to_int()

39

However, for large fields, say GF(7^100), log_to_int is not
implemented. Perhaps, either that name can be used instead of
integer_representation, or something similar, say poly_to_int.

Also, if there is a conversion from polynomials to integers, it would
have sense to have a backward conversion from integers to polynomials.
It can be done similarly as

def poly_repr(n,f):
C=reversed(n.digits(f.characteristic()))
return reduce(lambda x,y:f.gen()*x+y,C)

For example,

sage: poly_repr(int4(r),F)

X^5 + X^2 + X + 1

sage: _==r

True

The name for it can be chosen correspondingly to the name of the first
conversion, say int_to_poly.

The corresponding functions in the Maple's implementation of GF are
called input and output. They work in Maple as

F:=GF(7,100):
F:-input(101);
  2
   3 + 2 T

F:-output(%);

 101

Alec Mihailovs




-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: method int_repr only works for small finite fields

2010-03-21 Thread Alec Mihailovs
On Mar 21, 5:01 pm, Martin Albrecht m...@informatik.uni-bremen.de
wrote:

 sage: K.fetch_int(10)
 a^2 + 1

It's also working only for small fields.

Meanwhile, I found out that int4 returns python int in some cases. In
particular,

sage: type(int4(F.one()))

type 'int'

Also, neither int4, nor poly_repr work with 0,

sage: int4(F.zero())

TypeError: reduce() of empty sequence with no initial value

sage: poly_repr(0,F)

TypeError: reduce() of empty sequence with no initial value

So both of them should be corrected by dealing with 0 separately and
converting python int to Sage integers in int4.

Alec Mihailovs



-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: method int_repr only works for small finite fields

2010-03-21 Thread Alec Mihailovs
On Mar 21, 5:34 pm, Alec Mihailovs alec.mihail...@gmail.com wrote:
 So both of them should be corrected by dealing with 0 separately and
 converting python int to Sage integers in int4.

Here are the corrected versions of int4 and poly_repr,

sage: def int4(z):
: C=reversed(map(int,z.polynomial().coeffs()))
: fc=parent(z).characteristic()
: return reduce(lambda x,y:fc*x+y,C,0)

def poly_repr(n,f):
C=reversed(n.digits(f.characteristic()))
return reduce(lambda x,y:f.gen()*x+y,C,f.zero())

sage: type(int4(F.one()))

type 'sage.rings.integer.Integer'

sage: poly_repr(0,F)

0

sage: type(_)

class
'sage.rings.finite_field_element.FiniteField_ext_pariElement'

sage: int4(F.zero())

0

sage: type(_)

type 'sage.rings.integer.Integer'

Alec Mihailovs






-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: method int_repr only works for small finite fields

2010-03-21 Thread Alec Mihailovs
By the way, I looked at the help page for digits,

sage: base=7
sage: x=12345654321234565432123456543212345654321234565432123456
sage: x.digits?

and it is said there (at the end) that

 Using ``sum()`` and ``enumerate()`` to do the same thing is
   slightly faster in many cases (and ``balanced_sum()`` may be
faster
   yet). Of course it gives the same result:

  sage: base = 4
  sage: sum(digit * base^i for i, digit in
enumerate(x.digits(base))) == ZZ(x.digits(base), base)
  True


However, timing shows that ZZ is faster than sum with enumerate, and
reduce is faster than both of them,

sage: L=x.digits(base)
sage: timeit('sum(digit * base^i for i, digit in enumerate(L))')
625 loops, best of 3: 59.2 ��s per loop
sage: timeit('ZZ(L,base)')
625 loops, best of 3: 57.3 ��s per loop
sage:  timeit('reduce(lambda x,y:base*x+y,reversed(L),0)')
625 loops, best of 3: 29.2 ��s per loop

Alec Mihailovs




-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: Bug advertisement

2010-03-21 Thread Alec Mihailovs
On Mar 21, 11:38 am, Ronan Paixão ronanpai...@yahoo.com.br wrote:
 Also, since I'm using that ugly OS,

For me, Windows 7 is beautiful!

Unfortunately, I have to use that ugly Linux most of the time when I
want to use Sage.

 Also, the terminal which is opened when sage is autostarted, doesn't say that 
 the showed IP can be used in a browser outside the VirtualBox environment,

Another problem with it is that I closed that window once, and it
didn't appear when I started VirtualBox next time (and after that).

Alec

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: Sage 4.3.4.rc0 released

2010-03-21 Thread Alec Mihailovs
On Mar 20, 9:17 pm, William Stein wst...@gmail.com wrote:

 Hi -- I worked on this today, but it simply took too long for Sage to
 build.  I will continue working on this next Monday (just over a week
 from now), when I get back to Canada, and then finally have a 4.3.4
 Virtualbox, unless of course some other Sage developers wants to post
 an updated VirtualBox image.

I would build it myself if there were sources and building
instructions available. Are they?

Alec Mihailovs

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: Bug advertisement

2010-03-21 Thread Alec Mihailovs
Jaap,

 But wait! A native Windows Sage is almost there.

That would be excellent! I'm not sure that cygwin would work on my 64-
bit system (never tried it though.)

Alec

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: Bug advertisement

2010-03-21 Thread Alec Mihailovs
Jaap,

 On my ugly 64 bit system I can run 32 bit software without a problem :)

Me too. But cygwin is a different story. A couple of years (or more?)
ago, when I switched from 32-bit Windows to 64-bit (XP at that time),
cygwin didn't work on 64-bit Windows. I used cygwin extensively for
many years before that, and was quite sorry then that I won't be able
to play gnibbles and other such things.

Is it working in 64-bit Windows 7 now? I would be happy to install it
again.

Alec

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: Bug advertisement

2010-03-21 Thread Alec Mihailovs
On Mar 21, 9:28 pm, Alec Mihailovs alec.mihail...@gmail.com wrote:
 Is it working in 64-bit Windows 7 now? I would be happy to install it
 again.

Wow! Just installed the basic cygwin and it is working! I'll try to
build Sage there.

Alec

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: Category for IntegerModRing(n)

2010-03-20 Thread Alec Mihailovs
From the user point of view, without reading the documentation, I
would expect IntegerModRing(n) be a ring, IntegerModField(p) be a
field, and Integer ModAbelianGroup(n) be an Abelian group.

So I would go with option (2).

It would be rather confusing to define something that you think is a
ring, and then find out that it is a field.

The situation would be different for IntegerMod(n), in which case the
category can be specified using a keyword category, which could be
CommutativeRings by default, but may be changed as category=Fields, as
in option 3, or category=AbelianGroups, if desirable.

Alec Mihailovs

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-devel+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-devel] Re: Sage 4.3.4.rc0 released

2010-03-17 Thread Alec Mihailovs
It's not related to this particular release - just in general.

I tried to upgrade Sage in VirtualBox on Windows (from version 4.3
that I installed 2 days ago, which is the latest version distributed
for Windows), and everything seemed fine for a while, but then I got
the error message that I run out of space. At this time the used
volume was only 1.6 GB, with 16GB available in the virtual machine.

After that, my original installation got broken - and after rebooting
and restarting, the Windows' Firefox can't even connect to the Sage
server.

Does that mean that Windows distribution as a VirtualBox appliance can
not be upgraded?

Alec Mihailovs

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Parents with a natural action on a space

2010-03-17 Thread Alec Mihailovs
On Mar 17, 6:46 pm, Nicolas M. Thiery nicolas.thi...@u-psud.fr
wrote:
         Dear Dima, dear Sage devs,

 Dan Bump recently raised the issue that the `lattice` method for Weyl
 groups is badly named. I agree, but the issue is more general. Hence,
 here is a call for good names.

 Let P be a parent endowed with a natural action (or representation) on
 a space `E`. For example:

  - P is a group of permutations of E = {2,4,9,7}
  - P is an algebra of matrices, acting on a vector space E
  - P is a monoid of functions from E = {a,b,c} to itself
  - P = End(E)

 What should be the name of the method of P returning E ?

  - P.domain() ?
  - P.natural_representation() ?
  - P.natural_representation_space() ?
  - P.natural_module() ?
  - P.action_set() ?
  - something else?

Maybe, P.over ? It could be a property, perhaps, rather than a method.

Alec Mihailovs

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Sage 4.3.4.rc0 released

2010-03-17 Thread Alec Mihailovs
On Mar 17, 8:02 pm, William Stein wst...@gmail.com wrote:

 I didn't realize that the VirtualBox distro hadn't been upgraded in so long.
 I'll try hard to upgrade it to 4.3.4 and post a new version before I
 leave for Canada on Sunday morning.   (Upgrading it is not easy, as
 you found...)

Thank you very much,
Alec

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Sage 4.3.4.rc0 released

2010-03-17 Thread Alec Mihailovs
Upgrading to that release on my 64-bit Ubuntu 9.10 (from Sage 4.1.
something) everything went fine except fortran. Here are the related
error messages

sage-spkg fortran-20100118 21
Warning: Attempted to overwrite SAGE_ROOT environment variable
fortran-20100118
...
Extracting package /home/alec/sage-3.0.1/spkg/standard/
fortran-20100118.spkg ...
...
Finished extraction

Host system
uname -a:
Linux alec-desktop 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12
04:38:19 UTC 2010 x86_64 GNU/Linux


CC Version
gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.1-4ubuntu9' --with-bugurl=file:///usr/share/doc/gcc-4.4/
README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/
usr --enable-shared --enable-multiarch --enable-linker-build-id --with-
system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-
threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-
suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --disable-werror --with-arch-32=i486 --with-
tune=generic --enable-checking=release --build=x86_64-linux-gnu --
host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)

**

Error installing Fortran: You must install gfortran or set
SAGE_FORTRAN (and possibly SAGE_FORTRAN_LIB).

**

Alec Mihailovs

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Sage 4.3.4.rc0 released

2010-03-17 Thread Alec Mihailovs
Minh and William,

Thank you very much and sorry that I didn't read about the
prerequisites before upgrading.

After installing gfortran (I did it system-wide, so setting
SAGE_FORTRAN and SAGE_FORTRAN_LIB was not necessary), everything was
going smooth.

The installation,building, and tuning took some time, but finally
ended with no errors reported.

Not exactly related to that, but during installation I saw a lot of C
code. It seems strange that Ohloh (I got that link from the
development page on Sage site)

https://www.ohloh.net/p/sage/analyses/latest

reports that Sage has -15,017 (a negative number) C code lines.

Say, -5 shell script comment lines I can understand (5 lines with
negative comments), but how the number of code lines can be negative?

Alec Mihailovs


-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Logistic Curve Fitting in Sage

2010-03-14 Thread Alec Mihailovs

On Mar 12, 4:22 am, Joal Heagney joalheag...@gmail.com wrote:
 Hi guys and gals,
 Currently I'm attempting to fit the following data to the general
 logistic model:

 [(0,0),(1,0),(2,13),(3,28),(4,48),(5,89),(6,107),(7,168),(8,188),(9,209)]

 The form of the logistic curve I am using is:

 K/(1 + a*exp(r * (t - t0)))^(1/v)

 with K,a,r,t0 and v being parameters, t the dependent variable.

 Attempting to use find_fit, I get values of:
 [K == 84.99972210745, a == 126.84970317061706, r ==
 -183.75725583987102, t0 == -124.8433024602822, v == 105.35677984548882]

 This is obviously wrong as K is nowhere near the right-hand asymptote in
 the data. Using a more bare-bones approach based on fmin, I get more
 realistic results of:
 [249.143779989,11.657027477,-0.535852892673,-0.0364250104883,0.52301206184]

The K is approximately the average value of the data and the resulting
function is practically a constant K.

Both Mathematica's function FindFit and Maple's function Statistics:-
Fit produce similar results with K close to 85 and different other
parameter values, buth also with the result being very close to a
constant function.

The problem seems to be in the bad initial guess.

A better initial guess produce rather nice looking answer in Sage,

Using data and model(t) from the YannLC reply,

data = [(0,0),(1,0),(2,13),(3,28),(4,48),(5,89),(6,107),(7,168),
(8,188),(9,209)]

var('K,a,r,t,t0,v')

model(t) = K/(1 + a*exp(r * (t - t0)))^(1/v)

s=find_fit(data,
model,initial_guess=[200,10,0,1,1],parameters=[K,a,r,t0,v],solution_dict=True);
s

{t0: 1.9182136806459771, K: 249.14668753230089, a: 4.0889718235600832,
r: -0.53583047134875161, v: 0.52295328451032852}

plot([scatter_plot(data), plot(model(t).subs(s),(0,9))])

Alec Mihailovs

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Windows

2009-01-28 Thread Alec Mihailovs

Another alternative, for using Sage in class, instead of using a 
(non-existing) native Windows port, or one of the virtualizations, is to use 
it from a live CD, booting Linux. The CDs are easy to distribute in class, 
and students don't have to download and install anything.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: Windows

2009-01-25 Thread Alec Mihailovs

From: mabshoff mabsh...@googlemail.com

 That is why having an MSI installer that
 includes Cygwin is important at that stage since dropping a working
 Sage into a foreign Cygwin is assured with probability 1 to be
 broken in some aspect.

That will create problems though if Cygwin is already installed. There 
shouldn't be two cygwin.dlls on the same computer.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: Windows

2009-01-25 Thread Alec Mihailovs

From: mabshoff mabsh...@googlemail.com

 There shouldn't be two cygwin.dlls on the same computer.

 No, this does not apply since first cygwin1.dll in %PATH% or CWD will
 be the one used if no DLL has been loaded into RAM. You cannot run two
 different Cygwin instances at the same time and expect them to work.

The problems usually occur when a wrong cygwin's dll is loaded. It was a 
recurring topic on the cygwin's mailing list for several years (I don't 
subscribe to it now.) That's why the best way for an application to work 
used to be to include it in the cygwin distribution. I don't use cygwin now, 
so that may be changed though.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: virtual box

2008-08-27 Thread Alec Mihailovs

The best experience that I had in Windows with SAGE was when SAGE was 
available from cygwin. The second best was in Virtual PC (free from 
Microsoft) with first Ubuntu installed in it, and then SAGE built from 
source there.

Currently I use SAGE (built from source) in Ubuntu 8.04 installed in the 
hard drive partitioned 50-50 for Vista and Ubuntu. That is better than both 
of the other choices above. I would recommend it.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: Things I miss from Maple in Sage

2008-08-22 Thread Alec Mihailovs

 sage: data = [-1, 2, 3]
 sage: [(0 if d  0 else d) for d in data]

 sage: data = ma_eval('data /. x_?(#  0 ) - 0')

Couldn't stop myself from showing how that would work in Maple, 

data:=[-1,2,3]:
evalindets(data,negative,0);

  [0, 2, 3]
Alec



--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: Things I miss from Maple in Sage

2008-08-22 Thread Alec Mihailovs

 Couldn't stop myself from showing how that would work in Maple, 
 
 data:=[-1,2,3]:
 evalindets(data,negative,0);
 
  [0, 2, 3]

Or in more, maybe, readable form, 

applyrule(x::negative=0,data);
  [0, 2, 3]
Alec

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: Symbolic differential equation solving deserves better syntax

2008-08-21 Thread Alec Mihailovs

 I guess Mathematica is the leader on solving differential equations
 symbolically, and pending other great ideas, I think their syntax is
 worth copying.  Here's an example of the DSolve syntax in Mathematica:

I think, Maple is better at that, especially for partial differential 
equations. In particular, Lie symmetries and Heun functions are explored 
much more in Maple than in Mathematica. It still has some bugs, but they 
usually come from other sources, such as extremely buggy int, solve, or 
simplify.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: Sphinx and the Sage Documentation

2008-08-21 Thread Alec Mihailovs

I, certainly, like both Sphinx and wiki. It would be great if they could be 
united.

What I miss in the documentation, is index and search (not just one 
document, but all of them), as in Windows chm files.

Alec





--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: Symbolic differential equation solving deserves better syntax

2008-08-21 Thread Alec Mihailovs

Yes, Maple puts both ODE and initial conditions in one set, as  

  dsolve({ODE, ICs}, y(x), options)

Alec


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: questions about the Programming guide

2008-08-18 Thread Alec Mihailovs

Guys, I started to read that recently, and it's really appalling. How long 
do you post on the Usenet? One of the first thing one should to learn is not 
to quote the previous message in full, or most of it. Quote only the part 
that you respond to.

Please.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: questions about the Programming guide

2008-08-18 Thread Alec Mihailovs

 - Show quoted text -

I didn't mean exactly your post. It was just a note in general. What is the 
point in quoting if you read posts in Google? Everything is there, above.

It's just clogging my mail and I really don't see any point in it. What is 
the point?

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: questions about the Programming guide

2008-08-18 Thread Alec Mihailovs

Just random pick from today's mail, follows below, and sorry for top 
posting. 100+ lines of quotting (I didn't really count, it may be less than 
that) and 4 lines of comment. With my spam rules (everything with more than 
50% of quotting goes to junk mail) it went directly there, where it belongs. 
But some other posts with 2 lines of comment could have more sense. Because 
of that, I have to go through all spam only to see whether it have some 
sense, or not. And I am guessing that I am not the only one doing that.

Is there really any point in quotting all the message that you respond to 
with 1 or 2 sentences?

Alec


On Mon, Aug 18, 2008 at 5:10 PM, Bill Page [EMAIL PROTECTED] 
wrote:

 Martin,

 On Sat, Aug 16, 2008 at 1:59 AM, Martin Rubey wrote:

 Bill Page writes:

 I am not so sure that a similar role can be played by FriCAS.
 The FriCAS/Axiom libraries are not so easily called by an
 external program. Instead we have the same option to interface
 with FriCAS as we have with Maxima - via the pseudo-terminal
 (pty) serial interface. This has the same drawbacks in both
 Maxima and FriCAS.

 I recently thought that it might be quite easy to have a domain
 SAGEForm, similar to OutputForm or --

 actually, doesn't OpenMath provide what SAGE needs?


 OpenMath was an early attempt to do something much more ambitious than
 what Sage needs. *If* the OpenMath option in Axiom was working today,
 then it would indeed be a good way to pass output from Axiom back to
 Sage while retaining as much of the Axiom type information as
 possible. The necessary hooks for OpenMath generation are present in
 the current panAxiom code, but OpenMath as implemented in Axiom
 depends on an external library that is not currently included with any
 panAxiom version.

 But as I said, OpenMath attempts to solve the general problem of
 exporting full semantic information from a computer algebra system.
 This is more than what is required for a good interface to Sage. In
 panAxiom we also have the MathML output. Currently only presentation
 MathML is generated but there is an extension of MathML that include
 much more content (semantic) information without getting into the
 generalities of OpenMath. Perhaps a 'SAGEform' domain could be based
 on an extension of the MathML output option.

 But still misses one of the hardest parts - mapping Axiom type
 structures back to Sage in a way that other parts of Sage understand
 these structures. At a mathematical level (e.g. various kinds of
 polynomials) this is probably not too hard, but at a more fundamental
 level things get more difficult. For example, Sage (actually
 originating with Python) has not data structure directly corresponding
 to 'Record' or 'Union' in Axiom. This can cause a lot of trouble when
 trying to access the results of those computations in Axiom that
 return complex results. You will no doubt be aware that this occurs
 when accessing the output of GUESS from within Sage.

 The dumb mode of calling an external program like Axiom just passes
 a string, e.g.

  sage:  axiom('x^2+1')

 then the parsing of 'x^2+1' occurs entirely within Axiom. But it is
 not so interesting to always be creating and passing strings.

 There is very a little documentation available in Sage about how the
 conversion from Sage internal format to some external format (such as
 used when calling Axiom). This happens automatically when you write
 something like

  sage:  axiom(x^2+1)

 without including the 'quotes'. In this case Sage parses the expression

  x^2+1

 and creates a native polynomial object. Then the 'axiom' function must
 now recursively process this Sage expression until it finds objects
 and operations near the bottom of the tree that it knows how to
 interpret as Axiom objects and operations. Most of the coding that
 accomplishes this is outside of the 'axiom.py' interface itself,
 distributed over several other Python classes. As far as I know
 William Stein is still the best source for how this conversion works.
 He has said that really it is very simple and I guess I do
 understand parts of it, but you should expect to spend some time to
 re-discover how it works sufficiently well in order to improve it.

 In order to pass Axiom expressions back to Sage, it seems to me that
 we might have to implement something like this only working in
 reverse.

 Anyway, I think there is a lot of potential for improvement in the
 existing 'axiom.py' interface even without considering how to solve
 the problem of an efficient application program interface. One thing
 that I miss a lot when using Axiom from the Sage notebook is the
 ability to embed Spad code and compile it. This should be quite
 straightforward to add to 'axiom.py'.

 I would be glad to work with anyone else interested in improving the
 Axiom/FriCAS interface for Sage.

In the long term there should be a way to call lisp from C or Python
directly. Then all the problems above could be solved
much more easily. If 

[sage-devel] Re: sagemath.org relaunch

2008-07-09 Thread Alec Mihailovs

I've noticed 2 things. First - mirrors were not showing in the download page 
(when I looked at it - it may be fixed by now). Second - there seem to be no 
a link to the screenshot page.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] MoinMoin with jsMath

2008-06-16 Thread Alec Mihailovs

I've just added a simple formatter and a simple macro to mapleadvisor wiki 
and now the formulas can be typed in LaTeX there and displayed normally.

I know that Sage is using both MoinMoin and jsMath. If you would like to 
have that, I'd like to contribute. Or, if it was already done in your wiki 
by somebody else, I'd like to know how, so that I, maybe, could use that 
instead of my macro and formatter.

It works just by adding

#format math
JsMath()

at the top of a wiki page. Or replacing #format wiki (if it is present) with
#format math, and then adding the second line the same as above. Please
don't hesitate to experiment with that in

http://mapleadvisor.com/cgi-bin/moin.cgi/JsMathTest
and
http://mapleadvisor.com/cgi-bin/moin.cgi/JsMathTest1 .

Alec Mihailovs
 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Promoting SAGE at Mapleprimes

2008-05-18 Thread Alec Mihailovs

I am trying to promote SAGE at Mapleprimes (in various threads). In addition 
to

http://www.mapleprimes.com/forum/a110375

where Mike Hansen posted a comment at the end of the thread, there is a 
question from Alejandro Jakubi in

http://www.mapleprimes.com/forum/clairautsyoungstheorem

He asked whether SAGE is using Maxima or Axiom for calculus.

I am not a SAGE developer (just a happy user), and I could say something 
wrong about that. Could somebody post there explaining that, please?

Also, it would be nice to see another response in A110375 thread to keep in 
on the top of Recent posts list (that's what many people use - in the menu 
from the left hand side.)

Thank you,
Alec Mihailovs 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: New GMP for SAGE

2008-05-07 Thread Alec Mihailovs

From: Bill Hart [EMAIL PROTECTED]

 5) Rewrite the x86 assembly to use NASM (possibly FASM, but there is
 a
 bootstrapping issue with the source code for that, NASM is written in
 C, so no bootstrapping problems there).

 Q. What about Apple and Microsoft support?

 A. We want to support Apple's XCode and Microsoft's MSVC as first
 class citizens and are willing to work around linker/compiler issues
 to a reasonable extent. Watch the list for further discussion of
 this.

I'm not sure about Apple, but for Windows YASM seems to be a better choice 
than NASM. In particular, Brian Gladman used it for his Windows port of GMP 
and MPFR, see

http://fp.gladman.plus.com/computing/gmp4win.htm

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: gmp 4.2.2 LGPL V3 issues and other minor tidbits

2007-09-23 Thread Alec Mihailovs

 GPLv2 and GPLv3 are actually incompatible. You might think
 GPLvN should be compatible with GPLv(N-1) but that isnt the case here.
 At the moment, I think SAGE cannot be released under GPLv3.

Ideally, the alternative to M* CASes should be released under more 
permissive license, such as MIT or new BSD. But the current situation seems 
to be far from ideal :(

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: gmp 4.2.2 LGPL V3 issues and other minor tidbits

2007-09-23 Thread Alec Mihailovs

 In fact, it is impossible to combine GPLv2 only and LGPLv3 only code
 in they same project, under any license.

Well, one possibility is to have GPLv2 in the main distribution and LGPLv3 
as an optional package.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: gmp 4.2.2 LGPL V3 issues and other minor tidbits

2007-09-23 Thread Alec Mihailovs

 Well, one possibility is to have GPLv2 in the main distribution and LGPLv3
 as an optional package.

Another possibility is to distribute SAGE-new parts under any of GPL2, GPL3, 
or GPL2 and later, and distribute all the rest as a collection of packages, 
each with its own license, without having a unique license for all of that.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: gmp 4.2.2 LGPL V3 issues and other minor tidbits

2007-09-23 Thread Alec Mihailovs

 This is only perhaps ideal from the typical end user's point of view.
 The GPL-style license is greatly preferred over the BSD/MIT as the
 license for Sage by most Sage developers (this was discussed a lot
 at Sage Days 2).   In fact, several of the top contributors to Sage have
 explicitly said they would not contribute to Sage if it were not licensed
 under the GPL. It's very important to these people, who put a massive
 amount of their time into Sage, that the code the write not just be
 copied into Mathematica/Maple/Magma, etc., and sold for profit,
 improved, etc., with nothing given in return.

By the way, the GPL licensing, generally, is the main thing that prevents me 
personally from contributing to SAGE. I never put anything I wrote under GPL 
and I am not going to (at least at this moment.) Comparing to the danger of 
copying the code that I wrote to Mathematica, Maple, or Magma, the GPL 
licensing (and FSF copyrighting) seems to be much worse :)

Alec



--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: gmp 4.2.2 LGPL V3 issues and other minor tidbits

2007-09-23 Thread Alec Mihailovs

 Could you please elaborate on this a bit? What is it about the GPL
 that you don't like? If you were to contribute code to SAGE, what
 would be your ideal license?

My ideal license would be MIT. I don't like the GPL in general. I read it a 
few times up to some point where I said to myself - no, that's not right, I 
can't go with that. At different times that was a different point, but I 
believe that I never went over the half of it. I have some negative personal 
experience with some of FSF people (that I don't want to share) though, so 
my opinion about the GPL may be biased.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: Calculus

2007-09-17 Thread Alec Mihailovs

- Original Message - 
From: William Stein
 One possibly nasty possibility would be to allow Magma-like notation:
  sage: [1..4]
  [1, 2, 3, 4]

 How does one specify an integer range in Maple, Mathematica, Maxima?

In Maple it is similar to Magma, $1..4 produces 1,2,3,4. Also, .. is used 
for plots, sums, integrals et al. as plot(x^2,x=-1..1); int(x^2,x=-1..1); 
etc.

 --  Regarding latex, it would be great to have a simple description of
 how to use the notebook interface to produce a paper in latex 
 incorporating
 sage input and output,

That can be done more simple in texmacs with a SAGE session embedded. I 
think SAGE sessions can be added to LyX, too, but that seems to be not 
implemented yet.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE download stats -- how to increase SAGE usage?

2007-08-07 Thread Alec Mihailovs

From: Bill Page [EMAIL PROTECTED]

 As technically hard as it might be, I think having a native Windows
 version of Sage - even if it includes only a subset of the standard
 packages - would likely be a big factor in attracting more users.

Being a Windows user, I can't agree less. Also, the notebook running in IE 7 
would be much more attractive for many Windows users (including me) than in 
Firefox.

 Having even a subset of Sage available as a
 native Windows application would introduce many more users to Sage and
 probably motivate some of them to install Linux in order to access the
 full version.

I always have few Linuxes installed, just for running programs (such as 
SAGE) that are not available in Windows. Still, it's not the same.

 I think the best tool for building a native Windows version of Sage is
 probably MSYS/MinGW which is really a cross-compiler and gnu tool set
 that provides a Linux-like environment only during the build. The end
 product is a native Windows application that does not depend on any
 Linux emulation layer. Unfortunately some of the standard packages in
 Sage can not be built in this way and to make matters worse, as far as
 I know the pexpect module that is required for interface with packages
 like Maxima has not been successfully ported to Windows.

However, for Python extensions, the compiler should be the same as the 
compiler used to build Python - for Windows it is Visual Studio (Express is 
OK) 2005.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE download stats -- how to increase SAGE usage?

2007-08-07 Thread Alec Mihailovs

From: Bill Page [EMAIL PROTECTED]
 Being a Windows user, I can't agree less.

 ??? In my reading of English this sounds like you strongly disagree. :-(

Yes, my English is not that great. Certainly I meant strongly agree :-)

 I am not sure if this is necessary but apparently Python can be built
 under MSYS/MinGW (I haven't tried this). See:

I meant that the standard Windows Python available from python.org was built 
using Visual Studio 2005. I tried once to build it with Visual C++ Express 
2005 (that is free as beer), and it worked fine, too.

In general, I think that the best way for using Sage in Windows would be not 
to include such things as Python, Singular, GAP etc., but assume that users 
already have them, or are able to install them themselves - that would make 
porting much easier.

Alec


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE download stats -- how to increase SAGE usage?

2007-08-07 Thread Alec Mihailovs

From: mabshoff [EMAIL PROTECTED]

 The compartmentilazation of SAGE has been suggested many times before,
 but as William has stated many times: This makes testing and debugging
 infinitely more diffcult. It is also extreme likely that if you use
 even minor different versions  of certain packages like Maxima things
 no longer work properly.

Just seems kinda strange to build the same versions of Python, clisp, gsl, 
gmp, Singular, etc. that are parts of cygwin distribution already.

Alec


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: ams notices opinion column

2007-08-05 Thread Alec Mihailovs

From: Justin C. Walker [EMAIL PROTECTED]

 Tthere are large mounds of open source lying around for anyone to
 inspect.  The unix kernel is one such (nowadays).  Take a look :-}

Justin, do you have a link? I just searched Google for Unix kernel sources 
and found the Unix V7 tour at http://www.tamacom.com/tour/kernel/unix/ .

I looked at the main and few other files - the comments are very rare and 
mostly serve as section titles. It is as far from literate programming as 
it can be. The code seems to be very clean though and understandable.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: computing the number of partitions of an integer

2007-08-04 Thread Alec Mihailovs

From: Jonathan Bober [EMAIL PROTECTED]

 It's not quite ready for inclusion, but, eventually, maybe Bill Hart's
 prediction about it only taking 10 seconds to compute p(10^9) on
 sage.math will come true.

That's fantastic! Great work!

Alec

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: ams notices opinion column

2007-08-04 Thread Alec Mihailovs

 It is indeed *their* statement on the matter and it is what they
 strongly believe
 to be true.

It's actually may be true (regarding to Mathematica). Their code may be very 
poorly commented (and AFAICT it is.)

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: ams notices opinion column

2007-08-04 Thread Alec Mihailovs

From: Alec Mihailovs [EMAIL PROTECTED]

 It actually may be true (regarding to Mathematica). Their code may be very
 poorly commented (and AFAICT it is.)

And the motivation for doing that is very simple. If you (a developer) do it 
that way, so that you are the only one who could understand the code - less 
chances that you get fired.

Alec


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: ams notices opinion column

2007-08-04 Thread Alec Mihailovs

From: William Stein [EMAIL PROTECTED]

 I think Jon Bober's code for number of partitions is a very nice example
 of how open source is so much better.  Have a look at it some time; the
 comments are fascinating.  And reading through the extremely interesting
 and extensive comments makes one start to *distrust* it a little, which is
 actually really good in a way.  It's amazing how worried one can get about
 code when you actually read it!

Yeah - I've read through it. Add 3 - just for luck was excellent!

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: usageof sage.

2007-08-03 Thread Alec Mihailovs

 But,it needs vmware. Inside Microsoft that is not easy, can we use
 Microsoft's  virtualpc or any other idea?

 Yes, I could definitely make a Microsoft virtualpc version of SAGE!
 I'll look into it when I get back -- or perhaps somebody on sage-devel
 who uses virtualpc and has run some sort of Linux in it could comment?

I used SAGE from Virtual PC a few months ago. First, I installed Ubuntu 
there (with some tweaks that could be found on the web - I remember reading 
detailed step by step instructions), and then - the same as in plain Ubuntu, 
installed SAGE from the source there. Worked fine.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: computing the number of partitions of an integer

2007-08-03 Thread Alec Mihailovs

From: William Stein [EMAIL PROTECTED]

 Thanks.  I've fixed this for sage = 2.7.3 in the attached patch.

Just upgraded SAGE to 2.7.3 and number_of_partitions works twice as fast as 
in 2.7.2 with algorithm='bober' for 10^9 - it took 112 sec in 2.7.2 and only 
56 sec in 2.7.3. This is in Ubuntu 7.04 on Dual Core 64-bit 2.6GHz Athlon 
with 2 GB RAM. By the way, to compare with other systems, SAGE 2.7.2 
installation took about 53 minutes.

I noticed the following interesting thing with time measuring: assigning 
number_of_partitions to a variable (that shouldn't take time at all), took 
about 10% or more of total time. For example,

sage: time number_of_partitions(10^7)

took about 0.8 sec while

sage: time a=number_of_partitions(10^7)

took slightly more than 1 sec. For 10^8 the corresponding times were 5 sec 
and 5.45 sec.

That seems odd, isn't it?

Alec



 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: opinion column for the Notices of the AMS

2007-08-03 Thread Alec Mihailovs

 David Joyner and I are writing an opinion column for the Notices of the
 AMS on funding open source mathematical software.  It must be at
 most 800 words, and we have a first rough draft.  We have to finish it
 fairly quickly.  I've attached the current version to this email. 
 Feedback
 is very welcome!

One suggestion is to replace your gmail email addresses in the signatures to 
the school email addresses.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: computing the number of partitions of an integer

2007-08-02 Thread Alec Mihailovs

From: Jonathan Bober [EMAIL PROTECTED]

 Incidentally, I should have mentioned here that I submitted a patch for
 version .4, and also updated it at

 http://www.math.lsa.umich.edu/~bober/partitions_c.cc

 It uses long doubles now when then precision is small enough (and then,
 later, just doubles like before), and the speedup is significant.

By the way, I just installed SAGE 2.7.2 (from source) on my Ubuntu 7.04 
system, with AMD Athlon 64 X2 5200+ and tested the version included there 
(using algorithm='bober'). It has the following feature - for input 2^32 it 
gave the ValueError saying that the input should be less than 2^64-2 
(evaluated).

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Fw: Updated: singular-*-3.0.3-1

2007-08-02 Thread Alec Mihailovs

Singular 3.03 was included in Cygwin today. Are there plans to include it in 
SAGE? An interesting thing is that now it can be built as a library.

Alec

- Original Message - 
From: Oliver Wienand [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 02, 2007 10:07 AM
Subject: Updated: singular-*-3.0.3-1


 Version 3.0.3-1 of Singular has been uploaded.

 About:

 SINGULAR is a Computer Algebra System for polynomial computations with
 special emphasis on the needs of commutative algebra, algebraic
 geometry, and singularity theory.

 Changes:

 The current version 3-0-3 is stabilyzing release,
 a result of a long beta test and the integration of a lot of small fixess
 which were on our waiting list for integration.

 The provided libraries and documentation were revisited.

 Singular 3-0-3 contains also a lot of new features:

 Licence:
 - licence changed: omalloc and MP are now (also) available under GPL;
 that means that all parts of SINGULAR are licenced under
 GPL (resp. LGPL).

 Porting:
 - factory, libfac, Singular updated for gcc 4.1.x
 - kernel updated for the optional use of boost.
 - Singular can now be built as a library.

 Kernel:
 - new operator a:b gives an intvec of length b with constant entries a
 - new command: ( chinrem): lifting via chinese remainder theorem
 - new command: ( interpolation): ideal of points with given multiplicities
 - non-commutative kernel subsystem was rewritten in order to support
  specific algebras more efficiently. Implemented algebras at the
  moment: super-commutative algebras (in particular exterior algebras).
 - std et al.: new selection strategy for reductions ( option (length)).
 - reduce: new strategy for selection and normalization.
 - simplify slightly changed: does not omit zero polynomial unless 
 specified.

 Libraries:
 - new library: compregb.lib : comprehensive Groebner base system
 - new library: kskernel.lib : kernel of the kodaira-spencer map for
 irreducible plane curve singularities
 - new library: modstd.lib : Groebner base computations over the
 rational numbers via modular computations
 - new library: noether.lib : Noether normalization of an ideal(not
 nessecary homogeneous)
 - new library: atkins.lib : the elliptic curve primality test of Atkin
 - new library: aksaka.lib : primality testing after Agrawal, Saxena, Kayal
 - new library: arcpoint.lib : truncations of arcs at a singular point
 - new library: resgraph.lib : visualization of resolution data.
 - new library: realrad.lib : computation of the real radical over the
 rational numbers and extensions thereof
 - new library: hyperel.lib : divisors in the jacobian of hyperelliptic 
 curves
 - new library: curvepar.lib : space curves
 - new library: sagbi.lib : subalgebras bases analogous to Groebner
 bases for ideals
 - new library: surfex.lib : visualizing and rotating surfaces
 - new library: cimonom.lib : determines if the toric ideal of an
 affine monomial curve is a complete intersection.
 - sheafcoh_lib: new experimental functions, in particular sheafCohBGG2
 - library ncall.lib merged into all_lib
 - library center.lib renamed to central.lib
 - nctools_lib: new functions for super-commutative algebras (i.e.
 SuperCommutative, IsSCA, AltVarStart, AltVarEnd)
 - resolve.lib: blow ups revised

 - new algorithms in primdec.lib : radical et al.
 - improved version of slimgb, incorporated into groebner, strategy
 change in groebner
 - finvar.lib: the algorithm of secondary_char0 is now used in general
 in the non-modular case
 - finvar.lib: new algorithm for irred_secondary_char0
 - finvar.lib: new function irred_secondary_no_molien
 - finvar.lib: new functions for computing minimal generating sets of
 invariant rings of finite groups in the non-modular case:
 invariant_algebra_reynolds for finite matrix groups and
 invariant_algebra_perm for permutation groups
 operation for sparse matrices improved: multiplication, prune,
 conversion to module

 If you have questions or comments, please send them to the Cygwin
 mailing list at: [EMAIL PROTECTED] .

   *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

 If you want to unsubscribe from the cygwin-announce mailing list, look
 at the List-Unsubscribe:  tag in the email header of this message.
 Send email to the address specified there. It will be in the format:

 [EMAIL PROTECTED]

 If you need more information on unsubscribing, start reading here:

 http://sources.redhat.com/lists.html#unsubscribe-simple

 Please read *all* of the information on unsubscribing that is available
 starting at this URL.
 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] jsmath 3.4.c

2007-08-02 Thread Alec Mihailovs

jsMath3.4c is available,

http://sourceforge.net/project/showfiles.php?group_id=172663

while SAGE is using 3.3 version, I think.

By the way, I put Tex-fonts from 
http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html and 
http://www.math.union.edu/~dpvc/jsMath/download/extra-fonts/welcome.html in 
the .fonts directory in my home directory and Firefox seems to be using 
them - I didn't test that, but the warning message in the notebook (about 
using image fonts) has disappeared.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: computing the number of partitions of an integer

2007-07-31 Thread Alec Mihailovs

 Actually, even on my 32 bit core duo, the long double type seems to give
 64 bits of precision, so using it might help a little. Do you have any
 idea how to check at run/compile time what the precision of a double or
 a long double is?

Being an assembler programmer, I can say definitely that all FPU registers 
on x86 are 80-bit and all compilers that I know compile long double as 
80-bit numbers.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: computing the number of partitions of an integer

2007-07-31 Thread Alec Mihailovs

From: Alec Mihailovs [EMAIL PROTECTED]

 Being an assembler programmer, I can say definitely that all FPU registers
 on x86 are 80-bit and all compilers that I know compile long double as
 80-bit numbers.

From other point of view, 80-bit real gives 64-bit precision in usual sense 
(mantissa), while a 64-bit double has 53-bit precision in usual sense.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: posible licence issue raised by GPL-v3

2007-07-29 Thread Alec Mihailovs

There is also a possibility to release a distribution under few different 
licenses - for example, a part as GPL3, a part as GPL 2, and a part as MIT 
or whatever. That, by the way, would allow including code from Microsoft 
Research.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: posible licence issue raised by GPL-v3

2007-07-29 Thread Alec Mihailovs

From: [EMAIL PROTECTED]


 Not always so.  Verbatim snippet from the horse's mouth:


 When we say that GPLv2 and GPLv3 are incompatible, it means there is no 
 legal way to combine code under GPLv2 with code under GPLv3 in a single 
 program. This is because both GPLv2 and GPLv3 are copyleft licenses: each 
 of them says, If you include code under this license in a larger program, 
 the larger program must be under this license too. There is no way to 
 make them compatible. We could add a GPLv2-compatibility clause to GPLv3, 
 but it wouldn't do the job, because GPLv2 would need a similar clause.

 Fortunately, license incompatibility only matters when you want to link, 
 merge or combine code from two different programs into a single program. 
 There is no problem in having GPLv3-covered and GPLv2-covered programs 
 side by side in an operating system. For instance, the TeX license and the 
 Apache license are incompatible with GPLv2, but that doesn't stop us from 
 running TeX and Apache in the same system with Linux, Bash and GCC. This 
 is because they are all separate programs. Likewise, if Bash and GCC move 
 to GPLv3, while Linux remains under GPLv2, there is no conflict.

 http://www.gnu.org/licenses/rms-why-gplv3.html

Well, I wouldn't call SAGE a single program. Besides, that's exactly what 
commercial CAS's do. In particular, Maple includes gmp and a series of other 
programs under separate licenses.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: posible licence issue raised by GPL-v3

2007-07-29 Thread Alec Mihailovs

From: Bobby Moretti [EMAIL PROTECTED]

 Well, I wouldn't call SAGE a single program.

 The issue is complicated, and I doubt a lawyer would agree.

 Besides, that's exactly what
 commercial CAS's do. In particular, Maple includes gmp and a series of 
 other
 programs under separate licenses.

 gmp is licensed under the GNU LGPL, which is GPL without the linking
 requirements, so Maple can do what they want, as long as they don't
 modify GMP. If they modify GMP, then they have to publish their
 changes under the LGPL, but they can leave the maple core alone.

I agree that including gmp in Maple wasn't a good example. Nevertheless, 
SAGE AFAICT is a distribution of various programs rather than a single 
program. Something like, say, TEX Live, that doesn't have a single license, 
see http://www.tug.org/texlive/LICENSE.TL

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: posible licence issue raised by GPL-v3

2007-07-29 Thread Alec Mihailovs

From: Bobby Moretti [EMAIL PROTECTED]

 It would be one thing if SAGE was just a distribution of software,
 with a package management system. But SAGE contains (lots) of code
 that wraps these libraries and provides a unified interface to them.
 I'm fairly confident that this falls under the GPL's concept of
 'linking'.

That's not exactly clear (at least for me). Anyway - it seems mostly a 
theoretical problem. From practical point of view, if SAGE would use 
different FSF licences for different parts of it, it seems impossible that, 
say, PARI, or GAP, would sue it for that. Axiom - maybe (just a joke :), but 
it doesn't seem to be a part of SAGE.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: computing the number of partitions of an integer

2007-07-26 Thread Alec Mihailovs

From: Mike Hansen [EMAIL PROTECTED]

 I'm not sure where the bottleneck in PARI is since I can't imagine
 Mathematica uses a different method to compute the number of
 partitions.

I don't know what is used in the latest Mathematica version, but originally 
NumberOfPartitions function in the Combinatorica package used the recursion 
with pentagonal numbers, see

http://www.cs.uiowa.edu/~sriram/Combinatorica/NewCombinatorica.m

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE Documentation brainstorming

2007-07-25 Thread Alec Mihailovs

 MediaWiki
 
 There is already a site that wove together Mathematica and MediaWiki.
 The same could probably be done for SAGE. Of course, that site hasn't
 done so well because the Mathematica user base is so small ...

Assuming that SAGE's user base is larger?

Alec

--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE Documentation brainstorming

2007-07-24 Thread Alec Mihailovs

May I suggest to add timing to the examples in the documentation - that 
would be very useful.

For example, in recent discussion about Bell numbers on the math-fun list, 
it was noted that it takes a very long time to calculate bell(1000) in Maple 
while BellB[1000] in Mathematica is much faster. I looked at the 
corresponding section in SAGE Reference manual,

http://modular.math.washington.edu/sage/doc/html/ref/module-sage.combinat.combinat.html

and couldn't tell how much time it takes in SAGE (probably, rather long, 
because it wraps GAP's Bell.)

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: Kudos on a fabulous system!

2007-05-17 Thread Alec Mihailovs

 Great!  Make sure and subscribe to sage-support
   http://www.sagemath.org/lists.html

The only problem is that both sage-devel and sage-support seem to be having 
too much of flooding - I am checking my mailbox right now and the amount of 
postings there is comparable with the amount of spam that I get.

Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: Kudos on a fabulous system!

2007-05-17 Thread Alec Mihailovs

William,

Thank you!

 Fortunately this problem is very very easy to solve.  Go to

   http://groups.google.com/group/sage-support/subscribe

 where you see that one option is to receive all messages as one
 batch per day

That is what I should have been done from the very beginning.

Alec

PS Just read your reply to Richard Fateman - a very good reading (a great 
compensation for series of other not such interesting mailing list 
posts) -Alec 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: ianal but...

2007-02-19 Thread Alec Mihailovs

 (1) Is this license GPL compatible?  It seems like it might be.  It is 
 very
 free (much more so than the GPL).  What do you think?  I couldn't find
 anything definitive online...  One thing -- this license is very clear 
 about
 patent issues, which is comforting.

I am not ANAL, but it can be considered not as a law question, but as a 
simple mathematical problem.

Every licence has 3 sets of statements: permissions, restrictions, and 
warranties.

A license A is compatible for license B (i.e. code developed under license A 
can be included in the distribution licensed under licence B), if the set of 
restrictions of A is a subset of the set of restrictions of B, the set of 
permissions of B is a subset of the set of permissions of A, and the set of 
warranties of B is a subset of the set of warranties of A.

While the Microsoft Permissive License permissions and warranties include 
all the GPL permissions and warranties, it has restrictions that are not 
present in GPL that makes it not GPL-compatible.

Alec 



--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: new matrix constructor

2007-02-13 Thread Alec Mihailovs

- Original Message - 
From: Kyle Schalm [EMAIL PROTECTED]

 here is a matrix constructor i would like to see:

 Matrix(M, N, f):
   for i in range(1,M+1):
 for j in range(1,N+1):
   self[i][j] = f(i,j)   # or whatever the syntax is


 i might use it like this:

 A = Matrix(3, 3, lambda i,j: i+j)

In numpy, there is a similar construction for arrays (starting from 0),

fromfunction(f, (m,n))

It works rather slow for large arrays though (because f is evaluated in 
Python).

Alec 



--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] SAGE performance in cygwin

2007-02-06 Thread Alec Mihailovs

SAGE's version of Python in cygwin seem to be very slow. 

Look at the following time comparison for the following Python function, 

def m(n):
:  return [[j%n*n+(j+j-i)%n+1
: for j in range(i+(1-n)/2,i+(n+1)/2)] for i in range(n)]

First - in cygwin's ipython running cygwin's python,

In [7]: time a=m(201)
CPU times: user 0.03 s, sys: 0.00 s, total: 0.03 s
Wall time: 0.04

In [8]: time a=m(1001)
CPU times: user 0.83 s, sys: 0.02 s, total: 0.84 s
Wall time: 0.86

Now - in SAGE, 

sage: time a=m(201)
CPU times: user 1.83 s, sys: 1.38 s, total: 3.20 s
Wall time: 3.23
sage: time a=m(1001)
CPU times: user 44.34 s, sys: 37.17 s, total: 81.51 s
Wall time: 81.77

Alec Mihailovs 
http://mihailovs.com/Alec/ 



--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE performance in cygwin

2007-02-06 Thread Alec Mihailovs

From: William Stein [EMAIL PROTECTED]

 If you're using the SAGE command prompt, it's important to either
 set the constants outside of the loop (they all get wrapped in
 Integer( ... ), which slows things down), or put an r after them
 to make them raw literals.(We intend to automatically factor
 out setting of constants, but haven't implemented that yet.)

Yes, I was wrong.

sage -ipython (with SAGE's python) produces about the same timing as 
cygwin's python (as in Justin C. Walker's earlier reply)

In [4]: time a=m(201)
CPU times: user 0.02 s, sys: 0.00 s, total: 0.02 s
Wall time: 0.04

In [5]: time a=m(1001)
CPU times: user 0.88 s, sys: 0.00 s, total: 0.88 s
Wall time: 0.88

So what is the correct way to define m(n) in SAGE? Such things as m(201r) 
and m(1001r) work as slow as m(201) and m(1001),

sage: time a=m(201r)
CPU times: user 1.72 s, sys: 0.67 s, total: 2.39 s
Wall time: 2.51

sage: time a=m(1001r)
CPU times: user 47.06 s, sys: 20.03 s, total: 67.09 s
Wall time: 68.89

Alec





--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: SAGE performance in cygwin

2007-02-06 Thread Alec Mihailovs

William,

It appears that you answered to that question before I asked it.

Thank you very much! That was very useful.

With this version of m SAGE produces (odd) magic squares faster than Octave,

octave:1 t=cputime();a=magic(201);cputime()-t
ans = 0.32800
octave:2 t=cputime();a=magic(1001);cputime()-t
ans = 4.1410

Alec 



--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: maple and cygwin

2007-01-30 Thread Alec Mihailovs

From: Jaap Spies [EMAIL PROTECTED]

 Changed that line in '/cygdrive/c/Program\ Files/Maple\ 
 9/bin.win/cmaple9.exe $@'

I have it as

/cygdrive/c/Program Files/Maple 10/bin.win/cmaple.exe $*

 Now sage: maple.console() works.

But still sage: maple('1+1') doesn't work.

Alec 



--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---



[sage-devel] Re: maple and cygwin

2007-01-29 Thread Alec Mihailovs

From: Jaap Spies [EMAIL PROTECTED]

 Using Maple with Cygwin:

 [EMAIL PROTECTED] ~/sage
 $  /cygdrive/c/Program\ Files/Maple\ 9/bin.win/cmaple9.exe -t

 #--

 #--
 1+1;
 #--1+1;
 2
 quit;
 #--quit;
 bytes used=150424, alloc=196572, time=0.08

 I copied a file with contents '/cygdrive/c/Program\ Files/Maple\ 
 9/bin.win/cmaple9.exe -t'
 to /usr/local/bin

 There seems to be an issue with CR-LF or something.

That seems to be an issue with rxvt, too - in the cmd shell I see the same 
behavior as in Linux,

$ maple -t
#--1+1;
2
#--quit
bytes used=297088, alloc=327620, time=0.03

I usually prefer maple -q instead of maple -t. It works better as a filter 
and the output is prettyprinted,

$ echo 1+1; | maple -q
   2

 When run from within sage, sage waits and never gets the prompt #--

I can confirm that.

sage: !maple -q

works OK though (without a prompt).

Alec 



--~--~-~--~~~---~--~~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~--~~~~--~~--~--~---