Create a TypeScript function that computes the implied volatility using...
Replace every placeholder with real context, keep private data out of the prompt, and verify the result before using it.
Prompt
Create a TypeScript function that computes the implied volatility using the Black-Scholes model. Where the inputs are the underlying price, strike price, free-risk rate, and option price. Write it step by step, with an explanation for each step.
What to customize
Add the real audience, source material, constraints and desired format before using this prompt.
Expected output
A useful draft shaped by the supplied context. Check facts, constraints and tone before relying on it.
Check before you rely on it
AI output can be incomplete or wrong. Verify facts, run code, check citations and keep private data out of tools that your organization has not approved.