Page 1 of 1
Delay1 and Smooth
Posted: Fri Jun 12, 2020 10:02 am
by Alisib
Hi
when I compare DelayI and smooth, I do not get a different answer, they are the same, what is the difference?
thx
Re: Delay1 and Smooth
Posted: Fri Jun 12, 2020 10:06 am
by Administrator
There are details on both functions in the help system, it's best to take a look at that to see the differences.
Re: Delay1 and Smooth
Posted: Fri Jun 12, 2020 10:14 am
by Alisib
thanks,I wonder if you could tell me where it is.
Because I saw the help but did not find my answer
thx
Re: Delay1 and Smooth
Posted: Fri Jun 12, 2020 12:56 pm
by tomfid
https://www.vensim.com/documentation/fn_delay1.htm
Code: Select all
DELAY1=LV/delay time
LV=INTEG(input-DELAY1,input*delay time)
DELAY1I=LV/delay time
LV=INTEG(input-DELAY1I,initial value*delay time)
https://www.vensim.com/documentation/fn_smooth.htm
Code: Select all
SMOOTH=INTEG((input-SMOOTH)/delay time,input)
SMOOTHI=INTEG((input-SMOOTHI)/delay time,initial value)
The difference arises if the delay time changes - try a step in the delay time.
Re: Delay1 and Smooth
Posted: Fri Jun 12, 2020 4:37 pm
by Alisib
thanks that worked.