Ask Your Question

CupOfCoffee's profile - activity

2020-05-16 10:04:11 +0100 received badge  Popular Question (source)
2020-05-16 10:04:11 +0100 received badge  Notable Question (source)
2019-01-16 13:30:02 +0100 received badge  Supporter (source)
2019-01-06 09:07:43 +0100 received badge  Nice Question (source)
2019-01-03 08:23:45 +0100 received badge  Student (source)
2019-01-03 08:13:40 +0100 asked a question Calling Sage from Java

Hello,

I am looking for a way to call Sage functions, such as constructing Polyhedra, from Java (on Windows). In more detail, I want to do the following:

  1. Input to Sage from Java: P1 = Polyhedron(vertices = [[0,2], [-1,0], [1,0], [0,0]])
  2. Retrieve in Java the Sage output: P1.Hrepresentation()

It would be optimal if I could call Sage directly somehow, but if it's necessary, I think a python wrapper could also work. It would be very kind if somebody could point me in the right direction, maybe with code snippets, as I am very new to the Sage Environment.

Thank you.