find-the-law
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

Find the Law

Find the law of an array.

In Other Languages

Usage

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,
 * }
 */

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-law
 

License

WTFPL

Linear-solve by Lovasoa

https://github.com/lovasoa/linear-solve Under MIT License.

Dependents (0)

Package Sidebar

Install

npm i find-the-law

Weekly Downloads

0

Version

1.0.6

License

WTFPL

Unpacked Size

19 kB

Total Files

17

Last publish

Collaborators

  • crindzebra