>how do u insert nth square into a complicated formulea?
like p={d[I(1+I)*n-th power]}/{(1+I)*n-th power-1}
izzit
[static int power(doubleb,doublen){
if (n==0)
return 1;
else{
int p=power (b, n/2);
if (n%2==0)
return p*p;
else
returnp*p*b;
}]

And this statement [cal.addActionListener(this);] the same as [System.out.println("cal");]?

And by the nth square you mean?

A number to the power of 'n' or something else? :p :mrgreen:

yup.. and is this "[cal.addActionListener(this);]" the same as "[System.out.println("cal");]"?

Be a part of the DaniWeb community

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