로딩
요청 처리 중입니다...

[Python with Financial] IRR(내부수익률) 구하기

 [Python with Financial] IRR(내부수익률) 구하기

from sympy import * # sympy 불러와바 def npv_f(r, cashflows): # NPV 구하는 함수 total = 0.0 # 토탈은 0으로 설정 for i in range(0, len(cashflows)): # i를 0부터 list of cashflows의 len만큼 반복 total += cashflows[i]/(1+r)**i # total 식, total의 값은 NPV return total # total 값 돌려내~ def differential(r, cashflows): # 미분해보장 r = symbols('r') # 이자율 혹은 할인율 is r for i in range(0, len(cashflows)): # i를 0부터 list of cashflows의 len만큼 반복 total = 0.0 # total is 0 total += cashflows[i]/(1+r)**i # function of total fx = total # fx is total ...

# financial # 재무 # 수익률 # 모든 # 내재수익률 # 내부수익률 # 내부 # 구하기 # 계산 # Python # IRR # 프로그래밍