Serving the Quantitative Finance Community

 
User avatar
PiotrW
Topic Author
Posts: 7
Joined: March 5th, 2004, 12:49 pm

OnLine Calculator on webpage www.

May 3rd, 2010, 11:07 am

Hello everyone,my intension is to put an online calculator on a website. It would involve computing a CDF & PDF of a normally distributed random variable.Perhaps someone of you know how to do it?Regards,PiotrW
Last edited by PiotrW on May 2nd, 2010, 10:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

OnLine Calculator on webpage www.

May 3rd, 2010, 12:15 pm

Maybe thisBTW which language do you use for calc? edit: looking at your post again: Is the question re. the calculator??
Last edited by Cuchulainn on May 2nd, 2010, 10:00 pm, edited 1 time in total.
 
User avatar
PiotrW
Topic Author
Posts: 7
Joined: March 5th, 2004, 12:49 pm

OnLine Calculator on webpage www.

May 3rd, 2010, 1:09 pm

Hi,thanks Cuchulainn for a quick responseYou ask which language do I use -- well, I would use that one which facilitates putting calc on a website. I am prepared to learn it from scratch just to build a calc.I plan to create a calc of Market Value of plain vanilla & barrier options (explicit formulae).Regards,PiotrW
 
User avatar
Cuchulainn
Posts: 23029
Joined: July 16th, 2004, 7:38 am

OnLine Calculator on webpage www.

May 3rd, 2010, 2:14 pm

PiotrW,Web s/w is not my forte but you can choose between an executable (can be copied) or a Web Service (and then online). With Web services you must make a client as well.
Last edited by Cuchulainn on May 2nd, 2010, 10:00 pm, edited 1 time in total.
 
User avatar
PiotrW
Topic Author
Posts: 7
Joined: March 5th, 2004, 12:49 pm

OnLine Calculator on webpage www.

May 3rd, 2010, 3:11 pm

Cuchulainn,If I chose your first suggestion... I have created stand-alone exe in C++:http://quantitude.pl/00_download/fx_opt_calc.exebut do know how to embed it in the html script?Do you have any reference?PiotrW
 
User avatar
nosbor
Posts: 0
Joined: December 10th, 2006, 12:54 pm

OnLine Calculator on webpage www.

May 3rd, 2010, 4:05 pm

CGIim also not familiar with web stuff, but it sounds like you need to read above if your intention is to make simple textual input calculator. above tutorial seems good, and it should be easy to adapt the c explanations to c++.
 
User avatar
PiotrW
Topic Author
Posts: 7
Joined: March 5th, 2004, 12:49 pm

OnLine Calculator on webpage www.

May 3rd, 2010, 6:01 pm

outrun,the way the calculators is organized and their quick computations make an impression. So, you have done it wih CGI, right? Could you recommend an online tutorial, that could bring such results?Regards,PiotrW
Last edited by PiotrW on May 2nd, 2010, 10:00 pm, edited 1 time in total.
 
User avatar
PiotrW
Topic Author
Posts: 7
Joined: March 5th, 2004, 12:49 pm

OnLine Calculator on webpage www.

May 3rd, 2010, 8:45 pm

outrun,thank you very much indeed for a detailed explanaition.I try to build the structure of a calc in the way you have suggested.Thank you pal,Kind Regards,PiotrW
 
User avatar
Hansi
Posts: 41
Joined: January 25th, 2010, 11:47 am

OnLine Calculator on webpage www.

May 4th, 2010, 3:45 pm

The link that nosbor provided should get you started and the guidelines from Outrun should get you up and running in a short while. I used this book as a kid to write a content management system in Perl accessible from a browser via CGI (man it gives me a headache just thinking about how the web has changed since 1998?) , it?s not totally relevant in this case but may provide some insight into how CGI programming works in interacting with languages even though it is Perl based instead of C++.
Last edited by Hansi on May 3rd, 2010, 10:00 pm, edited 1 time in total.