-----Original Message-----
From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Eric Niebler
Sent: 07 March 2009 02:32
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] proto: analytical-only math functions

Hicham Mouline wrote:

>

> Step1 is to have a derivative metafunction which computers the nth

> derivative of a function at compile time.

>

> In order to do that, I need a mathematical language to write my

> functions.

>

> so I have constants, variables, basic_functions and user-defined

> functions that are terminals of my language

>

> f(x) = log(x);

>

> g(x) = derivative(1, f, x);

>

> g(x) will be 1/x;

>

> I should manage to run derivative purely in compile time.

For now, I am still focusing on constants.

Thanks very much,