cmpute / dashu

A library set of arbitrary precision numbers implemented in Rust.
Apache License 2.0
77 stars 9 forks source link

add pow(FBig,FBig) #8

Closed ertosns closed 2 years ago

ertosns commented 2 years ago

approximation of pow(x,y) as exp(yln(x)) is required in my current project, until you implement exact pow(float,float) if planed!

cmpute commented 2 years ago

You can use exp(y*ln(x)) by now. I have indeed planned to implement that, but the signature will be powf, and I will have to make sure that it returns the correct value to the precision limit, which might need some work.

Thanks for the PR but your implementation is incorrect in terms of handling the precision limit. I will close it by now.