["L", randRange(1,999) * pow(10, randRange(-2,3)), 1, "m"] ["\\delta", (randRange(1,999) * pow(10, randRange(-5,-3))), 0, "mm"] ["cs1", 0.05, -1, "mm"] ["cs2", 0.05, -1, "mm"] ["T_0", 25, -1, "^{\\circ} C" ] ["T", randRange(25000, 200000) * pow(10, -3), 1, "^{\\circ} C"] ["E", 7000000, -1, "Pa"] ["\\alpha", 0.000023, 1, ""]
[ { eqnText:"\\delta_{univ} = \\alpha (T-T_0) L", eqnVars:["\\delta_{univ}","\\alpha","T","T_0","L"] }, { eqnText:"\\sigma = - \\frac{P L}{A E}", eqnVars:["\\sigma","P","L","A","E"] } ] [ L, gap] eqnSolverPRO.initJSAV(equations, parameters)

A solid square bar of cross-sectional dimensions CS1[1] CS1[3] x CS2[1] CS1[3] is attached rigidly to the wall at point A and has a gap of 1 mm from the rigid wall at point B at T[1] T[3]. Knowing the bar is made of aluminum,

L[0] = L[1] L[3]
gap[0] = gap[1] gap[3]
nT[0] = nT[1] nT[3]
E[0] = E[1] E[3]
a[0] = a[1] a[3]

1. Given the expansion of the bar in the present condition, what is the length of the bar prior to expansion? gap[1] / (a[1] * (nT[1]-T[1]))
1. At what temperature does the gap close? gap[1] / (a[1]*L[1]) + T[1]
1. Given the expansion of the bar in the present condition, what is the value of alpha for aluminium? gap[1] / (L[1] * (nT[1]-T[1]))
1. At a temperature of nT[1] degree C, what is the length expansion of the bar? a[1] * (nT[1]-T[1]) * L[1]

rigid bar attached to wall A, with a small gap between 
          right edge of bar and wall B
[ eqnSolverPRO.userInput ]
if (!eqnSolverPRO.checkAnswer() && !guess[0]) { return ""; // User did not click, and correct answer is not // initial array state } else { return eqnSolverPRO.checkAnswer(arr_size); }

round((gap / (a * (nT-T)))*1000) / 1000 The correct answer expected from the student

Add different levels of hints corresponding to reaction from the evaluator function in JS file.