SIN

From SQLZOO
Revision as of 08:35, 16 July 2012 by Connor (Talk | contribs) (Created page with "<table align='right' border='1'> <caption>Compatibility</caption> <tr><th colspan='3'>SIN(s1 IN s2)</th></tr> <tr><td align='center'>'''Engine'''</td><td align='center'>'''OK'...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Compatibility
SIN(s1 IN s2)
EngineOKAlternative
ingresYes
mysqlYes
oracleYes
postgresYes
sqlserverYes

SIN

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