mpclab
v0.1.2
Published
mpclab is a powerful problem generation module tailored for educational purposes. It enables developers and educators to create, customize, and generate a diverse range of problems across subjects like mathematics, physics, and chemistry. With flexible, d
Downloads
34
Maintainers
Readme
MPC-Lab-X
MPC-Lab-X is a powerful problem generation module for educational purposes. It enables developers and educators to create, customize, and generate a variety of problems in subjects like mathematics, physics, and chemistry. With flexible, dynamic generation and parameterized controls, it scales easily from simple exercises to complex assessments.
Features
- Problem Generation: Generate problems with a variety of parameters and constraints.
- Customization: Customize problems with different types, formats, and difficulty parameters.
- Scalability: Scale from simple exercises to complex assessments with ease.
- Subjects: Generate problems in mathematics, physics, and chemistry.
- Dynamic Generation: Generate problems dynamically with randomization and parameterization.
Installation
npm install mpclab
Usage
Step 1: Import the module.
const ProblemGenerator = require("mpclab");
Step 2: Create a new instance of the problem generator.
const generator = new ProblemGenerator();
Step 3: Generate a problem with specific parameters.
const problem = generator.generateOne([ "math", "algebra", "linear-equations", "standardForm", ]); console.log(problem);
Step 4: Enjoy the generated problem!
Note: This is a basic example. You can customize and generate problems with a wide range of parameters and constraints. Check the USAGE.md file for detailed usage instructions.
Contributing
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. Check the CONTRIBUTING.md file for more details.
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.