Err: More than one value for the scalar constant -p-

Use this forum to post Vensim related questions.
Post Reply
tammof
Junior Member
Posts: 3
Joined: Mon Nov 20, 2006 8:36 am

Err: More than one value for the scalar constant -p-

Post by tammof »

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 »

:), 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 »

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 »

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 »

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 »

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.
Post Reply