Results 1 to 10 of 10

Thread: pow(x,y)

  1. #1

    pow(x,y)

    #16. Grab the nearest book to you and turn to page 129. Use the last word of the fourth paragraph as the title of your poem.

    I grabbed my C++ textbook.


    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.


    Name:  powCode.PNG
Views: 91
Size:  3.7 KB



  2. #2
    Member RhythmOvPain's Avatar
    Join Date
    Mar 2015
    Location
    The Hall of Olden Dreams
    Posts
    551
    Blog Entries
    30
    I really like the way this is written.

    A lot.
    My favorite word in the English language is "shenanigans." My favorite thing to do is cause them.

    Smoke weed everyday.

  3. #3
    Quote Originally Posted by Phil Istine View Post
    O dear. Just noticed it should have been the LAST word. Ho-hum.
    It's the poem-a-day aspect that counts.

  4. #4
    As much as I don't get along with C, I liked this a lot. If only my lecturer taught it like this
    It didn't take long to realise
    The safest place was not her arms, but her eyes
    Where she can't see you
    For her gaze, it blisters;
    Grey skin to cinders


    WRITER OF THE MONTH: FEBRUARY 2017 WINNER

    WRITER OF THE MONTH: MARCH 2017 WINNER

    WRITER OF THE MONTH: APRIL VOTE

    WRITER OF THE MONTH: MAY NOMINATIONS

  5. #5
    I love it: math geekery+programming geekery+poetry=win!

    PS: Page 129, paragraph 4, last word gave me "water." Your word choice is better.
    Wisdom is seldom boisterous.

    -- a guy I know --

    If you're into hillbilly themed pornography (and, really, who ISN'T these days?), check out ThomasIBenton.com and @ThomasIBenton. There's no pornography, but everything IS written by a hillbilly.

  6. #6
    WF Veteran am_hammy's Avatar
    Join Date
    Jan 2015
    Location
    The County of Hammyshire
    Posts
    2,789
    Blog Entries
    16
    I don't even like math and this is brilliant. I'd learn math if it was written in poetry form.

    Lovely poem!!
    ".... But if the while I think on thee, dear friend,
    All losses are restored and sorrows end."
    - William Shakespeare, Sonnet XXX



  7. #7
    I got a pretty big grin whenever I read this! My favorite piece of the poem is when you rhyme with the letter "y" by explaining an alternative to using the exponent operator, that was awesome!

  8. #8
    This made me smile

  9. #9
    dynamic as always..cool
    The only one who can heal you is you.




  10. #10
    Love it! I'm horrible at math but this really cool and inventive. Good job

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •