Math-Complex

 view release on metacpan or  search on metacpan

lib/Math/Complex.pm  view on Meta::CPAN

#
# Used in log10().
#
sub _uplog10 () { 1 / CORE::log(10) }

#
# i
#
# The number defined as i*i = -1;
#
sub i () {
        return $i if ($i);
	$i = bless {};
	$i->{'cartesian'} = [0, 1];
	$i->{'polar'}     = [1, pip2];
	$i->{c_dirty} = 0;
	$i->{p_dirty} = 0;
	return $i;
}

#



( run in 1.617 second using v1.01-cache-2.11-cpan-4ab04211f4c )