일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Java
- Mac
- list
- gas
- GIT
- Google Excel
- Python
- Google Spreadsheet
- Tkinter
- Apache
- Excel
- numpy
- hive
- django
- google apps script
- PostgreSQL
- array
- SQL
- c#
- Redshift
- dataframe
- Kotlin
- string
- math
- 파이썬
- PySpark
- matplotlib
- PANDAS
- Github
- Today
- Total
목록math (27)
달나라 노트
Math.Exp(a)는 자연상수 e의 a거듭제곱값 (e^a)을 return합니다. using System; class MyProgram { public static void Main() { Console.WriteLine(Math.Exp(1)); Console.WriteLine(Math.Exp(2)); } } -- Result 2.71828182845905 7.38905609893065
Math.Truncate(x)는 어떠한 실수 x를 인자로 받아 x의 소수점부분을 모두 삭제한 후 정수부분만 return합니다. using System; class MyProgram { public static void Main() { Console.WriteLine(Math.Truncate(10.735)); Console.WriteLine(Math.Truncate(-10.735)); } } -- Result 10 -10
Math.Log(a, b) -> 밑이 b이고, 위가 a인 log값을 return합니다. Math.Log(a) -> 밑이 자연상수(e)이고, 위가 a인 log값을 return합니다. Math.Log10(a) -> 밑이 10이고, 위가 a인 log값을 return합니다. using System; class MyProgram { public static void Main() { Console.WriteLine(Math.Log(100, 10)); Console.WriteLine(Math.Log(Math.E)); Console.WriteLine(Math.Log10(100)); } } -- Result 2 1 2