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

feat: add the Vensim POWER functions as a C macro #286

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

ToddFincannonEI
Copy link
Collaborator

@ToddFincannonEI ToddFincannonEI commented Dec 8, 2022

Fixes #283

I added a C macro for the Vensim POWER function. The Vensim docs discuss special cases for integer and 0.5 exponents, but these seem to be unnecessary, as the C pow function duplicates Vensim results. I added a power test model to demonstrate it.

Copy link
Contributor

@chrispcampbell chrispcampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I'll merge it now.

@chrispcampbell chrispcampbell merged commit 8fc1ee8 into main Dec 8, 2022
@chrispcampbell chrispcampbell deleted the todd/283-power branch December 8, 2022 21:09
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

Successfully merging this pull request may close these issues.

Add support for the Vensim POWER function
2 participants