It works for me. Did you notice the sign change?
well i don't know what i'm not seeing, because when i use the formula for B1, V = -idt(I(V2) + delay(I(V2), 10u))/20u, what i'm getting is this:
and the numbers show the same thing:
avi1: AVG(i(v2))=-0.00927139 FROM 0.01 TO 0.0101 <--- 10ms
avr1: i(r1)=23.9429 at 0.01 <-----V = -idt(I(V2) + delay(I(V2), 10u))/20u
avi2: AVG(i(v2))=-0.00904411 FROM 0.02 TO 0.0201 <--- 20ms
avr2: i(r1)=33.2628 at 0.02
avi3: AVG(i(v2))=-0.00918508 FROM 0.03 TO 0.0301 <--- 30ms
avr3: i(r1)=42.5975 at 0.03
when i use this formula for B1, V = idt(I(V2) - delay(I(V2), 10u))/10u, i get this:
which looks fairly accurate at a scale of 40ms, but at 400ms, it looks like this:
so neither formula seems to be giving the average of the curve for the current I(V2) which is what i need to be able to do the circuit. it seems like such a simple thing, a basic integral. but it just ain't workin.
thanx alec