| Visual Basic (Declaration) | |
|---|---|
| Public Shared Sub AddRationalSumOfPowerTerms( _ ByVal upperRationalCoeff() As Double, _ ByVal upperRationalExp() As Double, _ ByVal lowerRationalCoeff() As Double, _ ByVal lowerRationalExp() As Double _ ) | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
|  | |
| C# | |
|---|---|
| public static void AddRationalSumOfPowerTerms( double[] upperRationalCoeff, double[] upperRationalExp, double[] lowerRationalCoeff, double[] lowerRationalExp ) | |
Parameters
- upperRationalCoeff
- An array where the k-th term is the coefficient of the (k+1)-th term of the sum of power terms (i.e. a_k) which make up the numerator.
- upperRationalExp
- An array where the k-th term is the exponent and the variable of the (k+1)-th power term (i.e. n_k) which make up the numerator.
- lowerRationalCoeff
- An array where the k-th term is the coefficient of the (k+1)-th term of the sum of power terms (i.e. b_k) which make up the denominator.
- lowerRationalExp
- An array where the k-th term is the exponent and the variable of the (k+1)-th power term (i.e. m_k) which make up the denominator.
That is, the rational sum of the power terms takes the form: 
( (a_1 * x^n_1) + ... + (a_p * x^n_p) ) / ( (b_1 * x^m_1) + ... + (b_q * x^m_q) ),
where a_1,..., a_n, n_1,..., n_p, b_1,..., b_q are real numbers and x is the real variable.
 
  
  
  
 