Hub 4 Mech
Help Article

Step-by-step guides for using Hub 4 Mech.

Writing parametric problems

~3 min read
Hub 4 Mech TeamHelp Article

“Give each student their own values: parameters, tokens in the statement, answers as formulas, constraints and previews.”

Last updated: Updated yesterday
Views:10
Total Votes:0

What a parametric problem is

In a Classical problem everyone sees the same numbers. In a Parametric problem each student gets their own values from ranges you set, and the answers are formulas of those values. Two students sitting side by side solve the same problem with different numbers, so copying an answer does not help. Choose the kind under Problem type in the problem form. A Sample problem is a worked example: it has no answer to check, so the answer boxes are left out and its solution is open to everyone.

Parameters

Each parameter has a symbol (a letter, then letters, digits or _, such as F, L or theta_1), an optional label and unit, and a range from Min to Max. With the step on Auto the range is cut into about twenty values (a step of 1, 2, 2.5 or 5 times a power of ten); with Manual you give the step yourself. The form shows how many values each range gives. Decimals sets how values are written, and a Preview value is what pages show when there is no student (for example a printout). A problem has at most 12 parameters.

Values in the statement and the solution

Write tokens where the values go; the buttons in the form put them in for you:

TokenShows
[[param:F]]the symbol with its value and unit: F = 25 kN
[[val:F]]only the value and unit: 25 kN
[[calc:2*F/L|kN/m]]a value worked out from the parameters, with four significant digits

Tokens also work inside formulas: in $$w = [[calc:2*F/L|kN/m]]$$ the value is written as LaTeX. When Given values is on, a table of the student's values follows the statement.

Answers as formulas

Set an answer's Answer as to Formula and write it with the symbols, for example 2*F/L or sqrt(Fx^2 + Fy^2). Formulas may use + - * / ^, brackets, pi, e and the functions sqrt, abs, sin, cos, tan, asin, acos, atan, atan2, ln, log10, exp, min, max and round. Trigonometry uses the problem's angle unit (degrees or radians). Use * for every multiplication: 2F is not read as 2 times F. The tolerance of each answer works as in a classical problem.

Constraints

Some sets of values make no sense, such as a load placed beyond the end of a beam. Write one condition per line, for example a < L or F*a <= 500 and L > 2, with < <= > >= == != and and / or. Values are drawn until every condition holds, at most 50 times; if none hold, the problem shows "This problem is being fixed" and you get a notification.

Check before you save

Preview variants draws five sample sets of values and shows the statement and the answers for each. Saving checks the definition again: an unknown symbol, a formula that cannot be read or a constraint no value meets stops the save with the reason.

What students see

On the practice page each member keeps their values until they press Try new values, which is open until they solve the problem or show its answer. The answer, the solution and printouts use the values the student sees. In a class assignment the teacher chooses for each parametric problem whether a student keeps the same values or gets new values after each wrong attempt; teachers see the values of every attempt in the student's work. A parametric problem earns its author more reputation points than a classical one.

Help Center

31 articles

Browse every topic or search the help center.

0

On this page

Jump to a section