erfc function usage in Vensim

Use this forum to post Vensim related questions.
Post Reply
usmk
Junior Member
Posts: 4
Joined: Tue Nov 18, 2008 3:06 pm

erfc function usage in Vensim

Post by usmk »

Hi,

I am working with groundwater contamination and am trying to put together a model for this, which implements the complementary error function (erfc). This function is not offered in Vensim. In excel, the work-around would be to use a statistical function called NORMSDIST. But this function is also not available in Vensim. I am now thinking maybe the only solution is to use a LOOKUP function, and manually draw the erfc curve. Is this the best way to go? Or are there any other possibilities (i.e. plugins or something I might not know about)?

Many thanks in advance,
Ursula
tomfid
Administrator
Posts: 3811
Joined: Wed May 24, 2006 4:54 am

Re: erfc function usage in Vensim

Post by tomfid »

Here's a macro that implements the cumulative normal: http://models.metasd.com/cumulative-nor ... tribution/ ERF & ERFC are a simple transformation from there. The lookup approach also works OK for most purposes.
usmk
Junior Member
Posts: 4
Joined: Tue Nov 18, 2008 3:06 pm

Re: erfc function usage in Vensim

Post by usmk »

I forgot to say thanks for the help! It seems to be working fine as a Lookup curve...I am still planning to try out the macro solution anyway though.

USMK
Post Reply