in reply to Re^2: Constructing complex numbers using recursion
in thread Constructing complex numbers using recursion

Where do $isinPolarForm, $isinRectForm get set?


Perl is Huffman encoded by design.

Replies are listed 'Best First'.
Re^4: Constructing complex numbers using recursion
by moltar512 (Sexton) on Nov 08, 2005 at 04:46 UTC
    $isinPolarForm are flags

    In the actual program:
    #if value1 is in polar form if(rindex($value1, "_") > 0) { $value1isRectangular = 0; $magnitude1 = substr($value1, 0, index($value1, " ")); $angle1 =substr($value1, (rindex($value1, " ") + 1), length($v +alue1)); #@constructedvalue1Polar = &constructComplex(&PolarToRect($val +ue1)); #$real1 = $constructedvalue1Polar[0]; #$complex1 = $constructedvalue1Polar[2]; }