Hi, 
I had error messages as below with EuropeanOptionImpliedVolatility function because this function is limited to scalar cases. 
Is there any way to use vectorized inputs instead of loop?
Thanks in advance
Wonjae Lee
underlying=c(100,90,95)
value=c(11.1,11.2,11.3)
type=c("call","call","call")
strike=c(120,110,110)
dividendYield=c(0,0,0)
riskFreeRate=c(0.03,0.03,0.03)
maturity=c(0.5,0.5,0.5)
initialvolatility=c(0.25,0.25,0.25)
EuropeanOptionImpliedVolatility(type,value,underlying, strike, dividendYield, riskFreeRate, maturity, initialvolatility)
> EuropeanOptionImpliedVolatility(type,value,underlying, strike, dividendYield, riskFreeRate, maturity, initialvolatility)
Error in EuropeanOptionImpliedVolatility.default(type, value, underlying, : 
 expecting a single value
> mapply(EuropeanOptionImpliedVolatility(type,
value
,
underlying
, strike, dividendYield, riskFreeRate, maturity, 
initialvolatility
),
type,
value
,
underlying
, strike, dividendYield, riskFreeRate, maturity, initialvolatility
 )
Error in EuropeanOptionImpliedVolatility.default(type, val, und, strike, : 
 expecting a single value

	[[alternative HTML version deleted]]

