Math-Taylor
view release on metacpan or search on metacpan
lib/Math/Taylor.pm view on Meta::CPAN
# 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;
}
( run in 1.005 second using v1.01-cache-2.11-cpan-49f99fa48dc )