Répondre à : Problème intégration Geogebra et/ou fonction Echelon dans un graphpaper/

Accueil Forums Programmation WIMS Programmation d’exercices OEF Problème intégration Geogebra et/ou fonction Echelon dans un graphpaper/ Répondre à : Problème intégration Geogebra et/ou fonction Echelon dans un graphpaper/

#2790
Joël
Participant
Up
0
Down
::

Merci encore,

La version draw marche bien et j’en profite pour poster la version de mon affichage sous JSXgraph que je découvre si certains sont intéressés.

Au passage certaines fonctionnalités ne semblent pas fonctionner:
* la fonction tape measure par exemple(http://jsxgraph.uni-bayreuth.de/wiki/index.php/Tape_measure)
* le graphe avec des axes log trouvé ici ne donne pas le même résultat:
http://jsxgraph.uni-bayreuth.de/~michael/jsxgui/Examples/groups/labelvalue-0k4tt9eBojY.html
* la possibilité de zoomer sur un seul axe proposé sur cet exemple ne donne rien non plus :http://www.intmath.com/functions-and-graphs/graphs-using-jsxgraph.php

Est-ce du aux ajouts des nouvelles versions de JSXgraph?
Ou une immersion approfondie dans le code de JSXgraph et nécessaire?

:*************Variables******************

\real{tau=randint(1..30)/random(0.1,1,10,100)} \comment{constante de temps}
\real{t5pct=3*\tau} \comment{tr5%}
\real{tau10=10*\tau} \comment{10x tau (affichage)}
\real{dT=\tau*(randint(1..4)/randint(1..4))} \comment{retard}
\real{dSE=randint(0..10)} \comment{offset sortie}
\real{SE=randint(1..10)} \comment{amplitude sortie}
\real{dEE=randint(0..10)} \comment{offset entrée}
\real{EE=randint(1..10)} \comment{amplitude entrée}

\real{ymax=max(\dSE+\SE,\dEE+\EE)}

\real{x_min=-\tau}
\real{x_max=5*\tau}
\real{y_min=-\ymax-1}
\real{y_max=+\ymax+1}

\real{gain_statique=\SE/\EE}

\\\\\\\\\\\\\comment{jsxgraph }\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

\text{E=slib(geo2D/jsxgraph jxgbox,600 x 600,
var brd = JXG.JSXGraph.initBoard(‘jxgbox’, {
axis:true,
boundingbox: [\x_min,\y_max,\x_max,\y_min],
grid:true,
zoom:{factorX: 1.25,
factorY: 1.00,
wheel: true,
needshift: true,
eps: 0.1}
});

var graphE1=brd.create(‘functiongraph’,[function(x){return \dEE;},-\tau10,\dT],{strokeColor:’blue’,strokeWidth:3});
var graphE2=brd.create(‘functiongraph’,[function(x){return \dEE+\EE;},\dT,\tau10],{strokeColor:’blue’,strokeWidth:3});

var graphS1=brd.create(‘functiongraph’,[function(x){return \dSE;},-\tau10,\dT],{strokeColor:’red’,strokeWidth:3});
var graphS2=brd.create(‘functiongraph’,[function(x){return \dSE+\SE*(1-Math.exp(-(x-\dT)/\tau));},\dT,\tau10],{strokeColor:’red’,strokeWidth:3});

var p2 = brd.create(‘point’, [0,0], {attractors: [graphS1,graphS2,graphE1,,graphE2], attractorDistance:0.2, snatchDistance: 2},{strokeColor:’black’,strokeWidth:6});

)}

  • Cette réponse a été modifiée le il y a 9 années et 1 mois par Joël.