Welcome to Dream.In.Code
Become a VB Expert!

Join 137,264 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,506 people online right now. Registration is fast and FREE... Join Now!




Synthetic Division of Polynomials

 
Reply to this topicStart new topic

Synthetic Division of Polynomials

newbie103
17 Nov, 2006 - 07:35 PM
Post #1

New D.I.C Head
*

Joined: 17 Nov, 2006
Posts: 4


My Contributions
I need help with a synthetic division program in VB 2005 to solve problems such as x^2 - 7x + 12 / x + 3. I have no clue how to get started.
User is offlineProfile CardPM
+Quote Post

mattman059
RE: Synthetic Division Of Polynomials
17 Nov, 2006 - 08:49 PM
Post #2

D.I.C Regular
Group Icon

Joined: 23 Oct, 2006
Posts: 340


Dream Kudos: 175
My Contributions
start by trying to see how your program will handle data, for example try just making a few text boxes and a cmd button and then allow the user to input numbers into the boxes and then compute the polynomial just like it were a regular equation, then try to see how well it handles division. Build these concepts up to the synthetic division (a college algebra or algebra 2 book would be helpful for the correct procedures)
User is offlineProfile CardPM
+Quote Post

Louisda16th
RE: Synthetic Division Of Polynomials
17 Nov, 2006 - 09:02 PM
Post #3

 
Group Icon

Joined: 3 Aug, 2006
Posts: 1,790



Thanked: 1 times
Dream Kudos: 755
My Contributions
In case you do not know synthetic division, click HERE.

Its quite simple to create a program involving synthetic division. If you know C++, You can check out this program in the resources section: CLICK HERE

You will have use an array and change the number of elements it can hold according to the input. This can be done like this:
CODE

Dim Coeff(12) As Single  'Declaration of the variable
Dim Degree As String     'Variable to hold degree of dividend

Degree=InputBox("Enter Degree Of Expression")

Redim Coeff(val(Degree))  'Change the number of elements in the array


Now store the coefficients in this array. Create another array to store the coefficients of the answer. Remember that the number of terms in the quotient will be one less than the number of terms in the dividend.
smile.gif

This post has been edited by Louisda16th: 17 Nov, 2006 - 09:06 PM
User is offlineProfile CardPM
+Quote Post

newbie103
RE: Synthetic Division Of Polynomials
30 Nov, 2006 - 08:22 AM
Post #4

New D.I.C Head
*

Joined: 17 Nov, 2006
Posts: 4


My Contributions
QUOTE(Louisda16th @ 17 Nov, 2006 - 10:02 PM) *

In case you do not know synthetic division, click HERE.

Its quite simple to create a program involving synthetic division. If you know C++, You can check out this program in the resources section: CLICK HERE

You will have use an array and change the number of elements it can hold according to the input. This can be done like this:
CODE

Dim Coeff(12) As Single  'Declaration of the variable
Dim Degree As String     'Variable to hold degree of dividend

Degree=InputBox("Enter Degree Of Expression")

Redim Coeff(val(Degree))  'Change the number of elements in the array


Now store the coefficients in this array. Create another array to store the coefficients of the answer. Remember that the number of terms in the quotient will be one less than the number of terms in the dividend.
smile.gif


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 07:20PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month