|
Boost Users : |
Subject: Re: [Boost-users] proto: analytical-only math functions
From: Hicham Mouline (hicham_at_[hidden])
Date: 2009-03-06 15:29:10
> ----- Original Message -----
> From: peter_foelsche_at_[hidden]
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] proto: analytical-only math functions
> Date: Fri, 6 Mar 2009 12:40:22 -0700
>
>
> Could the originator of this thread try to explain to me what he wants to
> accomplish?
> I still cannot figure any use case for proto.
>
> Peter
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.
Later, I will look at stochastic and partial differential equations and write functions to solve them analytically whenever possible...
proto will help me define terminals, the grammars for what are acceptable expressions.
regards,
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net