Creating a table from a function.

For logging the scalar function return a stored and table valued function