Exemple #1
0
  /**
   * @param {Tandem} tandem
   * @constructor
   */
  function DivideModel( tandem ) {
    var self = this;
    ArithmeticModel.call( this, tandem, {
      fillEquation: function() {

        // Convert any strings entered by the user into numerical values.
        self.problemModel.multiplierProperty.set( parseInt( self.problemModel.multiplierProperty.get(), 10 ) );
        self.problemModel.multiplicandProperty.set( parseInt( self.problemModel.multiplicandProperty.get(), 10 ) );

        // Submit this answer so that it can be checked.
        self.submitAnswer();
      }
    } );
    this.random = new Random( { staticSeed: true } );
  }
 function MultiplyModel() {
   ArithmeticModel.call( this );
 }
 function FactorModel() {
   ArithmeticModel.call( this );
 }
Exemple #4
0
 /**
  * @param {Tandem} tandem
  * @constructor
  */
 function FactorModel( tandem ) {
   ArithmeticModel.call( this, tandem );
 }