##### How to define two functions run simultaneously within a function?
 How to define two functions run simultaneously within a function? Alberto Silly Frenchman Posts: 42 Threads: 20 Joined: May 2017 Reputation: 0 Feb-06-2018, 06:46 PM (Feb-06-2018, 06:37 PM)boring_accountant Wrote: Hello, I am unsure what is the objective you are trying to reach, but it looks like you are performing multiple runs of call valuations using the BSM model. Would it make sense in your setup to give a default value to Value_2 before the for loop ? Alternatively, this looks like Value_2 is used in place of St (spot price at time t), maybe you could use this as an additional input to your function instead. If you give some more details on your objective I might be of help. I am familiar with BSM and derivatives.Thank you for the reply! What I am trying to do is to price a warrant with one unknown (firm value). The idea is that the warrant price is equal to a BSM of european call. Once, a company initiates a warrant its firm value changes (#of Shares * Share_price + warrant). I want to find a warrant value (based on the number of iterations) such that the "initial firm value" - "new firm value"(given the initition of warrant) close to zero. Reply

 Messages In This Thread How to define two functions run simultaneously within a function? - by Alberto - Feb-06-2018, 05:35 PM RE: How to define two functions run simultaneously within a function? - by boring_accountant - Feb-06-2018, 06:37 PM RE: How to define two functions run simultaneously within a function? - by Alberto - Feb-06-2018, 06:46 PM RE: How to define two functions run simultaneously within a function? - by boring_accountant - Feb-06-2018, 08:00 PM RE: How to define two functions run simultaneously within a function? - by Alberto - Feb-06-2018, 10:08 PM

 Possibly Related Threads… Thread Author Replies Views Last Post Struggling for the past hour to define function and call it back godlyredwall 2 186 Oct-29-2020, 02:45 PM Last Post: deanhystad Help with define a def function Omer_ 3 204 Sep-20-2020, 06:59 PM Last Post: Omer_ How to define a function to create a resorted list? sparkt 6 419 Aug-08-2020, 04:10 PM Last Post: sparkt Cant define turtle color with function argument Wrightys99 2 374 Apr-22-2020, 01:43 PM Last Post: Wrightys99 Run a timer when a functions starts to see how long the function takes to complete Pedroski55 2 430 Apr-19-2020, 06:28 AM Last Post: Pedroski55 Need help with a function that calls other functions. skurrtboi 4 506 Sep-30-2019, 09:28 PM Last Post: stullis How to run same process simultaneously exploit123 1 543 Sep-19-2019, 10:08 AM Last Post: Gribouillis How to define a function that calculates the BMI from dataframe DavidGG 2 1,117 May-30-2019, 03:35 PM Last Post: volcano63 Control 2 stepper motor simultaneously jihene 2 1,100 May-08-2019, 05:27 PM Last Post: DeaD_EyE Moving with objects simultaneously kom2 1 692 Apr-20-2019, 07:12 PM Last Post: SheeppOSU

Forum Jump:

### User Panel Messages

##### Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020