sorry for the confusing notation. I have chosen a vector subspace W of the reals containing π and such that every real has a unique expression as a sum a+b, where a is in the subspace Q spanned by the real number 1, and where b belongs got the subspace W. Then if x is any real number, we can write x = a+b (uniquely with a in Q and b in W), and then my function f takes x to e^a.π^b. In particular, an element x in Q goes to e^x, and an element x in W goes to π^x, i.e. for x in Q we have a =x and b =0, and for x in W we have a=0 and b = x.
This choice of W also gives a vector space isomorphism from R to the vector space Q+W defined as pairs (a,b) with a in Q and b in W, and I used that isomorphism to represent the real number x by the pair (a,b). I guess that was confusing. In that notation 3.14 was represented as (3.14, 0), and π was represented as (0, π).
The isomorphism takes Q+W-->R, by sending (a,b) in Q+W, to a+b in R. This definition of Q+W as a set of pairs, is called an "exterior" direct sum, and is usually written with a circle around the plus sign, but I can't do that. Some people write Q+W to mean the "interior" sum, meaning simply the subspace of R consisting of all sums a+b of elements a in Q and b in W. That would be the image of my map above Q+W-->R.
In general, if E,F are subspaces of a vector space V, then V is the direct sum of E and F if and only if either of these two things is true, (iff both are true):
1) Every vector x in V is expressible uniquely as a sum x =a+b, with a in E and b in F.
2) The map E+F-->V from the exterior direct sum E+F to V, taking (a,b) to a+b, is an isomorphism.