
7 Sep
2011
7 Sep
'11
8:25 p.m.
Hi. I'm working with simple functions involving rational exponents. I noticed that the (**) function seems to do okay with negative powers, but that something else is needed for rational exponents: Prelude> 2 ** (-2) 0.25 Prelude> 8 ** (1/3) 2.0 Prelude> 8 ** (2/3) 3.9999999999999996 Would there be a module meant for that sort of thing? I spent some time in Hoogle and Hackage looking around, but nothing obvious stood out. -- frigidcode.com theologia.indicium.us