Author |
Topic |
|
nabilou
France
5 Posts |
Posted - 01/18/2013 : 07:29:57 AM
|
well my problem is the following:
I have 3 columns, A, B and C A is X: x B is Y: f(x) Y is C: g(x)
knowing that f(x) depends on g(x) as follow:
f(x) = 1/Ln(g(x)) g(x) = [(f(x)/a)^(-1/2)]*b
I need to plot the two curves, but it was not easy because the two are not independent.
by cons, I thought of a solution to the problem. If I know the two initial values #8203;#8203;of f(x) and g(x), I can do it.
here's how:
A; B; C 1; b1=5; c1=3; 2; b2; c2; 3; b3; c3; 4; b4; c4; 5; b5; c5;
therefore, to calculate the value b2, I should use c1 = 3 , and to calculate the value c2 I should use b2. to calculate the value b3, I should use c2, and to calculate the value c3 I should use b3. and so on
the problem now is that I do not know how I do ...! should I use set values ? C++ ? LabTalk ?
Thanks |
|
greg
USA
1378 Posts |
Posted - 01/21/2013 : 10:48:38 AM
|
Your statement "to calculate the value b3, I should use c2" violates the function definition since b3 is a function of x3 while c2 is a function of x2.
Circular functions generally require iteration with some sort of convergence detection code. |
|
|
|
Topic |
|
|
|