Hm. I misunderstood your question, thinking that the digits compose concrete numbers instead of symbols. Well, I think that BrowserUk has already provided a solution that probably suits your problem better than a generic Perl module for symbolic algebra. If you are still interested in such a module you could search CPAN for symbolic and/or algebra or perform a Super Search. This also sounds interesting: recommendations on scientific computing with Perl.

Maximum string size in Perl: AFIK, its only limited by your OS (e.g. 32bit/64bit) and your hardware (memory, disk). Experimentally, my Perl 5.8.4 on a 64bit Solaris 10 box (8GB) was able to create a string of at least 3945 MB (1MB = 1024 x 1024) before out-of-memory occurred.

Right, the equation got truncated. If you like, please surround your sample equation with <readmore>...</readmore> tags - although it won't fix the truncation effect, it will make this thread more readable.


In reply to Re^3: Out of memory. by Perlbotics
in thread Out of memory. by dneedles

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.