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)..

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

ok ^.^


the problem is design and implement a similar class that can be uesd to process polynomials with coefficients as complex number

the orignal class and what I try is in the attachment

It seeme like no one Know how to solve it ??

^______________^

Your attached file does not open.

It's open with me ..

It's a zip file ..

i want to help you but you didnt start by the implementing the function

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 ??

I'm still confused with what the problem is. Sorry :(

That's all rigth ..

thanks any way *.*

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.