Use this forum to post Vensim related questions.
tammof
Junior Member
Posts: 3 Joined: Mon Nov 20, 2006 8:36 am
Post
by tammof » Mon Nov 20, 2006 8:38 am
Hy,
does anyone know how to solve this?
Or is there any other way to use pi in equations than to model it with an auxiliary constant.
Thanks for the help,
cheers.
tammof
Junior Member
Posts: 3 Joined: Mon Nov 20, 2006 8:36 am
Post
by tammof » Mon Nov 20, 2006 8:40 am
, use "." instead of "," is helpfull.
But the second question is still open.
Anyone?
Administrator
Super Administrator
Posts: 4838 Joined: Wed Mar 05, 2003 3:10 am
Post
by Administrator » Mon Nov 20, 2006 8:49 am
Can you explain the question in a bit more detail?
I've always just set up a constant for pi when I need to use it.
Tony.
tammof
Junior Member
Posts: 3 Joined: Mon Nov 20, 2006 8:36 am
Post
by tammof » Mon Nov 20, 2006 9:23 am
Hy,
the problem is that there is a floating point error in the simulation when using p=3.14159 in an auxiliary constant. I guess i just have to cut the amount of numbers after the point maybe to p=3.142.
Tammo
[Edited on 11-20-2006 by tammof]
Administrator
Super Administrator
Posts: 4838 Joined: Wed Mar 05, 2003 3:10 am
Post
by Administrator » Mon Nov 20, 2006 10:06 am
Are you sure that the constant is causing the floating point error?
Can you post the model that fails so we can take a look?
Tony.
bob@vensim.com
Senior Member
Posts: 1107 Joined: Wed Mar 12, 2003 2:46 pm
Post
by bob@vensim.com » Tue Nov 21, 2006 10:53 am
At a guess you entered
pi = 3,14159
with a , to specify what we americans call the decimal point. Vensim uses , to separate things so it sees
3 , 14159
two numbers - thus the message.