On Sun, Jun 6, 2010 at 9:03 AM, NAKAMULA, Ken
<nakam...@tnt.math.metro-u.ac.jp> wrote:
> Dear number theorists,
>
> We are pleased to announce the release of NZMATH 1.0.
>
> NZMATH is a Python based system for number theory developed for six
> years.  Various modules useful for number theory are included in
> NZMATH package.  This time, we release its first stable version 1.0
> officially.  It can be used easily even for programming beginners.
> Please try it!
>
> Download
> ========
> You can download NZMATH from [...]


And, since NZMATH is a Python library, you can also very easily use it
in Sage (http://sagemath.org).

sage: install_package('nzmath-1.0.0')
sage: import nzmath.prime
sage: nzmath.prime.nextPrime(1000)
1009
sage: import nzmath.matrix
sage: preparser(False)
sage: A = nzmath.matrix.Matrix(2, 2, [1, 2]+[5, 6]); A
[1, 2]+[5, 6]
sage: import nzmath.ecpp
/Users/wstein/sage/build/sage/local/lib/python2.6/site-packages/nzmath/real.py:214:
DeprecationWarning: RelativeError is deprecated
  warnings.warn(DeprecationWarning("RelativeError is deprecated"))
python(7449,0x7fff7093bbe0) malloc: *** mmap(size=14148475504058368)
failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
MemoryError

[[Bummer, since ECPP = Elliptic Curve Primality Proving is one thing I
know of that NZMATH has that Sage doesn't...]]

sage: import nzmath.round2
sage: nzmath.round2.round2([1,2,5,1])
([[Rational(1, 1), Rational(0, 1), Rational(0, 1)], [Rational(0, 1),
Rational(1, 1), Rational(0, 1)], [Rational(2, 3), Rational(0, 1),
Rational(1, 3)]], Rational(-31, 1))
sage: import nzmath.factor
sage: x = int(next_prime(10**5)*next_prime(10**12)); x
100003000003900117
sage: nzmath.factor.ecm.ecm(x)
100003L
sage: nzmath.factor.find.trialDivision(x)
100003
sage: nzmath.factor.mpqs.mpqs(x)
[(100003L, 1), (1000000000039L, 1)]
sage: import nzmath.permute
sage: nzmath.permute.PermGroup(['a','b','c','d','e'])
['a', 'b', 'c', 'd', 'e']


 -- William


-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

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

Reply via email to