Ask Your Question
1

How to use LRS engine in Sage?

asked 2021-12-09 14:34:17 +0100

asdfsa gravatar image

updated 2021-12-09 17:53:51 +0100

slelievre gravatar image

I run Sage on my MacOS using terminal. As part of a project I am doing, I need to use the lrs engine:

def getVolume(self,eng='lrs'):
    """
    needs Sage 5.9 for 'lrs' engine
    """
    return self.poly.volume(engine=eng)*factorial(self.poly.dim())

However, this getVolume() function does not seem to work and always returns 0. So, I did some research and I am pretty sure my system does not have the Lrs engine at all. I checked for Lrs using this code: https://doc.sagemath.org/html/en/refe... and it told me that Lrs is not there.

I am quite confused about this since I downloaded Sage very recently (just 1-2 months ago) and it should be there? Am I doing something wrong? If it needs to be installed, how would I go about downloading this library so I can use it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-12-09 17:59:22 +0100

slelievre gravatar image

In Sage, LRS is provided by the lrslib optional package.

If you are building Sage from source, change to the Sage root directory and run the following:

$ make configure  # or ./bootstrap
$ ./configure --enable-lrslib -q
$ make -s V=0

(Do not type the dollar signs, which in the code block above represent the shell prompt.)

If you installed Sage from the Sage-macOS app, you will need to build from source, as the app currently only support installing extra packages if they can be installed using pip.

edit flag offensive delete link more

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: 2021-12-09 14:34:17 +0100

Seen: 217 times

Last updated: Dec 09 '21