#9165: cygwin: lcalc does not work for elliptic curves on cygwin
-------------------------+-------------------------------------------------
Reporter: was | Owner: tbd
Type: | Status: closed
defect | Milestone: sage-duplicate/invalid/wontfix
Priority: minor | Resolution: worksforme
Component: | Merged in:
porting: Cygwin | Reviewers: Karl-Dieter Crisman, Jean-Pierre
Keywords: | Flori
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------+-------------------------------------------------
Description changed by chapoton:
Old description:
> lcalc works fine for the zeta function on cygwin, evidently:
>
> {{{
> sage: time lcalc.zeros(4)
> CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
> Wall time: 0.19 s
> [14.1347251, 21.0220396, 25.0108576, 30.4248761]
> }}}
>
> However, it doesn't work for computing with elliptic curves:
>
> {{{
> sage -t "devel/sage/sage/lfunctions/lcalc.py"
> *** not enough memory
> *** not enough memory
> *** not enough memory
> **********************************************************************
> File "/home/wstein/sage-4.4.3/devel/sage/sage/lfunctions/lcalc.py", line
> 120:
> sage: lcalc.zeros(3, EllipticCurve('37a')) # long
> Expected:
> [0.000000000, 5.00317001, 6.87039122]
> Got:
> []
> **********************************************************************
> File "/home/wstein/sage-4.4.3/devel/sage/sage/lfunctions/lcalc.py", line
> 229:
> sage: E.lseries().values_along_line(0.5, 3, 5)
> Expected:
> [(0, 0.209951303),
> (0.500000000, -...e-16),
> (1.00000000, 0.133768433),
> (1.50000000, 0.360092864),
> (2.00000000, 0.552975867)]
> Got:
> lcalc:
> []
> **********************************************************************
> File "/home/wstein/sage-4.4.3/devel/sage/sage/lfunctions/lcalc.py", line
> 374:
> sage: lcalc.analytic_rank(E)
> Exception raised:
> Traceback (most recent call last):
> File "/home/wstein/sage-4.4.3/local/bin/ncadoctest.py", line 1231,
> in run_one_test
> self.run_one_example(test, example, filename, compileflags)
> File "/home/wstein/sage-4.4.3/local/bin/sagedoctest.py", line 38,
> in run_one_example
> OrigDocTestRunner.run_one_example(self, test, example, filename,
> compileflags)
> File "/home/wstein/sage-4.4.3/local/bin/ncadoctest.py", line 1172,
> in run_one_example
> compileflags, 1) in test.globs
> File "<doctest __main__.example_8[3]>", line 1, in <module>
> lcalc.analytic_rank(E)###line 374:
> sage: lcalc.analytic_rank(E)
> File "/home/wstein/sage-4.4.3/local/lib/python/site-
> packages/sage/lfunctions/lcalc.py", line 381, in analytic_rank
> return Z(s[i+6:])
> File "integer.pyx", line 614, in
> sage.rings.integer.Integer.__init__ (sage/rings/integer.c:6388)
> TypeError: unable to convert x (=) to an integer
> **********************************************************************
> 3 items had failures:
> 1 of 5 in __main__.example_2
> 1 of 6 in __main__.example_5
> 1 of 4 in __main__.example_8
> ***Test Failed*** 3 failures.
> For whitespace errors, see the file
> /home/wstein/.sage//tmp/.doctest_lcalc.py
> [17.7 s]
> }}}
New description:
lcalc works fine for the zeta function on cygwin, evidently:
{{{
sage: time lcalc.zeros(4)
CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
Wall time: 0.19 s
[14.1347251, 21.0220396, 25.0108576, 30.4248761]
}}}
However, it doesn't work for computing with elliptic curves:
{{{
sage -t "devel/sage/sage/lfunctions/lcalc.py"
*** not enough memory
*** not enough memory
*** not enough memory
**********************************************************************
File "/home/wstein/sage-4.4.3/devel/sage/sage/lfunctions/lcalc.py", line
120:
sage: lcalc.zeros(3, EllipticCurve('37a')) # long
Expected:
[0.000000000, 5.00317001, 6.87039122]
Got:
[]
**********************************************************************
File "/home/wstein/sage-4.4.3/devel/sage/sage/lfunctions/lcalc.py", line
229:
sage: E.lseries().values_along_line(0.5, 3, 5)
Expected:
[(0, 0.209951303),
(0.500000000, -...e-16),
(1.00000000, 0.133768433),
(1.50000000, 0.360092864),
(2.00000000, 0.552975867)]
Got:
lcalc:
[]
**********************************************************************
File "/home/wstein/sage-4.4.3/devel/sage/sage/lfunctions/lcalc.py", line
374:
sage: lcalc.analytic_rank(E)
Exception raised:
Traceback (most recent call last):
File "/home/wstein/sage-4.4.3/local/bin/ncadoctest.py", line 1231,
in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/wstein/sage-4.4.3/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/wstein/sage-4.4.3/local/bin/ncadoctest.py", line 1172,
in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_8[3]>", line 1, in <module>
lcalc.analytic_rank(E)###line 374:
sage: lcalc.analytic_rank(E)
File "/home/wstein/sage-4.4.3/local/lib/python/site-
packages/sage/lfunctions/lcalc.py", line 381, in analytic_rank
return Z(s[i+6:])
File "integer.pyx", line 614, in sage.rings.integer.Integer.__init__
(sage/rings/integer.c:6388)
TypeError: unable to convert x (=) to an integer
**********************************************************************
3 items had failures:
1 of 5 in __main__.example_2
1 of 6 in __main__.example_5
1 of 4 in __main__.example_8
***Test Failed*** 3 failures.
For whitespace errors, see the file
/home/wstein/.sage//tmp/.doctest_lcalc.py
[17.7 s]
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/9165#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.