Workflow 5 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.
presentValue[cash_, r_, years_] := Sum[cash/(1 + r)^t, {t, 1, years}]No output - this step sets something up for the next one.
npv = N[presentValue[1200, 0.05, 10] - 9000]266.08191502177397breakEvenRate = r /. FindRoot[presentValue[1200, r, 10] == 9000, {r, 0.05}]0.05604463645158886N[D[presentValue[1200, r, 10], r] /. r -> 0.05]-44998.608919690494Plot[presentValue[1200, r, 10] - 9000, {r, 0.01, 0.12}]-Graphics-All recipes · Function reference · Use this from an MCP client