Difference between revisions of "Inverse Composition Rules"

From JSXGraph Wiki
Jump to navigationJump to search
Line 88: Line 88:
 
  if (t=='fg')          { fg = function(x) { return f(g(x)); }  
 
  if (t=='fg')          { fg = function(x) { return f(g(x)); }  
 
  } else if (t=='gf')    { fg = function(x) { return g(f(x)); }
 
  } else if (t=='gf')    { fg = function(x) { return g(f(x)); }
 +
}
 
  plotfg.Y = fg; plotfg.updateCurve();
 
  plotfg.Y = fg; plotfg.updateCurve();
 
  brd.update();
 
  brd.update();

Revision as of 15:44, 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)
 
Composition f(g(x) g(f(x)        
         

The underlying JavaScript code