- Project Description
- Features
- How to Use
- Configuration Object
- Supporting the Project
- Supporters Hall of Fame
- Created & Maintained by
- Опис проекту
- Можливості
- Як використовувати
- Об’єкт конфігурації
- Підтримка проекту
- Зала слави меценатів
- Автор та розробник
A universal generator of mathematical problems with automatic answer generation. Generates problems for calculating perimeters, arithmetic operations, and more. Includes validation and customizable constraints.
- Generates math tasks with correct answers
- Supports variables and constraints
- Auto-generates multiple-choice options
- Handles units of measurement (cm, mm, etc.)
- Works with fractions, integers, and decimals
- Configurable number ranges and validation rules
Pass a config object to generateTask():
const config = {
condition: "Calculate the perimeter of a rectangle with sides @A cm and @B cm",
template: "concat(multiply(2, sum(@A, @B)), ' cm')",
variables: {
A: { range: [5, 12] },
B: { range: [8, 15] }
},
constraints: {
canBeNegative: false,
integerResult: true,
canGenerateWrongAnswer: true
}
};
const task = generateTask(config);{
condition: "Calculate the perimeter of a rectangle with sides 7 cm and 10 cm",
answers: ["34 cm", "17 cm", "24 cm", "70 cm"],
correctAnswer: "34 cm"
}| Field | Type | Description |
|---|---|---|
condition |
string | Problem text with variables (e.g., @A, @B) |
template |
string | Math expression using supported functions. |
variables |
Object | Range/value definitions for variables (range: [min,max] or values: [...]). |
constraints |
Object | Rules for answers (minResult, maxResult, integerResult, etc.). |
- Arithmetic:
sum,multiply,minus,divide,modulus - Fractions:
fraction,fractionAdd,toDecimal - Comparisons:
greater,less,equal - Utilities:
concat,round,sqrt
Full list: math-functions.ts.
If this tool helps you in your work or studies, consider supporting its development:
Your support helps improve and maintain this generator!
We appreciate every contribution! 🎉
Join our supporters family!
Math Task Generator
📚 Education ⚡ Open Source 💙 Ukraine
Empowering educators worldwide
Універсальний генератор математичних задач із автоматичним підбором відповідей. Генерує завдання на обчислення периметрів, арифметичні дії тощо. Має вбудовану перевірку обмежень.
- Генерує задачі з правильними відповідями
- Підтримує змінні та обмеження
- Автоматично створює варіанти вибору
- Працює з одиницями виміру (см, мм, грн)
- Обробляє дроби, цілі та десяткові числа
- Налаштовувані діапазони чисел
Передайте об’єкт конфігурації у generateTask():
const config = {
condition: "Обчисліть периметр прямокутника зі сторонами @A см і @B см",
template: "concat(multiply(2, sum(@A, @B)), ' см')",
variables: {
A: { range: [5, 12] },
B: { range: [8, 15] }
},
constraints: {
canBeNegative: false,
integerResult: true,
canGenerateWrongAnswer: true
}
};
const task = generateTask(config);{
condition: "Обчисліть периметр прямокутника зі сторонами 7 см і 10 см",
answers: ["34 см", "17 см", "24 см", "70 см"],
correctAnswer: "34 см"
}| Поле | Тип | Опис |
|---|---|---|
condition |
string | Текст задачі із змінними (напр., @A, @B). |
template |
string | Математичний вираз зі списком функцій. |
variables |
Object | Діапазони/значення змінних (range: [min,max] або values: [...]). |
constraints |
Object | Обмеження (minResult, maxResult, integerResult тощо). |
- Арифметика:
sum,multiply,minus,divide,modulus - Дроби:
fraction,fractionAdd,toDecimal - Порівняння:
greater,less,equal - Додатково:
concat,round,sqrt
Повний список: math-functions.ts.
Якщо цей генератор корисний у вашій роботі чи навчанні, ви можете підтримати його розвиток:
Ваша підтримка допомагає покращувати та підтримувати цей проект!
Цінуємо кожен внесок! 🎉
Приєднуйтесь до родини меценатів!