Functions in GAP [closed]

asked 2019-11-12 21:30:04 +0100

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 14:05:44.254899

Comments

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 14:20:08 +0100 )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 16:21:04 +0100 )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 12:32:48 +0100 )edit
1

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 20:20:31 +0100 )edit