mathematics polynomial long division

This is a discussion on mathematics polynomial long division within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I think I found an error in my math book. I'm using polynomial long division to calculate the slant asymptote. ...

  1. #1
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589

    mathematics polynomial long division

    I think I found an error in my math book.
    I'm using polynomial long division to calculate the slant asymptote. can someone check this to see if i'm correct.

    the book says the following.

    (x^2-4x-5)/(x-3)=x-1+(8/x-3)

    I think it should be

    (x^2-4x-5)/(x-3)=x-1-(8/x-3)

    note the only difference is the subtraction/addition of the remainder fractional value.
    who is correct? (me or book)
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,258
    The simplest way to check is to plugin values.

    Let's try x=7
    (x^2-4x-5)/(x-3) = 16/4 = 4
    x-1+(8/(x-3)) = 8
    x-1-(8/(x-3)) = 4

    The book must be wrong, while you are probably correct.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    I am not in the highest forms of math, but for polynomial division, isn't there something called synthetic division: http://www.purplemath.com/modules/synthdiv.htm . I don't know if that is what you want to use or if you are even allowed, but if you want to expand your math concepts, look into it.
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

  4. #4
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    yes, i know about synthetic division.
    i was almost certain i was correct, but wanted to make sure, that i was not making a mistake somewhere, with forgeting some obscure special case rule.
    this book i'm using is horrible. it doesn't have all the answers, and some of the text has been proven to be inaccurate.
    thank you both
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  5. #5
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    I think some high school math/sci books intentionally give false answers to every nth numeric answer. It makes it easier for the teacher to see if someone is using the back of the book a little too much

  6. #6
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    the error was in the actual lesson walk through.
    so it was teaching me the wrong way.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. hton long long
    By carrotcake1029 in forum C Programming
    Replies: 1
    Last Post: 06-01-2008, 09:26 PM
  2. Dev-cpp - compiler options
    By tretton in forum C Programming
    Replies: 7
    Last Post: 01-06-2006, 06:20 PM
  3. Sorting Algorithms with Time
    By silicon in forum C++ Programming
    Replies: 3
    Last Post: 05-03-2005, 12:27 PM
  4. BigInt Linked List Long Division
    By abyssknight in forum C Programming
    Replies: 5
    Last Post: 04-01-2004, 07:02 PM
  5. Polynomial Problem
    By softcoder76 in forum C++ Programming
    Replies: 5
    Last Post: 03-01-2002, 02:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21