Ask Your Question
2

Enumerating lattice points in rational polytopes

asked 2017-10-11 22:04:05 -0600

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
4

answered 2017-10-12 01:47:54 -0600

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 08:32:29 -0600 )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-11 22:04:05 -0600

Seen: 51 times

Last updated: Oct 12