Re: [Tutor] urgent help required! invalid syntax

2011-02-18 Thread James Reynolds
There's a few things I've noticed: 1. I would recommend using an IDE of some sort. I copy and pasted this into eclipse, and it told me straight away that you had a parenthesis problem on this line: d1=(log(s/x)+((r+v**2/2)*t)/(v*sqrt(t)) 2. Your function "dividend" isn't returning a value. 3. Un

Re: [Tutor] urgent help required! invalid syntax

2011-02-18 Thread Steven D'Aprano
lim chee siong wrote: > > > Hi, > I was writing a module for the black-scholes pricing model in python, but I > keep getting this error message: > Traceback (most recent call last): File "", line 1, in File > "C:\Python26\lib\blackscholes.py", line 25d2=d1-v*sqrt(t) Please COPY A

[Tutor] urgent help required! invalid syntax

2011-02-18 Thread lim chee siong
Hi, I was writing a module for the black-scholes pricing model in python, but I keep getting this error message: Traceback (most recent call last): File "", line 1, in File "C:\Python26\lib\blackscholes.py", line 25d2=d1-v*sqrt(t) This is the code in my blackscholes.py file:#Black

Re: [Tutor] urgent help required! invalid syntax

2011-02-18 Thread Timo
On 18-02-11 09:42, lim chee siong wrote: > > > Hi, > > I was writing a module for the black-scholes pricing model in python, > but I keep getting this error message: > > Traceback (most recent call last): > File "", line 1, in > File "C:\Python26\lib\blackscholes.py", line 25 > d2=d1-v*sqrt(t) Tha