in reply to Re: root function
in thread root function

Either you're calling ** a home-made function, or they're just as needed for pow as for **.

Replies are listed 'Best First'.
Re^3: root function
by igelkott (Priest) on Jun 22, 2008 at 09:25 UTC
    calling ** a home-made function

    I wouldn't call the ** operator a "function" at all. ;-)

    I didn't mean anything wrong by home-made but just tried to answer the op literally with an alternative solution. Nothing too serious.

      You apparently missed my point: Your solution has the same problems as **:
      >perl -le"use POSIX qw( pow ); print pow(-3, 1/3); -1.#IND