You are on page 1of 3

2023 의공학프로그래밍 Week 03

- 시험은 총 4 문제 이고, 시험 시간은 60 분 입니다 (~15:15)


- 제공되는 시험지(.ipynb 파일)에 학번과 이름을 기재 후, 문제를 풀어주세요
- The test is a total of 4 questions, and the test time is 60 minutes (~15:15)
- Write your student ID and Name in .ipynb file

Problem 1. Standard Deviation


- 다음 주어진 리스트의 분산을 구하고 출력하시오 (반올림은 소수점 둘째 자리까지)
- Calculate the variance of the given list, and display it (Round the value off to two deciaml places)
- Definition of

variance :
- Input : list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 456, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9]

Problem 2. Taylor Series


A. Factorial
- 1 부터 100 까지의 팩토리얼을 각각 연산하여 (1! ~ 100!), 새로운 리스트를 만들어 넣으세요
- 만든 리스트의 1 번째로부터 5 번째 요소만 출력하시오 (1!부터 5!)
- Calculate each factorial from 1 to 100 (1! ~ 100!), and put then into a new list.
- Print only the 1st to 5th elements of the created list. (1! ~ 5!)

- Formular of factorial :

B. Taylor series
- 다음은 대표적인 테일러 급수들 입니다
- These are the typical Taylor series. (When L is infinity)
2023 의공학프로그래밍 Week 03

B-(1). Exponential
- A 에서 만든 리스트와 테일러 급수를 이용하여, 의 근사적인 값을 출력하세요 (오차 0.01

이하 허용)

- Print the approximate value of by using the list from problem A and Taylor series. (0.01 or less
of error allowed)

B-(2). cos x
- A 에서 만든 리스트와 테일러 급수를 이용하여, cos(5)의 근사적인 값을 출력하세요 (오차 0.01
이하 허용) (각도 단위 : radian)

- Print the approximate value of cos(5) by using the list from problem A and Taylor series. (0.01 or
less of error allowed) (Unit of angle : radian)

B-(3). sin x
- A 에서 만든 리스트와 테일러 급수를 이용하여, sin(5)의 근사적인 값을 출력하세요 (오차 0.01
이하 허용) (각도 단위 : radian)

- Print the approximate value of sin(5) by using the list from problem A and Taylor series. (0.01 or less
of error allowed) (Unit of angle : radian)

Problem 3. Normalization
- 다음 주어진 리스트의 값들을 주어진 공식을 이용하여 모두 0~1 사이 값으로 정규화 하시오
(이 때, 소수점 둘째 자리까지 반올림)
- 그 후 정규화된 리스트를 출력하시오
- Normalize all values of the given list. (Round the value off to two decinal places)
- Then, print the result

- Formular of min-max scaling :


- Input : list2 = [[324, 579, 112, -102, 741, -312, 612, 134, 532], [-23, 12, 862, 764, 632, 212, 532, 23,
-236, 22], [-123, 421, 423, 4555, -235, 421, -41, 432, -42, 132]]
2023 의공학프로그래밍 Week 03

Problem 4. Sinusoidal Signal


- 아래 두 개의 이산-시간 사인파 신호를 주어진 식을 통해 리스트로 생성하시오.
- 생성한 두 신호를 합친 후, 그래프로 표현하시오.
- Make two list of discrete-time sinusoidal signal, using below formular.
- Sum of them, and display the result.
- Formular of discrete-time sinusoidal signal :

- Sum of two sine signal formular :

- Discrete-time sinusoidal signal's parameter :

You might also like