[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling fsolve from C++
From: |
vicmota |
Subject: |
Re: Calling fsolve from C++ |
Date: |
Sat, 3 May 2014 07:24:56 -0700 (PDT) |
I've seen this example.
I use this to call /fzero /and it works:
octave_value_list fzero_args;
octave_value_list fcn;
fcn(0) = "x^7/(x-8) - 5*x + 143";
fzero_args(0) = Finline(fcn, 1)(0);
fzero_args(1) = octave_value(3);
octave_value_list zero = feval("fzero", fzero_args, 2);
printf("ans = %.3lf\n", zero(0).double_value());
But please note that I pass an inline function handle to /feval/, with 1
equation and 1 variable (x).
What I wish to do is to define a set of functions in C++ to pass through
/feval /to /fsolve/ (aka System of non-linear equations).
Is this even possible?
--
View this message in context:
http://octave.1599824.n4.nabble.com/Calling-fsolve-from-C-tp4663888p4663892.html
Sent from the Octave - General mailing list archive at Nabble.com.