mathmaker.lib.document.content package¶
Subpackages¶
- mathmaker.lib.document.content.algebra package
- mathmaker.lib.document.content.calculation package
- Submodules
- mathmaker.lib.document.content.calculation.addi_direct module
- mathmaker.lib.document.content.calculation.addi_hole module
- mathmaker.lib.document.content.calculation.decimal_numerals module
- mathmaker.lib.document.content.calculation.digitplace_direct module
- mathmaker.lib.document.content.calculation.digitplace_numberof module
- mathmaker.lib.document.content.calculation.digitplace_reversed module
- mathmaker.lib.document.content.calculation.divi_direct module
- mathmaker.lib.document.content.calculation.divi_euclidean module
- mathmaker.lib.document.content.calculation.divisibility_rule module
- mathmaker.lib.document.content.calculation.divisibility_vocabulary module
- mathmaker.lib.document.content.calculation.fraction_of_a_linesegment module
- mathmaker.lib.document.content.calculation.fraction_of_a_rectangle module
- mathmaker.lib.document.content.calculation.fraction_simplification module
- mathmaker.lib.document.content.calculation.mini_pb_proportionality module
- mathmaker.lib.document.content.calculation.mini_pb_time module
- mathmaker.lib.document.content.calculation.multi_clever module
- mathmaker.lib.document.content.calculation.multi_direct module
- mathmaker.lib.document.content.calculation.multi_hole module
- mathmaker.lib.document.content.calculation.multi_reversed module
- mathmaker.lib.document.content.calculation.numeric_expansion module
- mathmaker.lib.document.content.calculation.numeric_factorization module
- mathmaker.lib.document.content.calculation.order_of_operations module
- mathmaker.lib.document.content.calculation.percent_direct module
- mathmaker.lib.document.content.calculation.subtr_direct module
- mathmaker.lib.document.content.calculation.subtr_hole module
- mathmaker.lib.document.content.calculation.units_conversion module
- mathmaker.lib.document.content.calculation.vocabulary_addi module
- mathmaker.lib.document.content.calculation.vocabulary_divi module
- mathmaker.lib.document.content.calculation.vocabulary_multi module
- mathmaker.lib.document.content.calculation.vocabulary_questions module
- mathmaker.lib.document.content.calculation.vocabulary_simple_multiple_of_a_number module
- mathmaker.lib.document.content.calculation.vocabulary_simple_part_of_a_number module
- mathmaker.lib.document.content.calculation.vocabulary_subtr module
- Module contents
- mathmaker.lib.document.content.geometry package
- Submodules
- mathmaker.lib.document.content.geometry.area_rectangle module
- mathmaker.lib.document.content.geometry.area_righttriangle module
- mathmaker.lib.document.content.geometry.intercept_theorem_butterfly module
- mathmaker.lib.document.content.geometry.intercept_theorem_butterfly_formula module
- mathmaker.lib.document.content.geometry.intercept_theorem_converse_butterfly module
- mathmaker.lib.document.content.geometry.intercept_theorem_converse_triangle module
- mathmaker.lib.document.content.geometry.intercept_theorem_triangle module
- mathmaker.lib.document.content.geometry.intercept_theorem_triangle_formula module
- mathmaker.lib.document.content.geometry.perimeter_polygon module
- mathmaker.lib.document.content.geometry.perimeter_rectangle module
- mathmaker.lib.document.content.geometry.perimeter_righttriangle module
- mathmaker.lib.document.content.geometry.rectangle_length_or_width module
- mathmaker.lib.document.content.geometry.trigonometry_calculate_angle module
- mathmaker.lib.document.content.geometry.trigonometry_calculate_length module
- mathmaker.lib.document.content.geometry.trigonometry_formula module
- mathmaker.lib.document.content.geometry.trigonometry_vocabulary module
- mathmaker.lib.document.content.geometry.volume_rightcuboid module
- Module contents
Submodules¶
mathmaker.lib.document.content.component module¶
-
class
mathmaker.lib.document.content.component.
structure
[source]¶ Bases:
object
-
dbg_info
(msg, *numbers, letters='abcdefghijklmnopqrstuvwxyz')[source]¶ Create log message to record including self.nb* and a, b, c… values.
Parameters: - msg (str) – the msg to join to the values’ list
- numbers (numbers) – the values of the numbers a, b, c etc.
Return type: str
-
js_a
(**kwargs)[source]¶ Return the object as a list of user quickly writable strings.
The elements of this list will be used in embedded javascript of pdf files to compare to user’s answer. Most of the time, only one answer is possible (like answer of ‘7×8 = ?’ is equal to ‘56’) but sometimes it is useful to have several different answers to accept, like for fractions of a figure: ‘6/12’ should lead to also accept, at least, ‘3/6’, ‘2/4’ and ‘1/2’.
Must be reimplemented in each question.
-
nb_list
¶
-
q_wordings_collection
¶
-
watch
(rules, *numbers, letters='abcdefghijklmnopqrstuvwxyz')[source]¶ Check the quality of numbers created, according to the rules.
If something is wrong, it will be logged.
Possible rules: no negative: will check if there’s any negative when only positive
numbers were expected- decimals distribution: will check if there are only integers when one
- decimal number at least was expected.
- <letter> isnt deci: check this letter does not contain a decimal
- when division by a decimal is not allowed
- <letter> isnt 1: check this letter is different from 1
- under any circumstances
Parameters: - rules (str) – a string containing rules separated by ‘; ‘. See above for possible rules
- numbers (numbers) – the values of the numbers a, b, c etc.
- letters (str) – the names of the variables, in order of appearance. Default is the normal alphabet, low case.
-
Module contents¶
All possible questions.