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

Biblioteca de matematica com algumas funções para facilitar calculos

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
decreased by-48%
Maintainers
1
Weekly downloads
 
Created
Source

Math_Lib

agora calcula raiz de terceiro grau... now calculates root of the third degree...

Buy Me A Coffee

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

npm install loganmatic

or

yarn add install loganmatic

ENG

!! JAVASCRIPT !!

Personal library created in JavaScript and Python for common use. In development...

###################################################################

To use as an NPM package, simply use npm i loganmatic.

To import, use import Matematica from "loganmatic.js".

Then, you can use it as follows:

console.log(Matematica.NumeroEuler); console.log(Matematica.fatorar(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!

Usage example:

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));

Output: 2.7182818284590455 [2, 2, 5, 5] 3.141592653589793 4 24 -0.5 [1, -3] 2 3 17 1 0

###################################################################

!! PYTHON !!

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

Keywords

FAQs

Package last updated on 24 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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