I'd probably forget Lambert W and if you actually need to solve this on the fly (ie. not just approximate with a pre-computed wave-shaper) then iterate the MNA matrix with Newton directly... but a lot of people seem convinced that Lambert W is somehow useful, so please don't listen to me (just.. don't use a Lambert W implementation that runs NR anyway; that's just pointless).Marvinh wrote: Thu Dec 05, 2024 12:53 am It is iterating to a solution every time I call the Lambertw I am trying to prevent that with a cheaper guess or do it all in one iteration or split to 2 and 4 series
I kinda doubt the pivot-trick would work here. You could take a different approach and lump the transistors in equation (15) based on exp(v)+exp(-v)=2*cosh(v) rather than going lambda, which in principle gives you a nice function to approximate, but given that the overall response of the shaper is non-monotonic, I suspect you might run into some stability issues.
