Enter the vast world of programming languages by following the tutorials provided here to learn about functional programming in Haskell.
Design a function that takes in two integers, p and q, and returns the difference p-q. Assume that p-q = 0 if p < q. Also, assume that p, q >= 0. For example, subtr 2 5 = 0.
Using your subtraction function, create another function that takes in two integers, p and q such that p, q >= 0, and returns wheter p is strictly greater than q.
The logistic map, as mentioned in a previous post, is given by the following equation:
xn+1 = rxn(1 - xn)
Write a Haskell function that takes in an initial x0, constant r, and index n to compute xn+1.