math-examples

command module
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Math Examples

A small utility to generate arithmetic examples for pupils

Installation

go install github.com/mih-kopylov/math-examples@latest

Or download the latest binary.

Usage

math-examples -p Имя

Or if running from sources,

go run . -p Имя

Configuration

Once it's run first time, it generates a math-examples.yaml file in current directory with generator configuration. Example:

profiles:
  Имя:                               # User profile name, used to differentiate users configuration 
    examplesCount: 10                # Number of exercises to generate
    minBoundary: 0                   # Minimal value that is calculated on each iteration
    maxBoundary: 100                 # Maximum value that is calculated on each iteration 
    operandsCount: 2                 # Number of operands in each exercise
    parenthesis: true                # Whether parenthesis are used or not
    showCorrectAnswerAfter: each     # Use 'each' to show a correct answer after each exercise or 'all' to show summary after all exercises
    availableOperands:               # Available operands values used in plus and minus generation
      - 1:100
    availableMultiplicationOperands: # Available operands values used for multiplication and division
      - 1:9
    availableOperationTypes:         # Available operations used in exercises
      - plus
      - minus
      - multiply
      - divide

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址