Socket
Socket
Sign inDemoInstall

algostrata

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

algostrata - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

9

build/index.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
// function savingsAfterYear

@@ -57,9 +60,7 @@ // Calculates the difference in accumulated value based on identical returns, but difference in costs

var returns = 1 + (numberOfStandardDeviations * standardDeviation + average);
var returnAtYear = Math.pow(1 + average, atYear) + numberOfStandardDeviations * standardDeviation * Math.sqrt(atYear);
var returnAtYear = Math.pow(returns, atYear);
return initialValue * returnAtYear;
}
module.exports = { differenceAfterYear: differenceAfterYear, differenceAfterYearWithFirstYear: differenceAfterYearWithFirstYear, valueAtYearWithStandardDeviation: valueAtYearWithStandardDeviation };
exports.default = { differenceAfterYear: differenceAfterYear, differenceAfterYearWithFirstYear: differenceAfterYearWithFirstYear, valueAtYearWithStandardDeviation: valueAtYearWithStandardDeviation };
{
"name": "algostrata",
"version": "1.1.3",
"version": "1.1.4",
"description": "calculation library for algostrata",

@@ -5,0 +5,0 @@ "main": "build/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc