Code for Polynomial raised to a power

Status
Not open for further replies.

haisrilatha

Newbie level 5
Joined
Mar 2, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,354
Hi,

I have a polynomial of the form H(Z)=(1+a*Z^c+Z^b)^10.

Could some one tell me, how to get this in simple polynomial form.
Is there a matlab or C code to get this?

Thanks in advance
Srik
 

you could do that very easly in old languge called Fortran,i think it is still being used,however the following is a C code
Code:
private void H(double Z)
{//you shold declare type of all variable here best is double type
bar1=1;
bar2=pow(a*z,c);
bar3=pow(z,b);
sum=bar1+bar2+bar3;
val=pow(sum,10);
return val;
}
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…