Can GAP compute logarithms?

111 Views Asked by At

I have been using GAP lately and I know how to compute logarithms, but only in some cases by using the function LogInt(n,b).

So for example if $n=5^8$ and $b=5$, then

LogInt($5^8$, $5$)=$8$.

But imagine I want to compute $\log_3(5)=1,46...$. If I put LogInt($5$, $3$) I get $1$. Is there any function or package that can give me a better approximation?

Thank you!

1

There are 1 best solutions below

0
On

As far as i have found, GAP's standard mathematical operations for Floats (Link to documentation) only includes:

  • Log(); Natural logarithm
  • Log2(); Logarithm base 2
  • Log10(); Logarithm base 10
  • Log1p(); Logarithm base ??

Besides that i didn't found any libaries for other logarithms