ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cosine function (https://www.excelbanter.com/excel-programming/418509-cosine-function.html)

mjoens

Cosine function
 
Hi
I'm working with a lot of math functions in the VB editor, but I can't find
the function for the cos^2(X)

example: ((Cos ^ 2)(Atn((t2 * Cos(a) - 10.5 * (10 ^ -3) * Sin(a) - x)))
doesn't work - so how am I supposed to write it?

Can anybody help me with this???

Jim Cone[_2_]

Cosine function
 
Have you looked in the help file for Cos?
--
Jim Cone
Portland, Oregon USA


"mjoens"
wrote in message
Hi
I'm working with a lot of math functions in the VB editor, but I can't find
the function for the cos^2(X)
example: ((Cos ^ 2)(Atn((t2 * Cos(a) - 10.5 * (10 ^ -3) * Sin(a) - x)))
doesn't work - so how am I supposed to write it?
Can anybody help me with this???

Frederik[_3_]

Cosine function
 
Instead of writing

cos^2(X)

you have to write

(cos(X))^2

Success!!!

--
met vriendelijke groetjes


"mjoens" schreef in bericht
...
Hi
I'm working with a lot of math functions in the VB editor, but I can't
find
the function for the cos^2(X)

example: ((Cos ^ 2)(Atn((t2 * Cos(a) - 10.5 * (10 ^ -3) * Sin(a) - x)))
doesn't work - so how am I supposed to write it?

Can anybody help me with this???




Rick Rothstein

Cosine function
 
When you see Cos²(X), that is notational convenience... it helps clarify
that X is not being squared which could be mistaken if you wrote it as
Cos(X)², but mathematically, what it really means is take the Cos(X) and
raise it to the second power, like this... (Cos(X))^2

--
Rick (MVP - Excel)


"mjoens" wrote in message
...
Hi
I'm working with a lot of math functions in the VB editor, but I can't
find
the function for the cos^2(X)

example: ((Cos ^ 2)(Atn((t2 * Cos(a) - 10.5 * (10 ^ -3) * Sin(a) - x)))
doesn't work - so how am I supposed to write it?

Can anybody help me with this???




All times are GMT +1. The time now is 02:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com