Skip to content
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
Closed

Wrong statement about unit default #59

casella opened this issue Apr 2, 2014 · 0 comments

Comments

@casella
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant