I'm new in this site ^__^

and I really love it ^.*

ammmmm ...

I have some problem with my assignment ... could any one help me ??

( sorry but me english weak a little bet)..

10 Years
Discussion Span
Last Post by * moon *

Post your project assignment , whatever you have coded so far and what all problems are you facing.


copy and paste the particular part(s) of your code that you have the problem(s) with. its not wise to download any attachments on forums, even this one.


I'm sorry I thougth we have to creat a new class but the doc told me to modify the orignail ..

any way ..

polynomialType::polynomialType(int size) 
          : arrayListType<double>(size)
	length = size;
	for(int i = 0; i < size; i++)
		list[i] = 0;

double polynomialType::operator() (double x)
	double value = 0.0;

	for(int i = 0; i < length; i++)
		if(list[i] != 0.0)
			value = value + list[i] * pow(x,i);

	return value;


this the part where i have some troble with it.. we need to write the cofficent as complex number(a,b) and the + - * them ..

so i have to create a new arry or not ??

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.