Ask Your Question
2

Enumerating lattice points in rational polytopes

asked 2017-10-12 05:04:05 +0100

ProfHeimer gravatar image

Is there a way to ask Sage to count the number of lattice points in a rational polytope, say a polytope with vertices (0,0,0,0), (0,0,0,7), (0,0,7/2,7/2), (0,7/3,7/3,7/3),(7/4,7/4,7/4,7/4)?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2017-10-12 08:47:54 +0100

vdelecroix gravatar image

There is

sage: P = Polyhedron([(0,0,0,0), (0,0,0,7), (0,0,7/2,7/2), (0,7/3,7/3,7/3),(7/4,7/4,7/4,7/4)])
sage: P.integral_points_count()
38
edit flag offensive delete link more

Comments

Thank you!

ProfHeimer gravatar imageProfHeimer ( 2017-10-12 15:32:29 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-10-12 05:04:05 +0100

Seen: 655 times

Last updated: Oct 12 '17