I am attempting to create an algorithm which given the value of $a \in \mathbb{R}$ and $b \in \mathbb{N}$, calculate $a^n$.
So for example, using the Java language pattern, the algorithm will be defined as follows:
public double exp(float a, int n) {
...
}
But I am unable to determine what would be possible sub-problems of this problem as there is not set from which I can create subsets.
How can I achieve this using a divide and conquer method?