#13117: lrs_volume does not work with long numbers
---------------------------------+------------------------------------------
Reporter: dkrenn | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-5.1
Component: optional packages | Keywords: lrs volume long numbers
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
---------------------------------+------------------------------------------
The following (minimal) example does not work:
{{{
sage: prec = 24
sage: Polyhedron(vertices=[[10^prec,0], [0,10^prec], [-10^prec,0],
[0,-10^prec]]).lrs_volume(verbose=True)
V-representation
begin
4 3 rational
1 1000000000000000000000000 0
1 0 1000000000000000000000000
1 -1000000000000000000000000 0
1 0 -1000000000000000000000000
end
volume
*lrs:lrslib v.4.2b, 2006.10.31(32bit,lrsmp.h)
*Copyright (C) 1995,2006, David Avis [email protected]
*Input taken from file /home/daniel/.sage//temp/nops/2917//tmp_0
*volume
H-representation
begin
***** 3 rational
1000000000000000000000000 1 -1
1000000000000000000000000 1 1
Overflow at digits=100
Initialize lrs_mp_init with n > 100L
Traceback (most recent call last)
...
ValueError: lrs did not return a volume
}}}
It seems, that the lines cannot be longer than 100 characters and that
that is somewhere hard-coded. It would be good if that can be changed
somewhere.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13117>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.