Re: Help with Differentiation
Markus Werle <[email protected]> Tue, 13 Dec 2005 16:28:12 +0000 (UTC)
| Newsgroups | gmane.comp.lib.daixtrose.help |
|---|---|
| Message-ID | <[email protected]> |
John Fletcher <J.P.Fletcher <at> aston.ac.uk> writes: > > Markus > > Thank you for the reply. The new examples help a lot to understand > how to use it. You are welcome. > I would like to be able to have expressions with constants e.g. > > x + y + 1 > > but that will not compile. You need to use Scalar: typedef Daixt::Scalar<DisambiguatedVariable> MyScalar; x + y + MyScalar(1.0) should work, please try. Alternatively (as can bee seen in Scalar.h) it suffices to say using namespace Daixt::Convenience; ... (x + y + 1.0); hope this helps ------------------------------------------------------- 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