Re: Help with Differentiation
Markus Werle <[email protected]> Mon, 12 Dec 2005 13:23:34 +0000 (UTC)
| Newsgroups | gmane.comp.lib.daixtrose.help |
|---|---|
| Message-ID | <[email protected]> |
John Fletcher <J.P.Fletcher <at> aston.ac.uk> writes: > I am attempting to use this as hinted in the manual. > > Ideally I would like to be able to have a vector of functions and a > vector of differentials and generate the matrix of all the > differentials. One problem is that it seems that the return type of > > Simplify(Diff(f,x)) > > will be different for each expression. > > Have I missed something? No. You stumbled over the problem how to cross the compile-time/runtime boundary. Daixtrose proviodes glue code to add polymorphic behaviour via ChangeDisambiguation (see the docs). > Then I will want to get numerical values for particular cases, so I > will need to add a value to the symbol. I have done that, but don't > have any example how then to evaluate the expressions. You do not need to add any members to the symbol. In order to show you how to achieve vector-valued access to values I added new examples in src/demos/Solver. I also fixed daixtrose to work with gcc-3.4.4 and boost-1.33.0. So please check out the cvs in order to get rid of a lot of troubles. Do not hesitate to ask further questions. best regards, Markus ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click