mstachowsky / Klein-Clientside

A client-side instructional material framework
GNU General Public License v3.0
2 stars 4 forks source link

Store answers for use in other questions #25

Closed mstachowsky closed 4 years ago

mstachowsky commented 4 years ago

Sometimes, design problems have more unknowns than equations. We should be able to define algorithms in terms of the answers stored in the answer box. For example, assume that we have an equation:

V1 = R1/(R1+R2)

Where V1 is what we are looking for in one answer box, and R1 and R2 come from two other answer boxes. V1's answer box should be able to access R1 and R2 and should automatically update upon clicking "how did I do".

NotCalvinLu commented 4 years ago

can now use embedded command -> eqn:( some math , unique variable name) to render value and store as a variable or just eqn:( some math) to just render the value