Area Under Curves and Volume of Revolving a Curve Discussions | Functional Programming | HackerRank
We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Thanks. This comment was very helpful. I'm just learning Haskell and didn't realise the ^ operator wouldn't work with negative exponents.
This is very simple to fix:
exp $ log x * y works for all of the test cases.
Area Under Curves and Volume of Revolving a Curve
You are viewing a single comment's thread. Return to all comments →
Thanks. This comment was very helpful. I'm just learning Haskell and didn't realise the
^
operator wouldn't work with negative exponents. This is very simple to fix:exp $ log x * y
works for all of the test cases.