Functions in GAP [closed]

asked 2019-11-12 14:30:04 -0600

How can i write special numbers(Mersenne, Fibonacci etc.) or the average or the GCD's two different algorithm in GAP(Group, Algebra and Programming)?

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by Iguananaut
close date 2019-11-15 07:05:44.254899


Are you asking about using GAP in Sage, or just GAP in general? Also what would you like to implement exactly? Have you read the GAP tutorial section on defining functions? Also, have you looked in the GAP reference manual? Some things already exist (or in packages) though it depends on what you want to do.

Iguananaut gravatar imageIguananaut ( 2019-11-13 07:20:08 -0600 )edit

i've examined to the Reference book and Tutorial. i want to design two basic program, then compare the times. for example: GCD's two different algorithm.

hayyambey gravatar imagehayyambey ( 2019-11-13 09:21:04 -0600 )edit

Have you tried writing one of the GCD algorithms, then? If so, what specific problems did you encounter?

Iguananaut gravatar imageIguananaut ( 2019-11-14 05:32:48 -0600 )edit

Alhamdulillah, i wrote finding the mersenne primes(by the miller-rabin and lucas- lehmer) last night :) thank you for wanting to help, sir.

hayyambey gravatar imagehayyambey ( 2019-11-14 13:20:31 -0600 )edit