2.1.9 • Published 1 month ago

math-exercises v2.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

math-exercises

This is a generator of Math exercises for middle school and high school.

So far, exercises are written in French, but any translation is welcome !

This library is used by Mathlive.fr for collaborative quizzes.

🚧 Work in progress !

This library is still in beta and the architecture may very well completely change in the future.

Incoming improvements :

  • Random images generation using tikZ

  • Steps within answers

  • Coverage of all topics up to 12th grade

  • Better classification of exercises

Exercises format

Each Exercise has a generator that will return distinct questions for this exercise.

The Question in itself has an instruction, a startStatement and an answer (which are all tex strings).

You can see all the exercises implemented so far by playing with the select input here.

How to use

Example with (ax+b)^2 questions :

import { firstIdentity } from "exercises/calculLitteral/distributivity/firstIdentity";

console.log(firstIdentity.instruction);
const question = firstIdentity.generator(1);
console.log(question.startStatement);
console.log(question.answer);

//output :
// Développer et réduire :
// (2x+3)^2
// 4x^2 + 12x + 9

Some exercises do not have instructions, because the instruction is directly in the question itself.

A list of all exercises is exported from root.

Expression tree and latex parser

Math expressions are implemented via a tree of Nodes that you'll find inside tree/nodes.

Any expression can be turned into a valid latex output via the .toTex() method.

They also can be simplified via the simplifyNode method.

Math objects

This library also aims to implement pretty much all mathematical objects and notions up to 12th grade : all types of numbers and operations on them, but also points, vectors, polynomials, sets... Thus it can also be used for basic mathematics work.

Minimal dependencies

We're trying to keep to our dependencies to a minimum. So far we're only using mathjs as an external library, to evaluate and simplify expression trees. We would love to have our own way of simplifying expressions in the future.

How to contribute

Any contribution is welcomed.

There are tons of exercises left to implement !

2.1.9

1 month ago

2.1.6

1 month ago

2.1.8

1 month ago

2.1.7

1 month ago

2.1.5

1 month ago

2.1.4

1 month ago

2.1.3

1 month ago

2.1.2

1 month ago

2.1.1

2 months ago

2.1.0

2 months ago

2.0.44

2 months ago

2.0.43

2 months ago

2.0.42

2 months ago

2.0.39

2 months ago

2.0.40

2 months ago

2.0.41

2 months ago

2.0.38

2 months ago

2.0.37

2 months ago

2.0.36

2 months ago

2.0.35

2 months ago

2.0.28

2 months ago

2.0.33

2 months ago

2.0.34

2 months ago

2.0.31

2 months ago

2.0.32

2 months ago

2.0.30

2 months ago

2.0.26

2 months ago

2.0.27

2 months ago

2.0.25

2 months ago

2.0.24

3 months ago

2.0.23

3 months ago

2.0.22

3 months ago

2.0.21

3 months ago

2.0.20

3 months ago

2.0.19

3 months ago

2.0.18

3 months ago

2.0.16

3 months ago

2.0.17

3 months ago

2.0.15

4 months ago

2.0.13

4 months ago

2.0.14

4 months ago

2.0.11

4 months ago

2.0.12

4 months ago

2.0.10

4 months ago

2.0.9

4 months ago

2.0.7

4 months ago

2.0.3

4 months ago

2.0.5

4 months ago

2.0.4

4 months ago

2.0.6

4 months ago

2.0.2

5 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.4.15

6 months ago

1.4.17

6 months ago

1.4.16

6 months ago

1.4.18

6 months ago

1.3.50

8 months ago

1.3.53

8 months ago

1.3.54

8 months ago

1.3.52

8 months ago

1.3.57

7 months ago

1.3.58

7 months ago

1.3.55

8 months ago

1.3.56

7 months ago

1.3.59

7 months ago

1.3.60

7 months ago

1.3.61

7 months ago

1.3.64

7 months ago

1.3.65

7 months ago

1.3.63

7 months ago

1.3.68

7 months ago

1.3.69

7 months ago

1.3.66

7 months ago

1.3.67

7 months ago

1.4.11

6 months ago

1.4.10

6 months ago

1.4.13

6 months ago

1.4.12

6 months ago

1.3.47

8 months ago

1.4.14

6 months ago

1.4.6

6 months ago

1.4.5

6 months ago

1.4.4

7 months ago

1.4.3

7 months ago

1.4.2

7 months ago

1.4.1

7 months ago

1.4.0

7 months ago

1.3.71

7 months ago

1.3.70

7 months ago

1.4.9

6 months ago

1.4.8

6 months ago

1.4.7

6 months ago

1.3.43

8 months ago

1.3.46

8 months ago

1.3.44

8 months ago

1.3.36

12 months ago

1.3.39

12 months ago

1.3.37

12 months ago

1.3.38

12 months ago

1.3.42

9 months ago

1.3.40

10 months ago

1.3.41

10 months ago

1.3.20

1 year ago

1.3.21

1 year ago

1.3.24

1 year ago

1.3.25

1 year ago

1.3.22

1 year ago

1.3.23

1 year ago

1.3.28

1 year ago

1.3.29

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.3.31

1 year ago

1.3.32

1 year ago

1.3.30

1 year ago

1.3.33

1 year ago

1.3.34

1 year ago

1.2.0

1 year ago

1.3.7

1 year ago

1.2.8

1 year ago

1.3.6

1 year ago

1.2.7

1 year ago

1.3.5

1 year ago

1.2.6

1 year ago

1.3.4

1 year ago

1.2.5

1 year ago

1.3.3

1 year ago

1.2.4

1 year ago

1.3.2

1 year ago

1.2.3

1 year ago

1.3.1

1 year ago

1.2.2

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.3.10

1 year ago

1.3.13

1 year ago

1.3.14

1 year ago

1.3.11

1 year ago

1.3.12

1 year ago

1.3.17

1 year ago

1.3.18

1 year ago

1.3.15

1 year ago

1.3.16

1 year ago

1.3.19

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.2.10

1 year ago

1.2.11

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago