UNPKG

@nexys/math-ts

Version:

[![npm version](https://badge.fury.io/js/%40nexys%2Fmath-ts.svg)](https://www.npmjs.com/package/@nexys/math-ts) [![TavisCI](https://travis-ci.com/Nexysweb/tableau-wdc-react.svg?branch=master)](https://travis-ci.com/github/Nexysweb/math-ts) [![Deployment](

6 lines (5 loc) 212 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.payoffCall = (s, x) => Math.max(0, s - x); exports.payoffPut = (s, x) => Math.max(0, x - s); exports.profit = (c, x) => c - x;