1.0.6 • Published 5 years ago
find-the-law v1.0.6
Find the Law
Find the law of an array.
In Other Languages
Usage
Install from npm:
npm install find-the-lawconst findLaw = require('find-the-law').default;
findLaw(['1','2','3','4','5','6','?']);
/**
* {
* text: string,
* functionLatex: string,
* functionText: string,
* }
*/findLaw
A function. The default export of the module.
| Parameter | Type | Description |
|---|---|---|
s | string[] | The array to find the law. Use ? to replace the blank. |
Returns: An object.
| Property | Type | Description |
|---|---|---|
text | string | The report text in Simplified Chinese. An example is given below. |
functionLatex | string | The latex code of the constructed function. |
functionText | string | The constructed function in plain text. |
An example of text when parameter s is ['1','2','3','4','5','6','?']:
https://github.com/CrSjimo/find-the-lawLicense
WTFPL
Linear-solve by Lovasoa
https://github.com/lovasoa/linear-solve Under MIT License.