in reply to Which function for third root of number ?

Here's one way to do it (without having to use any module functions):

#!/usr/bin/perl use strict; my $a = 27 ** (1/3); # 1/3 represents cube root print "a = $a"; exit;
output:
a = 3
davidj

Replies are listed 'Best First'.
Re^2: Which function for third root of number ?
by Wampa (Hermit) on Jul 09, 2004 at 11:46 UTC

    Thanks to all

    Programing in Embperl and all questions are related to Embperl.
    Excuse my bad English !!!