1.0.6 • Published 4 years ago

find-the-law v1.0.6

Weekly downloads
2
License
WTFPL
Repository
github
Last release
4 years ago

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.

ParameterTypeDescription
sstring[]The array to find the law. Use ? to replace the blank.

Returns: An object.

PropertyTypeDescription
textstringThe report text in Simplified Chinese. An example is given below.
functionLatexstringThe latex code of the constructed function.
functionTextstringThe 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.

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago