Find the law of an array.
Install from npm:
npm install find-the-law
const findLaw = require('find-the-law').default;
findLaw(['1','2','3','4','5','6','?']);
/**
* {
* text: string,
* functionLatex: string,
* functionText: string,
* }
*/
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-law
WTFPL
https://github.com/lovasoa/linear-solve Under MIT License.