Functions in GAP [closed]

asked 5 years ago

hayyambey gravatar image

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)?

Preview: (hide)

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 ( 5 years ago )

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 ( 5 years ago )

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

Iguananaut gravatar imageIguananaut ( 5 years ago )
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 ( 5 years ago )