Get Your Premium Membership

The Function Pow of X To the Y

pow(x,y) You can create a function to relate the value of x raised to power y. One clever way to exponentiate is to repeat a simple multiply. If y is zero, just return a one— for ev’ry number, that will be the case. And when y equals one, your work is done— the answer will be x, your starting base. For ev’ry other value y can be, just multiply by x, recursively.

Copyright © | Year Posted 2017




Post Comments

Poetrysoup is an environment of encouragement and growth so only provide specific positive comments that indicate what you appreciate about the poem.

Please Login to post a comment

Date: 7/23/2017 7:43:00 AM
I love poetry that has a math spin. Thanks. Great format and attention to detail.
Login to Reply
Guthrie Avatar
J-Mag Guthrie
Date: 7/23/2017 9:44:00 AM
thank YOU !!! This is one of my favorites. It was from a challenge to pick up a book, and use the last word of the nth paragraph on a specific page as the title of a poem. The nearest book was a programming textbook.

Book: Reflection on the Important Things