New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong statement about unit default #59

Closed
casella opened this Issue Apr 2, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@casella

casella commented Apr 2, 2014

In http://beta.book.xogeny.com/behavior/equations/variables/, you state that the default for unit is "1". This is not true: the spec says the default is "", and rightly so, because saying dimensionless is different than saying unspecified dimension. If the default was "1", then this model would be wrong

Real m;
Force F;
Acceleration a;
equation
F = ma;

while it is actually ok, and the meaning of the default "" is that the compiler can actually infer that the unit of m is "kg". BTW, I would explain the meaning of unit="" explicitly in the text, and point out this difference.

@mtiller mtiller closed this in 0b4d593 Apr 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment