Weitere ähnliche Inhalte Ähnlich wie Basic Symbolic Computation in Perl (20) Mehr von Mike Friedman (8) Kürzlich hochgeladen (20) Basic Symbolic Computation in Perl10. The Problem:
Native number types in most programming languages
(including Perl)
are ints and floats.
Because that's what the microprocessor can do.
20. The Solution:
We do not want to calculate with numbers.
We want to compute with symbols.
We do that in software.
51. Example 3
What about Rationals?
Changed integer 0 to Rational 0/1.
Overloading handles the rest.
64. Example 5
We can think of them as ordered tuples
of size n+1, where n is the degree of the
polynomial.