Math::MagicSquare

Math::MagicSquare is a Magic Square Checker and Designer.
Download

Math::MagicSquare Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Fabrizio Pivari
  • Publisher web site:
  • http://search.cpan.org/~fpivari/Math-MagicSquare-2.04/MagicSquare.pm

Math::MagicSquare Tags


Math::MagicSquare Description

Math::MagicSquare is a Magic Square Checker and Designer. Math::MagicSquare is a Magic Square Checker and Designer.SYNOPSIS use Math::MagicSquare; $a= Math::MagicSquare -> new (, ..., ); $a->print("string"); $a->printhtml(); $a->printimage(); $a->check(); $a->rotation(); $a->reflection();The following methods are available:newConstructor arguments are a list of references to arrays of the same length. $a = Math::MagicSquare -> new (, ..., );checkThis function can return 4 value0: the Square is not Magic1: the Square is a Semimagic Square (the sum of the rows and the columns is equal)2: the Square is a Magic Square (the sum of the rows, the columns and the diagonals is equal)3: the Square ia Panmagic Square (the sum of the rows, the columns, the diagonals and the broken diagonals is equal)printPrints the Square on STDOUT. If the method has additional parameters, these are printed before the Magic Square is printed.printhtmlPrints the Square on STDOUT in an HTML format (exactly a inside a TABLE)printimagePrints the Square on STDOUT in png format.rotationRotates the Magic Square of 90 degree clockwisereflectionReflect the Magic Square Requirements: · Perl


Math::MagicSquare Related Software