Skip to content

CrSjimo/find-the-law

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Find the law of an array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published