일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 통계학
- FTCS
- 회귀
- Statistics
- 우선순위큐
- 프로그래머스
- 유체역학
- Blasius
- Crank-Nicolson
- Boundary Layers
- projecteuler
- Python
- 프로젝트오일러
- Compressible Flow
- heap
- 파이썬
- regression
- Fluid Dynamics
- python3
- 예제
- 디스크 컨트롤러
- Finite Difference Method
- Navier-Stokes
- 이중우선순위큐
- Laminar
- Heat Equation
- programmers
- Turbulent
- 힙
- Fluids
- Today
- Total
목록Programming (59)
Sudal's Garage
2차 미분방정식을 MATLAB 으로 바꾸어푸는 문제. 2차 미분방정식을 2개의 1차 미분방정식으로 변환시켰다! MATLAB 의 ode45 함수는 1차 미분방정식만 풀 수 있다. function dudt = odefun(t,u) dudt = [0;0]; dudt(1) = u(2); % u1' = u2 dudt(2) = -u(1)^n; % u2' = -u1^n end odefun 에 두개의 1차 미분방정식을 넣고 코딩을 한다. Solution:clear; close; figure(1) for n = [1 5 9 15] [T,Y] = draw_oscillator(n); plot(T,Y) hold on end legend({'n = 1','n = 5','n = 9','n = 14'},'NumColumns',2)..
Question: The sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + 2 + ... + 10)2 = 552 = 3025Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 − 385 = 2640.Find the difference between the sum of the squares of the first one hundred natura..
Question: 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?문제:1 ~ 10 사이의 어떤 수로도 나누어 떨어지는 가장 작은 수는 2520입니다.그러면 1 ~ 20 사이의 어떤 수로도 나누어 떨어지는 가장 작은 수는 얼마입니까? Solution: 1print(1 * 2 * 3 * 2 * 5 * 7 * 2 * 3 * 11 * 13 * 2 * 17 * 19)cs 설명도 필요없는 간단한 수학문제..
Question: A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.Find the largest palindrome made from the product of two 3-digit numbers.문제:앞에서부터 읽을 때나 뒤에서부터 읽을 때나 모양이 같은 수를 대칭수(palindrome)라고 부릅니다.두 자리 수를 곱해 만들 수 있는 대칭수 중 가장 큰 수는 9009 (= 91 × 99) 입니다.세 자리 수를 곱해 만들 수 있는 가장 큰 대칭수는 얼마입니까?Solution:123456789101112131415161..
프로젝트 오일러 문제들 중 소수, prime number, 가 등장하는 문제들이 제법 많다.검색 좀 하다가 유용한 method를 sympy 모듈에서 발견하여사용되는 method를 사용 할 때마다 여기에 적자! 출처: https://docs.sympy.org/latest/modules/ntheory.html Number Theory sympy.ntheory.generate.Sieve: An infinite list of prime numbers, implemented as a dynamically growing sieve of Eratosthenes. When a lookup is requested involving an odd number that has not been sieved, the sieve ..