|
"Maciej " <muminek9207@wp.pl> wrote in message <joke8k$bum$1@newscl01ah.mathworks.com>...
> As in subject. There is any simple method to calculate for example cos^n(x) for given n-th power and x ?. Additionaly please notice that cos^n(x) is not the same as cos(x)^2.
Oh, how wrong you are.
cos(x^2) is not the same as cos^n(x). However,
cos(x)^n IS exactly what you ask for.
Perhaps you should try it. It is easy enough to verify.
cos^4(pi/4) should be (1/sqrt(2))^4 = 1/4.
So as a test...
cos(pi/4)^4
ans =
0.25
What a surprise.
John
|