Skip to main content

Posts

Showing posts with the label interest

xlrd python module for reading spreadsheets - Read the docs

xlrd module is a python module and is used for working with excel files or sprea dsheets . If you have seen the title I have named this post with Read the docs at the end. Do you k now why? python xlrd module documentation/tutorial Okay I will tell it to you. The first time I used python I got in love with this programming language the same way you fell in love with it. But one day I wanted to convert data in excel sheet to a dictionary for my computations. I thought that I could consider excel sheets as python file objects and proceed with computation. But th is method of using e xcel fi les as file o bjects didn 't work .  So I typed " Excel with python " in google and the results I saw were these: Google results for "Excel with python"  I chose the second result because the name( title ) was obvious and I found the xlrd module . I clicked on the documentations and expected this kind of documentation: Read the docs documentation s...

Total Amount after n years - bank interest calculation using Matlab

Problem If a certain amount of money (called the principal P ) is invested in a bank account, earning an interest rate i compounded annually, the total amount of money Tn that will be in the account after n years is given by: T n = P(1+i) n Write a function that will receive input arguments for P, i, and n, and will return the total amount of money T n . Also, give an example of calling the function. Solution The above problem has been taken from the book Practical introduction to Matlab Programming by Stormy Attway . This is a very good book and a must read for every matlab programmer who wants to become a professional. This book is also for beginners if you want to start from scratch and become a professional. I think the question is very explanatory by itself so that I don't have to give you explanation about the same. If you want to know more about the money deposited(principal) , interest , total amount then you can go here: Interest rate - Wikipedia . This pr...