# Functions in GAP [closed]

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

Functions in GAP [closed]

close date 2019-11-15 14:05:44.254899

Asked: ** 2019-11-12 21:30:04 +0100 **

Seen: **64 times**

Last updated: **Nov 12 '19**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

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.

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.

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

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