Calculates the Price, Delta and Gamma of an European Call or Put option using the Black-Scholes formula.

1 2 |

`T` |
time to maturity (in years) |

`K` |
Strike Price |

`r` |
risk-free interest rate |

`sigma` |
yearly volatility |

`S0` |
Starting Stock Price |

Returns a vector containing the option price, Delta and Gamma

Wolfgang Hormann

`OptionPricing-package`

1 2 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.