Difference between revisions of "COS"
From SQLZOO
(Created page with "<table align='right' border='1'> <caption>Compatibility</caption> <tr><th colspan='3'>COS(a)</th></tr> <tr><td align='center'>'''Engine'''</td><td align='center'>'''OK'''</td>...") |
|||
| Line 27: | Line 27: | ||
<p>See also</p> | <p>See also</p> | ||
<ul> | <ul> | ||
| − | <li>[[SIN function]]</li> | + | <li>[[SIN |SIN function]]</li> |
<li>[[TAN function]]</li> | <li>[[TAN function]]</li> | ||
<li>[[ATAN function]]</li> | <li>[[ATAN function]]</li> | ||
</ul> | </ul> | ||
Revision as of 09:50, 16 July 2012
| COS(a) | ||
|---|---|---|
| Engine | OK | Alternative |
| ingres | Yes | |
| mysql | Yes | |
| oracle | Yes | |
| postgres | Yes | |
| sqlserver | Yes | |
COS
COS(f) returns the cosine of f where f is in radians.
COS(3.14159/3) -> 0.5
In this example you return the cosine of each of the angles.
SELECT id, COS(th) FROM angle
See also