How idt is behaving like this?

Hi,

Why?


image
image

idt is time integral and ddt is time derivite. mixed this up?

A, I see, yes…now its better, they match


But in the case of idt seems to be still a mistmatch:


image
image
image
image

integration needs to consider initial condition. V=idt(V(sin),-1/2/pi,0)*(-2*pi), add -1/2/pi as initial condition. [you can just use V=idt(V(sin),-1/2/pi)*(-2*pi), if you don’t need to reset integrator during simulation.

image

Ok, understood, thanks