First time here? Check out the FAQ!

Ask Your Question
2

Enumerating lattice points in rational polytopes

asked 7 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
5

answered 7 years ago

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
Preview: (hide)
link

Comments

Thank you!

ProfHeimer gravatar imageProfHeimer ( 7 years ago )

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: 7 years ago

Seen: 674 times

Last updated: Oct 12 '17