Skip to content

feat: implement NPV function#95

Merged
chrispcampbell merged 2 commits into
developfrom
todd/94-npv
Jul 27, 2021
Merged

feat: implement NPV function#95
chrispcampbell merged 2 commits into
developfrom
todd/94-npv

Conversation

@ToddFincannon
Copy link
Copy Markdown
Collaborator

@ToddFincannon ToddFincannon commented Jul 27, 2021

Fixes #94

This was a straightforward adaptation of the code for the TREND function with the added wrinkle of needing to generate two level vars instead of just one. This shows up when we add reference, but is otherwise unremarkable. The code for the NPV function is taken from the Vensim docs. I committed a test model that validates the expansion in the docs, but removed that in the final version, since we don't need it to validate SDEverywhere code generation.

@ToddFincannon ToddFincannon added this to the 0.6.0 milestone Jul 27, 2021
Copy link
Copy Markdown
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 to me. I verified that the new npv test passes as expected. I'll merge this to develop shortly.

@chrispcampbell chrispcampbell changed the title Todd/94 npv feat: implement NPV function Jul 27, 2021
@chrispcampbell chrispcampbell merged commit 9fa17eb into develop Jul 27, 2021
@chrispcampbell chrispcampbell deleted the todd/94-npv branch July 27, 2021 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement NPV

2 participants