Quantcast
Channel: KVR Audio
Viewing all articles
Browse latest Browse all 5447

DSP and Plugin Development • multiple unknowns in newton raphson loop

$
0
0
How do you converge newton raphson when there is more than one value to solve for? specifically in this example. what part of the equation do I focus on? jacobian matrix necessary?

From andy simpers adc talk.

Code:

tick(input):v1 = input;v2 = 0;v3 = 0;nr loop:  vd1 = (0 - v3);  ed1 = exp(vd1/vt1);  id1 = is1*ed1 - is1;  gd1 = is1*ed1/vt1;  id1eq = id1 - gd1*vd1;  vd2 = (v3 - 0);  ed2 = exp(vd2/vt2);  id2 = is2*ed2 - is2;  gd2 = is2*ed2/vt2;  id2eq = id2 - gd2*vd2;  v2 = solve for v2 using equations; //able to get this  v3 = solve for v3 using equations; // able to get thisic1eq += minv*(gc1*(v3 - v2) - ic1eq);ic2eq += minv*(gc2*(v3 - 0) - ic2eq);

Statistics: Posted by Marvinh — Thu Sep 19, 2024 1:15 pm — Replies 5 — Views 145



Viewing all articles
Browse latest Browse all 5447

Trending Articles