Using the SIN function to find the sine of 30 degrees : SIN « Numerical Math Functions « Oracle PL/SQL Tutorial

Home
Oracle PL/SQL Tutorial
 1 Introduction 2 Query Select 3 Set 4 Insert Update Delete 5 Sequences 6 Table 7 Table Joins 8 View 9 Index 10 SQL Data Types 11 Character String Functions 12 Aggregate Functions 13 Date Timestamp Functions 14 Numerical Math Functions 15 Conversion Functions 16 Analytical Functions 17 Miscellaneous Functions 18 Regular Expressions Functions 19 Statistical Functions 20 Linear Regression Functions 21 PL SQL Data Types 22 PL SQL Statements 23 PL SQL Operators 24 PL SQL Programming 25 Cursor 26 Collections 27 Function Procedure Packages 28 Trigger 29 SQL PLUS Session Environment 30 System Tables Data Dictionary 31 System Packages 32 Object Oriented 33 XML 34 Large Objects 35 Transaction 36 User Privilege
 Oracle PL/SQL Tutorial » Numerical Math Functions » SIN
14.19.2.Using the SIN function to find the sine of 30 degrees
 ```SQL> SQL> -- create demo table SQL> create table myTable(   2    value1           NUMBER(3),   3    value2           NUMBER(3),   4    value3           NUMBER(3)   5  )   6  / Table created. SQL> SQL> -- prepare data SQL> insert into myTable(value1,value2, value3) values (30,60,90)   2  / 1 row created. SQL> select * from myTable   2  /     VALUE1     VALUE2     VALUE3 ---------- ---------- ----------         30         60         90 SQL> SQL> SELECT SIN(value1*2*3.1416/360)FROM myTable   2  / SIN(VALUE1*2*3.1416/360) ------------------------                .50000106 SQL> SQL> SQL> -- clean the table SQL> drop table myTable   2  / Table dropped.```
 14.19.SIN 14.19.1. Ordinary Trigonometry Functions 14.19.2. Using the SIN function to find the sine of 30 degrees 14.19.3. SIN(0) 14.19.4. select sin(30*3.14159265/180) 14.19.5. ABS(-123) ABS(0) ABS(456) SIGN(-123) SIGN(0) SIGN(456)