Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
773 changes: 391 additions & 382 deletions src/lab/exp1/simulation/numericalApproximation.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion src/lab/exp10/simulation/expEvaluation.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,15 @@ window.view = {
},
activateEvents: function() {
this.addClickEvent('buttonSave', function () { view.freezeInputs() })
this.addClickEvent('buttonEdit', function () { view.deFreezeInputs() })
this.addClickEvent('buttonEdit', function () {

document.getElementById('a').value=0;
document.getElementById('b').value=0;
document.getElementById('c').value=0;
document.getElementById('d').value=0;


view.deFreezeInputs() })
this.addClickEvent('buttonStart', function () { view.validateExpression() })
this.addClickEvent('buttonNext', function () { view.evaluate() })
this.addChangeEvent('operatorList', function () { view.setOperatorEnvironment() })
Expand Down
3 changes: 2 additions & 1 deletion src/lab/exp10/simulation/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<option> ( a + b ) * c - d </option>
<option> ( a + b ) * ( c - d ) </option>
<option> a * d % ( c - b ) * c - a * b </option>
<option> ( a * b ) +(c*d) </option>
</select>
<select class = 'button loopList hide' id = 'logicalExpressions' >
<option> a || b && c </option>
Expand Down Expand Up @@ -77,4 +78,4 @@
</div><!-- end of resultDisplay -->
</div><!-- end of outputDivision -->
</body>
</html>
</html>
844 changes: 460 additions & 384 deletions src/lab/exp2/simulation/function.js

Large diffs are not rendered by default.

Loading