First time here? Check out the FAQ!

Ask Your Question
1

How to use LRS engine in Sage?

asked 3 years ago

asdfsa gravatar image

updated 3 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 3 years ago

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.

Preview: (hide)
link

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

Seen: 243 times

Last updated: Dec 09 '21