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 HEREYou 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.
This post has been edited by Louisda16th: 17 Nov, 2006 - 09:06 PM