Inverse Composition Rules: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 13: Line 13:
  <tr>
  <tr>
   <td>&nbsp;</td>
   <td>&nbsp;</td>
   <td><input type="radio" name="f" value="sin" checked onClick="change()"></td>
   <td><input type="radio" name="f" value="sin" checked onChange="change(this)"></td>
   <td><input type="radio" name="f" value="cos" onClick="change()"></td>
   <td><input type="radio" name="f" value="cos"         onChange="change(this)"></td>
   <td><input type="radio" name="f" value="tan" onClick="change()"></td>
   <td><input type="radio" name="f" value="tan"         onChange="change(this)"></td>
   <td><input type="radio" name="f" value="square" onClick="change()"></td>
   <td><input type="radio" name="f" value="square"     onChange="change(this)"></td>
   <td><input type="radio" name="f" value="sinh" onClick="change()"></td>
   <td><input type="radio" name="f" value="sinh"       onChange="change(this)"></td>
   <td><input type="radio" name="f" value="exp" onClick="change()"></td>
   <td><input type="radio" name="f" value="exp"         onChange="change(this)"></td>
  </tr>
  </tr>
  <tr>
  <tr>
Line 45: Line 45:
var f, g;
var f, g;


var change = function() {
var change = function(obj) {
  var t = document.input.f;  
  var t = obj.value;  
  alert(t);
  alert(t);
}
}

Revision as of 13:22, 19 June 2009

f(x) sin(x) cos(x) tan(x) x2 sinh(x) exp(x)
 
g(x) arcsin(x) arccos(x) arctan(x) √(x) arcsinh(x) log(x)
 

The underlying JavaScript code