php/Math   
Recreational Mathematics   
   home  |  library  |  contact
 Math Notes
 Math Programming [25]
 Regression [3]
 Data Mining [17]
 Notation [6]
 Linear Algebra [9]
 Stats & Prob [15]
 Math Cognition [5]
 Space & Physics [6]
 Formulas [5]
 Fun & Games [2]
 Haskell [1]
 Bayes Theory [1]
 Site News [0]
 Math Projects [5]
 Polynomials [1]
 Calculus [9]
 Number Theory [3]
 Optimization [2]
 Financial [1]

 Math Links
 PHP/ir
 Andrew Gelman
 Chance Wiki
 Daniel Lemire
 KD Knuggets
 Social Stats
 MySQL Performance
 Hunch.net
 Matthew Hurst
 JMLR
 JSS
 Hal Daume III
 Math Notes >> Polynomials

Decimal numbers as polynomial sums [Polynomials
Posted on July 12, 2007 @ 05:28:12 PM by Paul Meagher

Why should you care what a polynomial is? There are lots of reasons, but one basic one is because decimal numbers can be formally described as polynomial sums:

454 = 4*102 + 5*101 + 4*100

Here is the PHP equivalent:

<?php

// Decimal number as polynomial sum.

$hundreds 4;
$tens 5;
$ones 4;

echo 
$hundreds pow(102) + $tens pow(101) + $ones pow(100);

?>

Which suprisingly outputs:

454

The number 454 can be viewed as a quadratic number because it can be represented with a second degree polynomial:

P2(a, x) = a2x2 + a1x1 + a0x0

Which is equivalent to:

P2([4, 5, 4], 10) = 4* 102 + 5*101 + 4*100

You can represent other number systems as particular types of polynomial sums where the x term is either 2, 8, 16, or 60 if your number system is binary, octal, hexidecimal, or sexigesimal.

So one reason to know something about polynomials is because of the insight it offers into our own numbering system and why it works.

Recreational Exercise

Is there a problem with viewing polynomials as fundamental building blocks for numbers when the generalized polynomial expression itself uses a number system to represent the idea of decreasing series of exponents in its terms? Are number systems a consequence of polynomial theory or are polynomials accurate and useful rationalizations of number systems whose foundation is elsewhere (e.g., set theory, logic, embodied metaphor)?

Permalink 

 Archive 
 


php/Math Project
© 2011. All rights reserved.