Trigonometric functions: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 29: Line 29:


brd.createElement('text',[
brd.createElement('text',[
         function(){return (p0.X()+p4.X())*0.5;},
         function(){return (p2.X()+p4.X())*0.5;},
         function(){return (p0.Y()+p4.Y())*0.5;},
         function(){return (p2.Y()+p4.Y())*0.5;},
         'cos'],{});
         'cos'],{});


brd.createElement('text',[
        function(){return (p2.X()+p3.X())*0.5;},
        function(){return (p2.Y()+p3.Y())*0.5;},
        'sin'],{});





Revision as of 16:14, 11 June 2009