Files
2nd/10_Wiki/Dev/Topic_Python/Python_Math.md
T
Antigravity Agent 1cfd3bbb56 docs(10_Wiki): 위키 구조 정리 — 언어 튜토리얼 카테고리 폴더 제거 + 신규 자산 동기화
Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고,
Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
2026-07-05 00:10:59 +09:00

74 lines
2.8 KiB
Markdown

---
id: python-math
title: "Python Math"
category: "Programming_Language"
status: "draft"
verification_status: "conceptual"
canonical_id: ""
aliases: ["math module", "파이썬 수학"]
duplicate_of: ""
source_trust_level: "B"
confidence_score: 0.88
created_at: 2026-07-04
updated_at: 2026-07-04
review_reason: ""
merge_history: []
tags: ["python", "programming", "w3schools", "math"]
raw_sources: ["https://www.w3schools.com/python/python_math.asp"]
applied_in: []
github_commit: ""
---
# [[Python Math]]
## 🎯 한 줄 통찰 (One-line insight)
Basic math (min/max/abs/pow) needs no import at all, but everything beyond that — sqrt, ceil, floor, pi — requires `import math`, marking a clear line between built-in functions and the standard math module. [S1]
## 🧠 핵심 개념 (Core concepts)
- **Built-in, no-import functions** — `min()`, `max()`, `abs()`, `pow(x, y)`. [S1]
- **`math` module** — extends built-in math capability; must `import math`. [S1]
- **`math.sqrt()`** — square root. [S1]
- **`math.ceil()` / `math.floor()`** — round up / round down to nearest integer. [S1]
- **`math.pi`** — the constant π. [S1]
## 📖 세부 내용 (Details)
- No-import functions: `min(5,10,25)`, `max(5,10,25)`, `abs(-7.25)`, `pow(4,3)`. [S1]
- Square root: `import math; x = math.sqrt(64)`. [S1]
- Ceil/floor: `x = math.ceil(1.4) # 2; y = math.floor(1.4) # 1`. [S1]
- Pi constant: `x = math.pi`. [S1]
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
소스에서 모순되는 정보는 발견되지 않음.
## 🛠️ 적용 사례 (Applied in summary)
현재 발견된 실제 적용 사례가 없습니다 — Python User Input 챕터에서 `math.sqrt(float(x))`처럼 사용자 입력값 계산에 재사용된다. [S1]
## 💻 코드 패턴 (Code patterns)
No-import vs. math-module functions (Python):
```python
x = pow(4, 3) # no import needed
import math
y = math.sqrt(64)
z = math.ceil(1.4) # 2
w = math.floor(1.4) # 1
```
## ✅ 검증 상태 및 신뢰도
- **상태:** draft
- **검증 단계:** conceptual
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
- **신뢰 점수:** 0.88
- **중복 검사 결과:** 신규 생성 (New discovery)
## 🔗 지식 그래프 (Knowledge Graph)
- **상위/루트:** [[Python Tutorial]]
- **관련 개념:** [[Python Numbers]], [[Python Modules]], [[Python User Input]]
- **참조 맥락:** 수학 계산의 기본 도구 — User Input 챕터의 제곱근 계산에서 재사용.
## 📚 출처 (Sources)
- [S1] W3Schools — Python Math — https://www.w3schools.com/python/python_math.asp
## 📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "Python Math" page (Astra wiki-curation, P-Reinforce v3.1 format).