In this problem you must implement several functions in Python.
Write a function @absValue(x)@ that, given a number, returns its absolute value.
Write a function @power(x, p)@ that, given a number and a natural , returns raised to , that is, .
Write a function @isPrime(x)@ that, given a natural, returns a Boolean that tells whether it is a prime number or not.
Write a function @slowFib(n)@ that, returns the -th element of the Fibonacci sequence using the recursive algorithm according to its definition (, , for ).
Write a function @quickFib(n)@ that, returns the -th element of the Fibonacci sequence using a faster algorithm.
Each function scores 20 points.
>>> absValue(-666) 666 >>> power(2, 3) 8 >>> isPrime(17) True >>> slowFib(5) 5 >>> quickFib(40) 102334155