Spaces:
Runtime error
Runtime error
Commit
•
5d13f5c
1
Parent(s):
d83fd7f
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
import matplotlib.pyplot as plt
|
3 |
-
pip install streamlit matplotlib
|
4 |
def calcular_valor_presente(flujos_de_efectivo, tasa_de_descuento):
|
5 |
valor_presente = sum([flujo / (1 + tasa_de_descuento) ** n for n, flujo in enumerate(flujos_de_efectivo, start=1)])
|
6 |
return valor_presente
|
|
|
1 |
import streamlit as st
|
2 |
import matplotlib.pyplot as plt
|
|
|
3 |
def calcular_valor_presente(flujos_de_efectivo, tasa_de_descuento):
|
4 |
valor_presente = sum([flujo / (1 + tasa_de_descuento) ** n for n, flujo in enumerate(flujos_de_efectivo, start=1)])
|
5 |
return valor_presente
|