1.0.9 • Published 5 years ago

arab-physics-engine v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Welcome To This Physics Engine

Arab Physics Engine is a NPM Package That helps you calculate The Most Known And Advanced Physics

Methods

1- .weighttoGravity(mass , gravity , unitM) This method calculates Weight To Gravity and returns and object containing every information possible Parameter | Specification | Description ------------ | ------------- | ------------- mass | NUMBER OF CHOICE | The Mass Of the thing (in -unitM-) gravity | NUMBER OF CHOICE | Gravity In the place of experiement (N/KG) unitM | KG / GRAM / POUNDS | Choose the mass unit Example

var engine = require('Arab Physics Engine')
var result = engine.weighttoGravity(20 , 10 , 'KG')
console.log(result)

2- .liquidArchimedesPrinciple(oWeight , vWeight) This method calculates Liquid Archimedes Principle and returns and object containing every information possible Parameter | Specification | Description ------------ | ------------- | ------------- oWeight | NUMBER OF CHOICE | The Original Weight of the thing (N) vWeight | NUMBER OF CHOICE | The Weight of the thing in the liquid(N) Example

var engine = require('Arab Physics Engine')
var result = engine.liquidArchimedesPrinciple(20 , 15)
console.log(result)

3- .liquidArchimedesPrinciple2(lMass , gravity , lMassUnit) This method calculates Liquid Archimedes Principle in the 2nd way and returns and object containing every information possible Parameter | Specification | Description ------------ | ------------- | ------------- lMass | NUMBER OF CHOICE | The Liquid Mass (-lMassUnit-) gravity | NUMBER OF CHOICE | Gravity In the place of experiement (N / KG) lMassUnit | KG / GRAM / POUNDS | Choose the liquid mass unit Example

var engine = require('Arab Physics Engine')
var result = engine.liquidArchimedesPrinciple2(20 , 15 , 'POUNDS')
console.log(result)

4- .liquidArchimedesPrinciple3(lvolumetricMass , lVolume , gravity , lvolumetricMassUnit , lVolumeUnit) This method calculates Liquid Archimedes Principle in the 3rd and final way (for now) and returns and object containing every information possible Parameter | Specification | Description ------------ | ------------- | ------------- lvolumetricMass | NUMBER OF CHOICE | The Liquid Volumetric Mass (-lvolumetricMassUnit-) lVolume | NUMBER OF CHOICE | Liquid Volume (-lVolumeUnit-) gravity | NUMBER OF CHOICE | Gravity In the place of experiement (N / KG) lvolumetricMassUnit | g/cm3 / kg/m3 | Choose The Liquid Volumetric Mass unit lVolumeUnit | cm3 / m3 | Choose The Liquid Volume unit Example

var engine = require('Arab Physics Engine')
var result = engine.liquidArchimedesPrinciple2(20 , 15 , 'POUNDS')
console.log(result)

Notes

=> Arabic Description Will be added soon. => Callback Functions will be added soon to the package when i have enough time , for now you need to pass the methodes as variables and console.log() them or do something with the returned object. => Feel free to Contact Me on discord if you have any questions or reports to make Jake. 夢#5635.

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago