Zulip Chat Archive
Stream: maths
Topic: Redefine `rpow`?
Yury G. Kudryashov (Oct 22 2021 at 12:26):
What do you think about using exp (b * log a)
as the definition of a ^ b
for real a
and b
(with usual exceptions for a = 0
)? Some pros and cons I see:
- pro: we can define
a ^ b
(and Lp spaces) before we haveπ
and inverse trig functions; - pro: probably easier
simp
lemmas fora ^ b
,a < 0
; - con: we loose equalities about
real.rpow
andcomplex.cpow
.
Another possibility is to make a new definition propositionally equal to the current one, just write it explicitly.
Kevin Buzzard (Oct 22 2021 at 12:27):
I would be very happy if this was even the definition for a real and b complex
Kevin Buzzard (Oct 22 2021 at 12:27):
this is the definition which is easiest to work with when doing Dirichlet series (like the Riemann zeta function defined as an infinite sum)
Kevin Buzzard (Oct 22 2021 at 12:28):
but this is a definition question so I guess I'm not really the right person to answer
Sebastien Gouezel (Oct 22 2021 at 13:07):
There is the problem that with your definition you don't have a ^ (3 : N) = a ^ (3 : R)
for negative a
, right? I think this is a non-negotiable property I want to have of my power function.
Yury G. Kudryashov (Oct 22 2021 at 13:11):
You're right.
Yury G. Kudryashov (Oct 22 2021 at 13:12):
I'll think about it.
Yaël Dillies (Oct 22 2021 at 13:15):
Btw this property is unknown to norm_cast
. Is it intended?
Sebastien Gouezel (Oct 22 2021 at 13:15):
Giving an explicit formula directly, without going through all the complex stuff, looks like a good idea to me, though.
Sebastien Gouezel (Oct 22 2021 at 13:22):
Except that the explicit formula uses cos
and pi
...
Yury G. Kudryashov (Oct 22 2021 at 13:22):
Exactly.
Yury G. Kudryashov (Oct 22 2021 at 13:23):
So, we need large parts of inverse trig functions anyway.
Yury G. Kudryashov (Oct 22 2021 at 13:24):
Then I'm not sure that removing complex.log
/complex.cpow
as dependencies is worth it.
Sebastien Gouezel (Oct 22 2021 at 13:37):
Yes, I agree.
Last updated: Dec 20 2023 at 11:08 UTC