New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

to
1.1.2

dist/loganmatic.js

32

package.json
{
"name": "loganmatic",
"version": "1.1.1",
"version": "1.1.2",
"description": "Biblioteca de matematica com algumas funções para facilitar calculos",
"publisher": "Gabriel Logan",
"main": "loganmatic.js",
"main": "./dist/loganmatic.js",
"types": "./types/loganmatic.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "npx jest --coverage --verbose",
"test:watch": "npx jest --watch",
"build": "npx tsc",
"build:types": "tsc -p tsconfig.types.json"
},

@@ -18,15 +22,21 @@ "keywords": [

"name": "Gabriel Logan",
"url": "https://github.com/gabriel-logan/Math_Lib_Js"
"url": "https://github.com/gabriel-logan/Math_Lib/"
},
"bugs": {
"url": "https://github.com/gabriel-logan/Math_Lib_Js/issues"
},
"homepage": "https://github.com/gabriel-logan/Math_Lib_Js#readme",
"url": "https://github.com/gabriel-logan/Math_Lib//issues"
},
"homepage": "https://github.com/gabriel-logan/Math_Lib/#readme",
"license": "ISC",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"eslint": "^8.47.0",
"typescript": "^5.1.6"
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"typescript": "^5.4.3"
}
}
# Math_Lib
agora calcula raiz de terceiro grau...
now calculates root of the third degree...
Now calculate the third degree root...

@@ -12,7 +11,7 @@ <p align="center">

# Para informações detalhadas acesse:
# Para informações detalhadas acesse:
# For detailed information visit:
**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

@@ -40,15 +39,15 @@

To import, use import Matematica from "loganmatic.js".
To import, use:
```js
import anythingYouWant from "loganmatic.js"
```
Then, you can use it as follows:
console.log(Matematica.NumeroEuler);
console.log(Matematica.fatorar(100));
```js
console.log(anythingYouWant.EulerNumber);
console.log(anythingYouWant.factor(100));
```
If you are downloading the file, use:
const Matematica = require("loganmatic.js");
If the file is in the same directory.
If you find any errors in the code, please send them to me. It will be of great help!

@@ -58,187 +57,26 @@

console.log(Matematica.fatorial(4));
console.log(Matematica.NumeroEuler);
console.log(Matematica.fatorar(100));
console.log(Matematica.Pi);
console.log(Matematica.modulo(-4));
console.log(Matematica.fatorial(4));
console.log(Matematica.raizDePrimeiroGrau(2, 1));
console.log(Matematica.raizDeSegundoGrau(1,2,-3));
console.log(Matematica.raizCubica(8));
console.log(Matematica.raizQuadrada(9));
console.log(Matematica.numeroAleatorioEntre(10, 20));
console.log(Matematica.cosseno(0));
console.log(Matematica.seno(Matematica.Pi));
```js
import Mathematics from "loganmatic";
Output:
2.7182818284590455
[2, 2, 5, 5]
3.141592653589793
4
24
-0.5
[1, -3]
2
3
17
1
0
console.log(Matematica.EulerNumber);
const equationRoots = Mathematics.cubicEquation(1, -6, 11, -6);
console.log(equationRoots.value); // Returns an array
console.log(equationRoots.msg); // Returns a descriptive message
```
###################################################################
## Evaluated modules to calculate
!! PYTHON !!
Pi
EulerNumber
absoluteValue
factorial
squareRoot
cubicRoot
factor
sine
cosine
linearEquation
quadraticEquation
cubicEquation
To use as a PIP package, simply use pip install loganmatic.
To import, use from loganmatic import Calculadora.
Then, Matematica = Calculadora().
Then, you can use it as follows:
print(Matematica.NumeroEuler)
print(Matematica.fatorar(100))
print(Matematica.Pi)
print(Matematica.modulo(-4))
print(Matematica.fatorial(4))
print(Matematica.raiz_de_primeiro_grau(2, 1))
print(Matematica.raizDeSegundoGrau(1,2,-3))
print(Matematica.raizCubica(8))
print(Matematica.raizQuadrada(9))
print(Matematica.numero_aleatorio_entre(10, 20))
The last two have problems with float values:
print(Matematica.cosseno(0))
print(Matematica.seno(0))
Output:
2.7182818284590455
[2, 2, 5, 5]
3.141592653589793
4
24
-0.5
[1.0, -3.0]
2.0
3.0
11
1.0
0
########################################################
The library calculates (currently) the values of PI and Euler's Number, calculates functions such as sine and cosine, factors a number, calculates the factorial of a number, computes the modulus, generates a random number between two given numbers, calculates cubic and square roots, and solves first and second-degree equations.
Made by Gabriel Lima.
#####################################################################
**PT-BR**
Biblioteca pessoal criada em JavaScript e Python para uso comum. Em desenvolvimento...
###################################################################
** !! JAVASCRIPT !! **
para usar como pacote NPM so usar **npm i loganmatic**
e para importar utilize **import Matematica from "loganmatic.js"**
depois somente utilizar
console.log(Matematica.NumeroEuler)
console.log(Matematica.fatorar(100))
Se for baixar o arquivo use:
**const Matematica = require("loganmatic.js")** se o arquivo estiver no mesmo diretorio
Se acharem erros no codigo, me enviem por favor, será de grande ajuda !!!
exemplo de uso: **console.log(Matematica.fatorial(4))**
console.log(Matematica.NumeroEuler)
console.log(Matematica.fatorar(100))
console.log(Matematica.Pi)
console.log(Matematica.modulo(-4))
console.log(Matematica.fatorial(4))
console.log(Matematica.raizDePrimeiroGrau(2, 1))
console.log(Matematica.raizDeSegundoGrau(1,2,-3))
console.log(Matematica.raizCubica(8))
console.log(Matematica.raizQuadrada(9))
console.log(Matematica.numeroAleatorioEntre(10, 20))
console.log(Matematica.cosseno(0))
console.log(Matematica.seno(Matematica.Pi))
console.log(Matematica.raizDeTerceiroGrau(1,2,-3,4))
retorna:
2.7182818284590455
[ 2, 2, 5, 5 ]
3.141592653589793
4
24
-0.5
[ 1, -3 ]
2
3
17
1
0
Possui apenas 1 raiz real em X = -3.284277537306952
###################################################################
** !! PYTHON !! **
para usar como pacote PIP so usar **pip install loganmatic**
e para importar utilize **from loganmatic import Calculadora**
depois **Matematica = Calculadora()**
depois somente utilizar
print(Matematica.NumeroEuler)
print(Matematica.fatorar(100))
print(Matematica.Pi)
print(Matematica.modulo(-4))
print(Matematica.fatorial(4))
print(Matematica.raiz_de_primeiro_grau(2, 1))
print(Matematica.raizDeSegundoGrau(1,2,-3))
print(Matematica.raizCubica(8))
print(Matematica.raizQuadrada(9))
print(Matematica.numero_aleatorio_entre(10, 20))
# Essas duas ultimas estão com problema para valores float...
print(Matematica.cosseno(0))
print(Matematica.seno(0))
retorna:
2.7182818284590455
[2, 2, 5, 5]
3.141592653589793
4
24
-0.5
[1.0, -3.0]
2.0
3.0
11
1.0
0
########################################################
A biblioteca calcula (atualmente) o valor de PI e do Numero de Euler ||
Calcula Funções: Seno, Cosseno ||
fatora um numero ||
calcula o fatorial de um numero ||
o modulo ||
gera um numero aleatorio entre 2 numeros ||
calcula raizes cubicas e quadrada e calcula as raizes de equações de primeiro e segundo grau
Feito por **Gabriel Lima**