Re: How to Calculate NPV?

2015-07-30 Thread Dave Farrance
ryguy7272 ryanshu...@gmail.com wrote: PERFECT!! SO SIMPLE!! I don't know why the author didn't do that in the book. The book is evidently giving you code snippets to enter into Python's own interactive interpreter, i.e., you enter python at the command line, then you manually type each command

Re: How to Calculate NPV?

2015-07-29 Thread duncan smith
On 29/07/15 15:27, ryguy7272 wrote: On Wednesday, July 29, 2015 at 10:21:35 AM UTC-4, ryguy7272 wrote: On Wednesday, July 29, 2015 at 9:59:10 AM UTC-4, ryguy7272 wrote: I am using Spyder Python 2.7. I'm running this sample code. import scipy as sp cashflows=[50,40,20,10,50]

Re: How to Calculate NPV?

2015-07-29 Thread Terry Reedy
On 7/29/2015 10:21 AM, ryguy7272 wrote: On Wednesday, July 29, 2015 at 9:59:10 AM UTC-4, ryguy7272 wrote: I am using Spyder Python 2.7. I'm running this sample code. import scipy as sp cashflows=[50,40,20,10,50] npv=sp.npv(0.1,cashflows) round(npv,2) Now, I'm trying to get the NPV, and I

Re: How to Calculate NPV?

2015-07-29 Thread ryguy7272
On Wednesday, July 29, 2015 at 10:21:35 AM UTC-4, ryguy7272 wrote: On Wednesday, July 29, 2015 at 9:59:10 AM UTC-4, ryguy7272 wrote: I am using Spyder Python 2.7. I'm running this sample code. import scipy as sp cashflows=[50,40,20,10,50] npv=sp.npv(0.1,cashflows) round(npv,2)

Re: How to Calculate NPV?

2015-07-29 Thread ryguy7272
On Wednesday, July 29, 2015 at 9:59:10 AM UTC-4, ryguy7272 wrote: I am using Spyder Python 2.7. I'm running this sample code. import scipy as sp cashflows=[50,40,20,10,50] npv=sp.npv(0.1,cashflows) round(npv,2) Now, I'm trying to get the NPV, and I don't see any obvious way to get it.

How to Calculate NPV?

2015-07-29 Thread ryguy7272
I am using Spyder Python 2.7. I'm running this sample code. import scipy as sp cashflows=[50,40,20,10,50] npv=sp.npv(0.1,cashflows) round(npv,2) Now, I'm trying to get the NPV, and I don't see any obvious way to get it. The author of the book that I'm reading gets 144.56. I think that's

Re: How to Calculate NPV?

2015-07-29 Thread Saber Ayoub Chelaghma
On Wednesday, July 29, 2015 at 3:59:10 PM UTC+2, ryguy7272 wrote: I am using Spyder Python 2.7. I'm running this sample code. import scipy as sp cashflows=[50,40,20,10,50] npv=sp.npv(0.1,cashflows) round(npv,2) Now, I'm trying to get the NPV, and I don't see any obvious way to get it.