Skip to content

Conversation

@affeldt-aist
Copy link
Member

@affeldt-aist affeldt-aist commented Mar 14, 2023

  • rename to power_pow
  • fix doc
  • add scope to notation
Motivation for this change

We @hoheinzollern @t6s needed a bit more general version of exp_fun for PR #790 and PR #516
(in particular to define a power function with extended reals)

Things done/to do
  • added corresponding entries in CHANGELOG_UNRELEASED.md
  • added corresponding documentation in the headers
Automatic note to reviewers

Read this Checklist and put a milestone if possible.

@affeldt-aist affeldt-aist added this to the 0.6.2 milestone Mar 14, 2023
@affeldt-aist affeldt-aist requested a review from thery March 14, 2023 14:37
theories/exp.v Outdated
Implicit Types a x : R.

Definition exp_fun a x := expR (x * ln a).
Definition power_pos a x := if a == 0 then 0 else expR (x * ln a).
Copy link
Member

Choose a reason for hiding this comment

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

Within the current limitation that we cannot properly handle the complex analysis, this definition seems to be the best possible approximation to the power function on R x R. It works for 0 < r < ∞, 0 <= θ < π if seen in the polar coordinate system.

@affeldt-aist affeldt-aist added the "bug" 🐛 This issue (resp. PR) describes (resp. fixes) a "bug" label Mar 15, 2023
@affeldt-aist
Copy link
Member Author

@thery Allow me to ping you in case this slipped under your radar

@CohenCyril CohenCyril added TODO: MC2 port This PR must be ported to mathcomp 2 now that the. Remove this label when the port is done. TODO: Port to HB and removed TODO: Port to HB labels Mar 27, 2023
Copy link
Collaborator

@proux01 proux01 left a comment

Choose a reason for hiding this comment

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

Overall looks good to me

@proux01
Copy link
Collaborator

proux01 commented Mar 30, 2023

I'll merge tomorrow if there is no more comment

affeldt-aist and others added 7 commits March 31, 2023 00:22
- rename to power_pow
- fix doc
- add scope to notation

Co-authored-by: Alessandro Bruni <[email protected]>
Co-authored-by: Takafumi Saikawa <[email protected]>
- so that power_pos and exprn coincide
@hoheinzollern
Copy link
Member

LGTM

Copy link
Collaborator

@proux01 proux01 left a comment

Choose a reason for hiding this comment

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

Last changelog comments before I merge

@affeldt-aist
Copy link
Member Author

Many thanks for the reviews!

@proux01 proux01 merged commit ee12aba into math-comp:master Mar 31, 2023
affeldt-aist added a commit that referenced this pull request Apr 10, 2023
* gen exp_fun

- rename to power_pow
- fix doc
- add scope to notation

Co-authored-by: Alessandro Bruni <[email protected]>
Co-authored-by: Takafumi Saikawa <[email protected]>

* add lemma power12_sqrt

* additional lemmas

* change power_pos so that 0^0=1

- so that power_pos and exprn coincide

* measurable_fun exp ln

* fix chaneglog

* add power_pos_intmul proposed by Pierre

* fix changelog

---------

Co-authored-by: Alessandro Bruni <[email protected]>
Co-authored-by: Takafumi Saikawa <[email protected]>
Co-authored-by: Alessandro Bruni <[email protected]>
@proux01 proux01 removed the TODO: MC2 port This PR must be ported to mathcomp 2 now that the. Remove this label when the port is done. label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

"bug" 🐛 This issue (resp. PR) describes (resp. fixes) a "bug"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants