일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Excel
- numpy
- math
- string
- dataframe
- Redshift
- Google Spreadsheet
- Apache
- PANDAS
- Github
- Mac
- array
- PySpark
- hive
- list
- 파이썬
- google apps script
- Python
- SQL
- Java
- django
- Kotlin
- c#
- matplotlib
- Google Excel
- PostgreSQL
- GIT
- gas
- Tkinter
- Today
- Total
목록math (27)
달나라 노트
Math.Sign(x) method는 어떤 숫자 x를 인자로 받으며 이 x값의 부호를 return합니다. x > 0 -> 1 return x = 0 -> 0 return x -1 return using System; class MyProgram { public static void Main() { Console.WriteLine(Math.Sign(125.813)); Console.WriteLine(Math.Sign(0)); Console.WriteLine(Math.Sign(-125.813)); } } -- Result 1 0 -1
Math.Sin(x) method는 x값을 받아 x의 Sin값을 return합니다. y = sin(x)에서 x값을 받아 y값을 return하는 것과 동일합니다. Math.Cos(x) method는 x값을 받아 x의 Cos값을 return합니다. y = cos(x)에서 x값을 받아 y값을 return하는 것과 동일합니다. Math.Tan(x) method는 x값을 받아 x의 Sin값을 return합니다. y = tan(x)에서 x값을 받아 y값을 return하는 것과 동일합니다. 여기서 x는 모두 라디안(radian) 값입니다. using System; class MyProgram { public static void Main() { var pi = Math.PI; Console.WriteLine("Sin..
Math.PI는 파이값(원주율)을 return합니다. using System; class MyProgram { public static void Main() { var pi = Math.PI; Console.WriteLine(pi); } } -- Result 3.14159265358979