반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Github
- Google Spreadsheet
- gas
- PANDAS
- Java
- c#
- Excel
- numpy
- PySpark
- matplotlib
- list
- PostgreSQL
- Python
- array
- GIT
- Google Excel
- string
- math
- google apps script
- 파이썬
- dataframe
- hive
- Redshift
- Apache
- django
- Kotlin
- SQL
- Mac
- Tkinter
Archives
- Today
- Total
달나라 노트
C# : Math.Sqrt (제곱근) 본문
728x90
반응형
Math.Sqrt(a)는 어떤 숫자 a를 인자로 받으며 a의 제곱근을 return합니다.
using System;
class MyProgram
{
public static void Main()
{
var sqrt_test = Math.Sqrt(9);
Console.WriteLine(sqrt_test);
}
}
-- Result
3
Math.Sqrt(9)는 9의 제곱근을 계산합니다.
따라서 3을 return합니다.
728x90
반응형
'C# > C#' 카테고리의 다른 글
C# : Sin, Cos, Tan (삼각함수, Sin, Cos, Tan) (0) | 2022.04.18 |
---|---|
C# : Math.PI (파이값, 원주율) (0) | 2022.04.18 |
C# : Math.Pow (거듭제곱 값) (0) | 2022.04.18 |
C# : Math.Max, Math.Min (최대값, 최소값) (0) | 2022.04.18 |
C# : Math.Abs (절대값) (0) | 2022.04.18 |
Comments