basvandijk / scientific

Arbitrary-precision floating-point numbers represented using scientific notation
BSD 3-Clause "New" or "Revised" License
73 stars 40 forks source link

add Floating support #74

Closed KiaraGrouwstra closed 3 years ago

KiaraGrouwstra commented 3 years ago

presently quite some mathematical operations are defined on the Floating typeclass. would you be willing to take a PR adding support for this extra functionality?

phadej commented 3 years ago

I don't see how they would work.

KiaraGrouwstra commented 3 years ago

i'm not sure how to implement things like exp/log/sin on Scientific yet either, but if we're at the question of implementation already then that sounds like progress i guess. :)

phadej commented 3 years ago

I think that they don't have reasonable implementations, that's why I asked. You would need to pick some arbitrary precision and that doesn't sound like a good idea. I there are other option or a clever trick, I'm curious to hear about tit!

KiaraGrouwstra commented 3 years ago

i'm not sure i have the answers. until we have indication there is a solution here, perhaps i should mark this as closed, given this doesn't presently seem actionable from an implementation standpoint.