au icon indicating copy to clipboard operation
au copied to clipboard

Request support for more math functions.

Open drinkdhmo opened this issue 8 months ago • 3 comments

Please add support for some of the less-common math functions, including, std::cbrt.

drinkdhmo avatar Apr 04 '25 19:04 drinkdhmo

Seems like a good idea. We did recently add support for std::hypot. Any others in particular from <cmath>? Seems like std::cbrt is the last one from its "section" that we haven't added yet. We've got all the trigonometric functions covered. And I haven't figured out the units for the hyperbolic trigonometric functions. 😅

If you didn't have any others in mind, we'll probably treat this as "support cbrt".

chiphogg avatar Apr 04 '25 21:04 chiphogg

Seems like std::cbrt is the last one from its "section" that we haven't added yet.

To be clear: specifically, the last one from its "section" that makes sense. We can't really have pow with a runtime variable exponent, because the type of the result would depend on a runtime value.

chiphogg avatar Apr 04 '25 22:04 chiphogg

Reopening for docs. 😅

chiphogg avatar Apr 08 '25 14:04 chiphogg