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(osmomath): mutative PowerIntegerMut function on osmomath.BigDec #3680

Merged
merged 1 commit into from
Dec 10, 2022

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Dec 9, 2022

Closes: #XXX

What is the purpose of the change

Context: #3676 (comment)

We would like to have a mutative and non-mutatuve Power function. This PR implements in and adds mutation tests.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? no
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? (es
  • How is the feature or change documented? not applicable

@p0mvn p0mvn added V:state/compatible/backport State machine compatible PR, should be backported A:backport/v13.x backport patches to v13.x branch labels Dec 9, 2022
@p0mvn p0mvn marked this pull request as ready for review December 9, 2022 18:41
@p0mvn p0mvn requested a review from ValarDragon December 9, 2022 18:41
@p0mvn
Copy link
Member Author

p0mvn commented Dec 9, 2022

Please note I've been making Pow-related PRs against my original approximations branch: #3620

Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

LGTM, I assume e2e test failure is unrelated

@ValarDragon ValarDragon merged commit 02ab20e into roman/improved-pow Dec 10, 2022
@ValarDragon ValarDragon deleted the roman/improved-pow3 branch December 10, 2022 02:46
p0mvn added a commit that referenced this pull request Dec 10, 2022
* feat(scripts): polynomial and rational approximations

* typos

* md lint

* osmomath things

* rename solve -> evaluate

* terminology corrections for actual function

* correct terminology for rational matrix

* Revert "osmomath things"

This reverts commit 90f137e.

* compute and print max error

* increase num_points_plot

* polynomial_num_terms = numerator_terms + denominator_terms

* add ability to approximate errors

* clean up plot errors

* clean up

* clean up

* clean up

* clean up

* refactores equispaced with higher precision

* fix chebyshev poly

* refactor chebyshev rational

* clean up

* updates

* updates

* updates

* plot errors on range

* isolate exponent approximation choice with expected precision

* add comments in main.py

* README updates

* update readme and requirements

* requirements.txt and gitignore updates

* clean ups and docs

* readme

* update test test_construct_matrix_3_3

* feat(osmomath): BigDec power function with integer exponent, overflow tests at max spot price (#3676)

* feat(osmomath): BigDec power function with integer exponent, overflow tests at max spot price

* euler's number

* nolint

* more tests

* changelog

* feat(osmomath): mutative `PowerIntegerMut` function on `osmomath.BigDec` (#3680)
mergify bot pushed a commit that referenced this pull request Dec 10, 2022
* feat(scripts): polynomial and rational approximations

* typos

* md lint

* osmomath things

* rename solve -> evaluate

* terminology corrections for actual function

* correct terminology for rational matrix

* Revert "osmomath things"

This reverts commit 90f137e.

* compute and print max error

* increase num_points_plot

* polynomial_num_terms = numerator_terms + denominator_terms

* add ability to approximate errors

* clean up plot errors

* clean up

* clean up

* clean up

* clean up

* refactores equispaced with higher precision

* fix chebyshev poly

* refactor chebyshev rational

* clean up

* updates

* updates

* updates

* plot errors on range

* isolate exponent approximation choice with expected precision

* add comments in main.py

* README updates

* update readme and requirements

* requirements.txt and gitignore updates

* clean ups and docs

* readme

* update test test_construct_matrix_3_3

* feat(osmomath): BigDec power function with integer exponent, overflow tests at max spot price (#3676)

* feat(osmomath): BigDec power function with integer exponent, overflow tests at max spot price

* euler's number

* nolint

* more tests

* changelog

* feat(osmomath): mutative `PowerIntegerMut` function on `osmomath.BigDec` (#3680)

(cherry picked from commit 5f55d1b)

# Conflicts:
#	.gitignore
#	CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v13.x backport patches to v13.x branch V:state/compatible/backport State machine compatible PR, should be backported
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants