Math-Taylor

 view release on metacpan or  search on metacpan

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

102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
    # 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 all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.018 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )