False_position_method: False position method

View source: R/False_position_method.R

False_position_methodR Documentation

False position method

Description

The False_position_method function is used to find const L in modified call and put option.

Usage

False_position_method(option_value, a0, b0, FUN, ..., epsilon = 1e-7)

Arguments

option_value

numeric value, price of the modified option.

a0

numeric value, lower boundary of the range.

b0

numeric value, upper boundary of the range.

FUN

the function to be applied, explicit formula for the option price.

...

arguments to FUN.

epsilon

calculation error.

Value

A numeric value, a constant for which the price of the modified option is equal to option_value.

See Also

https://en.wikipedia.org/wiki/Regula_falsi

Examples

False_position_method(5, 100, 500, call_price_linear, asset = 100, strike = 100, rate = 0, vol = 0.3, drift = 0.1, time = 0, End_Time = 1)


mociepa/ShortfallRiskHedging documentation built on Sept. 30, 2022, 6:43 p.m.