>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}
[static int power(doubleb,doublen){
if (n==0)
return 1;
int p=power (b, n/2);
if (n%2==0)
return p*p;

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

Recommended Answers

All 2 Replies

Member Avatar for iamthwee

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.