How Do I Derive This Circuit Simulation Function for Newton's Method?

  • Context: Undergrad 
  • Thread starter Thread starter zckumling
  • Start date Start date
  • Tags Tags
    Derivative
Click For Summary
SUMMARY

This discussion focuses on deriving the derivative of a circuit simulation function using Newton's Method. The function presented is based on Kirchhoff's Current Law (KCL) and involves a lookup table implemented in C++. The user seeks assistance in differentiating the function, particularly regarding the dependency on the lookup table function, lookupIa(vgk). The conversation highlights the importance of clarifying which variable to differentiate and suggests a numerical approximation method for estimating derivatives.

PREREQUISITES
  • Understanding of Kirchhoff's Current Law (KCL)
  • Basic knowledge of calculus, specifically differentiation
  • Familiarity with C++ programming and lookup tables
  • Concept of Newton's Method for iterative solutions
NEXT STEPS
  • Study the principles of differentiation in calculus
  • Learn about numerical methods for estimating derivatives
  • Explore the implementation of Newton's Method in C++
  • Investigate the use of lookup tables in circuit simulations
USEFUL FOR

Engineering students, circuit designers, and software developers working on circuit simulation and numerical methods in C++.

zckumling
Messages
1
Reaction score
0
Hi, this is my first post on this forum ..

My education is ship-electrician, I'm not starting calculus until next semester when I start on my engineering degree .. I've started reading stuff on my own and I'm doing a circuit simulation ..

Here's my function: (KCL)
[tex] {\frac {{\it vaa}-{\it vout}}{{\it ra}}}-{\it lookupIa} \left( {\it <br /> vgk} \right) -{\frac {{\it vout}}{{\it rload}}}=0[/tex]

I need help to find the derivative of this function to use it with a Newton method iteration..

lookupIa(vgk), is my lookuptable in C++ and I have no clue how to solve this function when it depends on a second function.. ;)

I'm a complete idiot on this subject at the moment, any help on this and I'm forever grateful!
 
Physics news on Phys.org
Welcome to Physics Forums :smile:

I looked at your question a couple of days ago, but am having a little trouble understanding it. Some things that are not clear to me are:
What is "this function" that you want to find the derivative of? lookupIa(vgk), or Vout, or the entire left-hand-side of the equation? Or something else?

What are you taking the derivative with respect to, is it time or something else?

What is vgk?​
That being said ... I don't know if this helps any, but a pretty good estimate of the derivative of f(x), when f is given in a table, would be
f'(xi) ≈ (f(xi+1) - f(xi-1)) / (xi+1 - xi-1)


By the way, thanks for providing a little background about yourself. I find it's easier to help somebody if I know a little about where they're coming from.
 

Similar threads

Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K