Results 1 to 14 of 14

Thread: Completing The Square Tutorial

Threaded View

  1. #12
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: Completing The Square Tutorial

    Generally, you can transform x2 + p.x + q to (x + a)2 + b like this:

    x2 + p.x + q
    = x2 + 2.(p/2).x + (p/2)2 + q - (p/2)2
    = [x2 + 2.(p/2).x + (p/2)2] + [q - (p/2)2]
    = (x + p/2)2 + [q - (p/2)2]
    = (x + a)2 + b
    where a = p/2 and b = q - (p/2)2

    Example:
    x2 + 3.x + 5 = x2 + 2.(3/2).x + (3/2)2 + 5 - (3/2)2
    = (x + 3/2)2 + (5 - 9/4) = (x + 3/2)2 + (11/4 )
    Last edited by anhn; May 14th, 2008 at 01:37 AM.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

Posting Permissions

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



Click Here to Expand Forum to Full Width