Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loganmatic

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loganmatic - npm Package Compare versions

Comparing version 1.0.9 to 1.1.0

24

loganmatic.js

@@ -10,17 +10,4 @@ "use strict";

class Calculadora {
// Construtor vazio
constructor() {
/**
* Numero de Euler
* @example Matematica.NumeroEuler
* @return {number} - 2.7182818284590455...
* @author - Gabriel Logan
*/
this.NumeroEuler = this.crieEulerNumber();
/**
* Numero PI
* @example Matematica.Pi
* @return {number} - 3.14159265358979323...
*/
// eslint-disable-next-line @typescript-eslint/no-loss-of-precision
this.Pi = 3.1415926535897932384626433832795;

@@ -137,3 +124,2 @@ }

dispositivoBrioRufinho(valorA, valorB, valorC, valorD, raizes, checkedSim) {
// irei achar os coeficientes de grau 2
const primeiro = valorA * raizes[0];

@@ -264,3 +250,3 @@ const segundoCoeficiente = Number(primeiro) + Number(valorB);

}
const A = [];
const numerosFatorados = [];
// Encontra os fatores do número

@@ -270,11 +256,11 @@ for (let y = 2; y < valorParaCalcular; y++) {

valorParaCalcular /= y;
A.push(y);
numerosFatorados.push(y);
}
}
// Se o array está vazio, significa que o número é primo e ele é adicionado ao array
if (A.length === 0) {
A.push(valorParaCalcular);
if (numerosFatorados.length === 0) {
numerosFatorados.push(valorParaCalcular);
}
// Retorna o array com os fatores
return A;
return numerosFatorados;
}

@@ -281,0 +267,0 @@ /**

{
"name": "loganmatic",
"version": "1.0.9",
"version": "1.1.0",
"description": "Biblioteca de matematica com algumas funções para facilitar calculos",

@@ -20,2 +20,6 @@ "publisher": "Gabriel Logan",

},
"bugs": {
"url": "https://github.com/gabriel-logan/Math_Lib_Js/issues"
},
"homepage": "https://github.com/gabriel-logan/Math_Lib_Js#readme",
"license": "ISC",

@@ -22,0 +26,0 @@ "devDependencies": {

@@ -14,4 +14,17 @@ # Math_Lib

# For detailed information visit:
**LINK**: https://gabriel-logan.github.io/Math_Lib/
**DOCUMENTATION**: https://gabriel-logan.github.io/Math_Lib/
**github**: https://github.com/gabriel-logan/Math_Lib_Js
**NPM**: https://www.npmjs.com/package/loganmatic
### Installation
```bash
npm install loganmatic
```
or
```bash
yarn add install loganmatic
```
**ENG**

@@ -18,0 +31,0 @@

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