|
| 1 | +<h1>Entity to code </h1> |
| 2 | + |
| 3 | +Version | 1.0.0 | 2.0.0 | 2.1.0 | 2.2.0 | 2.3.0 | 2.3.1 |
| 4 | +--- | --- | --- | --- |--- |--- |--- |
| 5 | +Stable | Yes | No | No | Yes | Yes | Yes |
| 6 | + |
| 7 | +<h2>New feats</h2> |
| 8 | +<h3>2.3.2 (patch)</h3> |
| 9 | +<p><b>readme fix</b></p> |
| 10 | +<h3>2.3.1 (patch)</h3> |
| 11 | +<p><b>Quadratic Roots function Availible</b></p> |
| 12 | +<h3>2.3.0 (patch)</h3> |
| 13 | +<p><b>HALTED</b></p> |
| 14 | +<h3>2.2.3 (patch)</h3> |
| 15 | +<p>Readme update</p> |
| 16 | +<h3>2.2.2 (patch)</h3> |
| 17 | +<p>Readme update</p> |
| 18 | +<h3>2.2.1 (patch)</h3> |
| 19 | +<p>Readme update</p> |
| 20 | +<h3>2.2.0</h3> |
| 21 | +<p>successful model with c++ integration</p> |
| 22 | +<h3>2.1.0</h3> |
| 23 | +<p>Buggy prototype with c++ integration</p> |
| 24 | +<h3>2.0.0</h3> |
| 25 | +<p>Faulty prototype with c++ integration</p> |
| 26 | +<h3>1.0.0</h3> |
| 27 | +<p>Simple string msg</p> |
| 28 | + |
| 29 | +<h2>About</h2> |
| 30 | +<p>A mathematical library for various different mathematical functions (prod) backed by c++ (node-gyp/nan)</p> |
| 31 | +<h2>Installation</h2> |
| 32 | + |
| 33 | + npm i entitytocode |
| 34 | + |
| 35 | +<h2>printMsg</h2> |
| 36 | +<p>Versions: <b>1.0.0 + </b></p> |
| 37 | +<p>Usage (nodeJS): </p> |
| 38 | + |
| 39 | + const package = require('entitytocode') |
| 40 | + package.printMsg(); |
| 41 | +<p>Output:</p> |
| 42 | + |
| 43 | + This is a message from the demo package |
| 44 | + |
| 45 | +<h2>add</h2> |
| 46 | +<p>Versions: <b>2.0.0 + </b></p> |
| 47 | +<p>Disclaimer: Not stable in versions 2.0.0 - 2.1.0 </p> |
| 48 | +<p>Types for parameters: Item1 = Int, Item2 = Int</p> |
| 49 | +<p>Example (nodeJS): </p> |
| 50 | + |
| 51 | + const package = require('entitytocode') |
| 52 | + const X = package.add(1, 2) |
| 53 | + console.log(X) |
| 54 | +<p>Output:</p> |
| 55 | + |
| 56 | + 3 |
| 57 | + |
| 58 | +<h2>Sub</h2> |
| 59 | +<p>Versions: <b>2.0.0 + </b></p> |
| 60 | +<p>Disclaimer: Not stable in versions 2.0.0 - 2.1.0 </p> |
| 61 | +<p>Types for parameters: Item1 = Int, Item2 = Int</p> |
| 62 | +<p>Example (nodeJS): </p> |
| 63 | + |
| 64 | + const package = require('entitytocode') |
| 65 | + const X = package.sub(-1, 2) |
| 66 | + console.log(X) |
| 67 | + |
| 68 | +<p>output:</p> |
| 69 | + |
| 70 | + -3 |
| 71 | + |
| 72 | +<h2>Mul</h2> |
| 73 | +<p>Versions: <b>2.0.0 + </b></p> |
| 74 | +<p>Disclaimer: Not stable in versions 2.0.0 - 2.1.0 </p> |
| 75 | +<p>Types for parameters: Item1 = Int, Item2 = Int</p> |
| 76 | +<p>Example (nodeJS): </p> |
| 77 | + |
| 78 | + const package = require('entitytocode') |
| 79 | + const X = package.mul(-3.2, 2.3) |
| 80 | + console.log(X) |
| 81 | + |
| 82 | +<p>output:</p> |
| 83 | + |
| 84 | + -7.359999999999999 |
| 85 | + |
| 86 | + |
| 87 | +<h2>Div</h2> |
| 88 | +<p>Versions: <b>2.0.0 + </b></p> |
| 89 | +<p>Disclaimer: Not stable in versions 2.0.0 - 2.1.0 </p> |
| 90 | +<p>Types for parameters: Item1 = Int, Item2 = Int</p> |
| 91 | +<p>Example (nodeJS): </p> |
| 92 | + |
| 93 | + const package = require('entitytocode') |
| 94 | + const X = package.div(-1.5, 2) |
| 95 | + console.log(X) |
| 96 | + |
| 97 | +<p>output:</p> |
| 98 | + |
| 99 | + -0.75 |
| 100 | + |
| 101 | + |
| 102 | +<h2>Quadratic Roots</h2> |
| 103 | +<p>Versions: <b>2.3.1 + </b></p> |
| 104 | +<p>Types for parameters: A = Int, B = Int, C = Int</p> |
| 105 | +<p>Output: It returns an array with 3 values, <br/> |
| 106 | + 1: number of roots: If there are No roots then it will return 0, if there are one, then 1, if there are two then 2. <br/> |
| 107 | + 2 & 3: roots: In the calculation, two roots are returned, These are them, if there are only one root, both will be identical, and if there are none, item 1 will be 0 and it will return the imaginary roots</p> |
| 108 | +<p>Example (nodeJS): </p> |
| 109 | + |
| 110 | + const moduleQRoots = require('entitytocode') |
| 111 | + |
| 112 | + let NoRealRoots = moduleQRoots.roots(1, 2, 3) |
| 113 | + console.info('::::::::::::::::::::::::NO REAL ROOTS::::::::::::::::::::::::') |
| 114 | + console.log(NoRealRoots); |
| 115 | + console.log('1X^2 + 2X + 3') |
| 116 | + let OneRealRoot = moduleQRoots.roots(1, 2, 1) |
| 117 | + console.info('::::::::::::::::::::::::ONE REAL ROOTS::::::::::::::::::::::::') |
| 118 | + console.log(OneRealRoot); |
| 119 | + console.log('1X^2 + 2X + 1') |
| 120 | + let TworealRoots = moduleQRoots.roots(1, 3, 1) |
| 121 | + console.info('::::::::::::::::::::::::TWO REAL ROOTS::::::::::::::::::::::::') |
| 122 | + console.log(TworealRoots); |
| 123 | + console.log('1X^2 + 3X + 1') |
| 124 | + |
| 125 | +<p>output:</p> |
| 126 | + |
| 127 | + ::::::::::::::::::::::::NO REAL ROOTS:::::::::::::::::::::::: |
| 128 | + [ 0, 0.41421356237309515, -2.414213562373095 ] |
| 129 | + 1X^2 + 2X + 3 |
| 130 | + ::::::::::::::::::::::::ONE REAL ROOTS:::::::::::::::::::::::: |
| 131 | + [ 1, -1, -1 ] |
| 132 | + 1X^2 + 2X + 1 |
| 133 | + ::::::::::::::::::::::::NO REAL ROOTS:::::::::::::::::::::::: |
| 134 | + [ 2, -0.3819660112501051, -2.618033988749895 ] |
| 135 | + 1X^2 + 3X + 1 |
0 commit comments