|
Prev: program not working
Next: Comparing Data in simulink
From: jehenam jehenam on 19 Jun 2008 10:12 A = [750 1000 3000 5000 11999]; r = 0.09; n = 10; B = A * (1 + r) ^ n; disp( [A' B'] ) it's a simple program that calculate compound interest. I invest A dollars, i have an interest rate of 9%. I want to check how much money will i get after n years. I use nutlab 2008. some how i get strange results: 1.0e+004 * 0.0750 0.1776 0.1000 0.2367 0.3000 0.7102 0.5000 1.1837 1.1999 2.8406 what is wrong with this program?
|
Pages: 1 Prev: program not working Next: Comparing Data in simulink |