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

Illegal Math Expression Error for 10^-x #4

Closed
henryricca opened this issue Mar 18, 2018 · 3 comments
Closed

Illegal Math Expression Error for 10^-x #4

henryricca opened this issue Mar 18, 2018 · 3 comments

Comments

@henryricca
Copy link

MSX doesn't appear to be able to handle expressions in the form of 10^-x. It handles expressions in the the form of 10^x fine. We discovered this when trying to incorporate temperature dependent equilibrium constants in a chloramine decay model. The following 3 files are in the attached .zip folder, which highlight the issue.

chloramine.inp - EPANET input file for the simple example network provided with the manual

chloramine_temp_issue.msx - MSX input file that produces the error discussed above

chlormaine_temp_issue.rep - report file generated from running 'chloramine.inp' with 'chloramine_temp_issue.msx'. This shows the errors generated when including expressions in the form of 10^-x

Negative_Power_Issue.zip

@samhatchett
Copy link
Member

possible dupe of #1

@bradleyjeck
Copy link

I ran across something similar working on a paper on temp, chlorine decay, and DBP formation. The work-around was to use extra parentheses e.g. ( 10^(-x)) instead of 10^-x.

@henryricca
Copy link
Author

Thanks for the quick reply, adding the extra parentheses seems to have solved it!

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

3 participants