Set::Infinite::Basic

Set::Infinite::Basic is a Perl module with sets of intervals.
Download

Set::Infinite::Basic Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Flavio Soibelmann Glock
  • Publisher web site:
  • http://search.cpan.org/~fglock/DateTime-Event-Random-0.03/lib/DateTime/Event/Random.pm

Set::Infinite::Basic Tags


Set::Infinite::Basic Description

Set::Infinite::Basic is a Perl module with sets of intervals. Set::Infinite::Basic is a Perl module with sets of intervals.SYNOPSIS use Set::Infinite::Basic; $set = Set::Infinite::Basic->new(1,2); # print $set->union(5,6); # ,Set::Infinite::Basic is a Set Theory module for infinite sets.It works on reals, integers, and objects.This module does not support recurrences. Recurrences are implemented in Set::Infinite.METHODSempty_setCreates an empty_set.If called from an existing set, the empty set inherits the "type" and "density" characteristics.universal_setCreates a set containing "all" possible elements.If called from an existing set, the universal set inherits the "type" and "density" characteristics.untilExtends a set until another: 0,5,7 -> until 2,6,10gives ( ) '..' ','. INFINITY returns an 'Infinity' number. NEG_INFINITY returns a '-Infinity' number. iterate ( sub { } ) Iterates over a subroutine. Returns the union of partial results. first In scalar context returns the first interval of a set. In list context returns the first interval of a set, and the 'tail'. Works in unbounded sets type($i) chooses an object data type. default is none (a normal perl SCALAR). examples: type('Math::BigFloat'); type('Math::BigInt'); type('Set::Infinite::Date'); See notes on Set::Infinite::Date below. tolerance(0) defaults to real sets (default) tolerance(1) defaults to integer sets real defaults to real sets (default) integer defaults to integer setsInternal functions: $set->fixtype; $set->numeric; Requirements: · Perl


Set::Infinite::Basic Related Software