Simple Solver-type function
显示 更早的评论
I am new to MATLAB and was wondering if someone could help me with a simple function. The idea is as follows:
I have two equations:
r_u = r0 + theta*delta + sigma*sqrt(delta)
r_d = r0 + theta*delta - sigma*sqrt(delta)
I need to find theta such that the above equations are satisfied as well as the equation below:
P = exp(-r0*delta)[0.5*exp(-r_u*delta) + 0.5*exp(-r_d*delta)]*100.
r0, delta, sigma and P are known. I need the function to calculate theta, r_u and r_d such that the above equations are true. I can do it in Excel using Solver but MATLAB is new to me and I would really appreciate any help I can get.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!