Rev 15313 | Rev 15529 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15313 | Rev 15351 | ||
---|---|---|---|
Line 125... | Line 125... | ||
125 | if( typeof(multidash) !== 'undefined' && multidash != null ){use_dashed = multidash;};\ |
125 | if( typeof(multidash) !== 'undefined' && multidash != null ){use_dashed = multidash;};\ |
126 | };\ |
126 | };\ |
127 | x_anim_points = [];y_anim_points = [];var idx=0;\ |
127 | x_anim_points = [];y_anim_points = [];var idx=0;\ |
128 | if( use_parametric == 1){\ |
128 | if( use_parametric == 1){\ |
129 | for(var i = 0 ; i < animation_funs; i=i+2){\ |
129 | for(var i = 0 ; i < animation_funs; i=i+2){\ |
- | 130 | funs[i] = funs[i].replace(/t/g,'x');\ |
|
- | 131 | funs[i+1] = funs[i+1].replace(/t/g,'x');\ |
|
- | 132 | funs[i] = funs[i].replace(/xan/g,'tan');\ |
|
- | 133 | funs[i+1] = funs[i+1].replace(/xan/g,'tan');\ |
|
130 | var fun_x = to_js_math(funs[i]);\ |
134 | var fun_x = to_js_math(funs[i]);\ |
131 | var fun_y = to_js_math(funs[i+1]);\ |
135 | var fun_y = to_js_math(funs[i+1]);\ |
132 | if(fun_x == null || fun_y == null){alert(\"Syntax Error...\\nAttention : try use very precise notation !\\nlike :\\n6*(0.25)^(1.23)\\n1/(sin(5*x))\\n(3*x+4)/(x^(2*pi)) \");return;};\ |
136 | if(fun_x == null || fun_y == null){alert(\"Syntax Error...\\nAttention : try use very precise notation !\\nlike :\\n6*(0.25)^(1.23)\\n1/(sin(5*x))\\n(3*x+4)/(x^(2*pi)) \");return;};\ |
133 | try{ parseFloat( eval_jsmath( px2x(0),fun_x ) );}catch(e){alert(\"\\nSyntax Error...\\nAttention : try use very precise notation !\\nlike :\\n6*(0.25)^(1.23)\\n1/(sin(5*x))\\n(3*x+4)/(x^(2*pi))\");return;};\ |
137 | try{ parseFloat( eval_jsmath( px2x(0),fun_x ) );}catch(e){alert(\"\\nSyntax Error...\\nAttention : try use very precise notation !\\nlike :\\n6*(0.25)^(1.23)\\n1/(sin(5*x))\\n(3*x+4)/(x^(2*pi))\");return;};\ |
134 | ctx.lineWidth = linewidth[i] || linewidth;\ |
138 | ctx.lineWidth = linewidth[i] || linewidth;\ |