Math-Taylor
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Math/Taylor.pm view on Meta::CPAN
view all matches for this distribution
102103104105106107108109110111112113114115116117118119120121122
# Clone prototype if applicable.
if
(
ref
(
$proto
) ) {
$self
->{function} =
$proto
->{function}->new();
$self
->{variable} =
$proto
->{variable}->new()
if
defined
$proto
->{variable};
$self
->{point} =
$proto
->{point}
if
defined
$proto
->{point};
$self
->{remainder_type} =
$proto
->{remainder_type}
if
defined
$proto
->{remainder_type};
}
bless
$self
=>
$class
;
$self
->function(
$args
{function} )
if
exists
$args
{function};
$self
->variable(
$args
{variable} )
if
exists
$args
{variable};
$self
->point(
$args
{point} )
if
exists
$args
{point};
confess
"Cannot create a Math::Taylor object without at least a function."
if
not
defined
$self
->function();
return
$self
;
}
view release on metacpan - search on metacpan
( run in 1.018 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )