Feature or enhancement
Proposal:
With #150534 it seems that sinpi et all will be landed in the math module. Lets discuss here remaining functions, coming with C23:
For completeness, cases that can change semantics of pow():
- pown - The pown functions compute x raised to the nth power.
- powr - The powr functions compute x raised to the power y as
e**(y*log(x)).
References:
CC @picnixz, @rhettinger, @tim-one
I think that missing exp/log functions are good addition on same ground, as existing functions. log1p can be soft-deprecated (I don't think it worth considering deviations in naming like log1p2 and log1p10). I'm less certain about rootn (seems useful, but I would prefer rather some cmath function, that can return any k-th from n roots) and rsqrt.
Consider this as a continuation of #135853.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Feature or enhancement
Proposal:
With #150534 it seems that sinpi et all will be landed in the math module. Lets discuss here remaining functions, coming with C23:
For completeness, cases that can change semantics of pow():
e**(y*log(x)).References:
CC @picnixz, @rhettinger, @tim-one
I think that missing exp/log functions are good addition on same ground, as existing functions. log1p can be soft-deprecated (I don't think it worth considering deviations in naming like
log1p2andlog1p10). I'm less certain about rootn (seems useful, but I would prefer rather some cmath function, that can return any k-th from n roots) and rsqrt.Consider this as a continuation of #135853.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response