First time here? Check out the FAQ!

Ask Your Question
0

Import GMP library

asked 13 years ago

wassim gravatar image

I have already installed the GMP library, Now i want to import this library to sage project i tried to put :

  import libgmpxx.so.4

  libgmpxx.so.4.path.append('usr/local/lib/')

but it does'nt work unfortunately, how can i do that. regards

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 13 years ago

Jason Grout gravatar image

What are you trying to do with the library? You can't import it like that, but you can interact with it as a C library using Cython. You'd have to "cimport" a specific function from the gmp header files.

Sage comes with MPIR (a fork of GMP) and uses that to implement the RealNumbers.

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

Stats

Asked: 13 years ago

Seen: 1,041 times

Last updated: Oct 12 '11