Skkinycalvs commited on
Commit
6810c87
1 Parent(s): df9501e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -23,8 +23,17 @@ r_d = []
23
  r_c = []
24
 
25
  for i in range(int(T)):
26
- r_d.append(A * (1 + tasas_variables[i]/(12*100))**i)
27
- r_c.append(A * np.exp(tasas_variables[i]/(12*100) * i))
 
 
 
 
 
 
 
 
 
28
 
29
  new_dict = {"Mes": z, "Retorno discreto": r_d, "Retorno continuo": r_c}
30
 
@@ -34,3 +43,4 @@ st.dataframe(df)
34
 
35
  st.write(f"En {T} meses tendrás $ {r_c[-1]}")
36
 
 
 
23
  r_c = []
24
 
25
  for i in range(int(T)):
26
+ retorno_discreto = A * (1 + tasas_variables[i]/(12*100))**i
27
+ retorno_continuo = A * np.exp(tasas_variables[i]/(12*100) * i)
28
+
29
+ print(f"Monto discreto para el mes {i}: {retorno_discreto}")
30
+ print(f"Monto continuo para el mes {i}: {retorno_continuo}")
31
+
32
+ r_d.append(retorno_discreto)
33
+ r_c.append(retorno_continuo)
34
+
35
+ print("r_d:", r_d)
36
+ print("r_c:", r_c)
37
 
38
  new_dict = {"Mes": z, "Retorno discreto": r_d, "Retorno continuo": r_c}
39
 
 
43
 
44
  st.write(f"En {T} meses tendrás $ {r_c[-1]}")
45
 
46
+