Analog circuits (and op-amps just generally) are surprising cool. I know, kind of off on a tangent here but I have integration on the brain lately. You say "4 lines of Python", and I say "1 op-amp".)
[0] https://www.amazon.com/Electronic-Analog-Computers-D-c/dp/B0...
A single artificial neuron could be implemented as:
Weighted Sum
Using a summing amplifier:
net = Σ_i (Rf/Ri * xi)
Where resistor ratios set the synaptic weights.
Activation Function
Common op-amp activation circuits:
Saturating function: via op-amp with clipping diodes → approximated sigmoid
Hard limiter: comparator behavior for step activation
Tanh-like response: differential pair circuits
Learning
Early analog systems often lacked on-device learning; weights were manually set with potentiometers or stored using:
Memristive elements (recent)
Floating-gate MOSFETs
Programmable resistor networks
I'd be interested in this. So finding classical closed form solutions is the actual thing desired there?
It's not that finding closed form solutions is what matters (I don't think most path integrals would have closed form solutions), but that the integration is done over the space of functions, not over Euclidian space (or a manifold in Euclidian space, etc...)
Conversely, good symbolic integration is hard, because you can get stuck and have to try another route through a combinatoric maze. Good symbolic differentiation is easy, because just applying the next obvious operation usually converges.
Huh.
Mandatory XKCD: [1]
- Differenting a function composed of simpler pieces always "converges" (the process terminates). One just applies the chain rule. Among other things, this is why automatic differentiation is a thing.
- If you have an analytic function (a function expressible locally as a power series), a surprisingly useful trick is to turn differentiation into integration via the Cauchy integral formula. Provided a good contour can be found, this gives a nice way to evaluate derivatives numerically.
Then just divide by powers of that irrational number until you have something that looks rational. That'll give you a and n. It's more or less numerical dimensional analysis.
It's not that useful for complicated integrals, but when you're feeling lazy it's a fucking godsend to know what the answer should be before you've proven it.
EDIT: s/irrational/transcendental/
See, for example, https://ww3.math.ucla.edu/camreport/cam98-19.pdf