Commit 13a26d59 authored by Ximin Luo's avatar Ximin Luo

New upstream version 1.2.3.51+dfsg1

parent 9dc5dc72
...@@ -8,18 +8,18 @@ $(PACKAGE)-$(VERSION).tar.gz: dist ...@@ -8,18 +8,18 @@ $(PACKAGE)-$(VERSION).tar.gz: dist
## FIXME: installing autoconf-generated config.h is just PLAIN WRONG. ## FIXME: installing autoconf-generated config.h is just PLAIN WRONG.
install-exec-hook: install-exec-hook:
cp config.h $(DESTDIR)/$(includedir)/giac cp config.h $(DESTDIR)$(includedir)/giac
./mkinstalldirs $(DESTDIR)/$(prefix)/share/ ./mkinstalldirs $(DESTDIR)$(prefix)/share/
./mkinstalldirs $(DESTDIR)/$(prefix)/share/pixmaps ./mkinstalldirs $(DESTDIR)$(prefix)/share/pixmaps
cp xcas.xpm $(DESTDIR)/$(prefix)/share/pixmaps/xcas.xpm cp xcas.xpm $(DESTDIR)$(prefix)/share/pixmaps/xcas.xpm
./mkinstalldirs $(DESTDIR)/$(prefix)/share/applications ./mkinstalldirs $(DESTDIR)$(prefix)/share/applications
cp xcas.desktop $(DESTDIR)/$(prefix)/share/applications/xcas.desktop cp xcas.desktop $(DESTDIR)$(prefix)/share/applications/xcas.desktop
./mkinstalldirs $(DESTDIR)/$(prefix)/share/application-registry ./mkinstalldirs $(DESTDIR)$(prefix)/share/application-registry
cp xcas.applications $(DESTDIR)/$(prefix)/share/application-registry/xcas.applications cp xcas.applications $(DESTDIR)$(prefix)/share/application-registry/xcas.applications
./mkinstalldirs $(DESTDIR)/$(prefix)/share/icons/ ./mkinstalldirs $(DESTDIR)$(prefix)/share/icons/
./mkinstalldirs $(DESTDIR)/$(prefix)/share/icons/hicolor ./mkinstalldirs $(DESTDIR)$(prefix)/share/icons/hicolor
for SIZE in 256 128 64 32 16; do ./mkinstalldirs $(DESTDIR)/$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE} && ./mkinstalldirs $(DESTDIR)/$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE}/apps && cp icons/xcas_$${SIZE}.png $(DESTDIR)/$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/xcas.png; done for SIZE in 256 128 64 32 16; do ./mkinstalldirs $(DESTDIR)$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE} && ./mkinstalldirs $(DESTDIR)$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE}/apps && cp icons/xcas_$${SIZE}.png $(DESTDIR)$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/xcas.png; done
for SIZE in 256 128 64 32 16; do ./mkinstalldirs $(DESTDIR)/$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE}/mimetypes && cp icons/x-xcas_$${SIZE}.png $(DESTDIR)/$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE}/mimetypes/application-x-xcas.png; done for SIZE in 256 128 64 32 16; do ./mkinstalldirs $(DESTDIR)$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE}/mimetypes && cp icons/x-xcas_$${SIZE}.png $(DESTDIR)$(prefix)/share/icons/hicolor/$${SIZE}x$${SIZE}/mimetypes/application-x-xcas.png; done
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
GF(3,k^6+2*k^5+2,[k,K,a],undef), GF(3,k^6+2*k^5+2,[k,K,a],undef),
(-a^4-a^3-a^2), (-a^4-a^3-a^2),
1*x^3-1*x+1, 1*x^3-1*x+1,
(x+(-a^4-a^3+a^2+a))*(x+(-a^4-a^3+a^2+a+1))*(x+(-a^4-a^3+a^2+a-1)), ((1 % 3)*x+(-a^4-a^3+a^2+a))*(x+(-a^4-a^3+a^2+a+1))*((1 % 3)*x+(-a^4-a^3+a^2+a-1)),
x^3-1 % 3*x+a, x^3-1 % 3*x+a,
[1*x*(1*x+1)*(1*x-1)*(1*x^5-1*x+1)*(1*x^5-1*x-1)*(1*x^5+1*x^4-1)*(1*x^5-1*x^4+1)*(1*x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1*x^4-1*x^3-1*x^2+1)*(1*x^5+1*x^4+1*x^3+1*x^2-1*x+1)*(1*x^5+1*x^4+1*x^3-1*x^2+1*x+1)*(1*x^5+1*x^4+1*x^3-1*x^2+1*x-1)*(1*x^5+1*x^4-1*x^3+1*x^2+1*x+1)*(1*x^5-1*x^4+1*x^3+1*x^2+1*x+1)*(1*x^5-1*x^4+1*x^3+1*x^2+1*x-1)*(1*x^5-1*x^4+1*x^3-1*x^2-1*x-1)*(1*x^5-1*x^4-1*x^3-1*x^2+1*x-1)],
GF(3,k^20-k^19-k^18-k^17-k^16+k^12-k^11-k^10+k^9+k^8+k^7-k^6+k-1,[k,L,b],undef), GF(3,k^20-k^19-k^18-k^17-k^16+k^12-k^11-k^10+k^9+k^8+k^7-k^6+k-1,[k,L,b],undef),
......
...@@ -12,7 +12,7 @@ x^23-1, ...@@ -12,7 +12,7 @@ x^23-1,
[1,[[(1 % 2)*x+1 % 2,1],[(1 % 2)*x^11+(1 % 2)*x^9+(1 % 2)*x^7+(1 % 2)*x^6+(1 % 2)*x^5+(1 % 2)*x+1 % 2,1],[(1 % 2)*x^11+(1 % 2)*x^10+(1 % 2)*x^6+(1 % 2)*x^5+(1 % 2)*x^4+(1 % 2)*x^2+1 % 2,1]]], [1,[[(1 % 2)*x+1 % 2,1],[(1 % 2)*x^11+(1 % 2)*x^9+(1 % 2)*x^7+(1 % 2)*x^6+(1 % 2)*x^5+(1 % 2)*x+1 % 2,1],[(1 % 2)*x^11+(1 % 2)*x^10+(1 % 2)*x^6+(1 % 2)*x^5+(1 % 2)*x^4+(1 % 2)*x^2+1 % 2,1]]],
1 % 2,"No such variable FF", 1 % 2,"No such variable FF",
GF(2,a^11+a^8+a^6+a^4+a^3+a+1,[a,FF],undef), GF(2,a^11+a^8+a^6+a^4+a^3+a+1,[a,FF],undef),
(x+FF(a^10+a^7+a^2+a))*(x+FF(a^10+a^7+a^4+a^3+a+1))*(x+FF(a^10+a^7+a^6+a^5+a^4))*(x+FF(a^10+a^8+a^4+a^3+a^2))*(x+FF(a^10+a^9+a^7+a^5+a))*(x+FF(a^10+a^9+a^8+a^5+a^3+a^2+a))*(x+FF(a^4+a^3+a^2+a+1))*(x+FF(a^6+a^5+a^2+a))*(x+FF(a^8+a^6+a^4+a^2+1))*(x+FF(a^9+a^7+a^5+a^4+a^3+a^2+a))*(x+FF(a^9+a^8+a^7+a^6+a^5+a^3+a^2+a+1)), ((1 % 2)*x+FF(a^10+a^7+a^2+a))*((1 % 2)*x+FF(a^10+a^7+a^4+a^3+a+1))*((1 % 2)*x+FF(a^10+a^7+a^6+a^5+a^4))*((1 % 2)*x+FF(a^10+a^8+a^4+a^3+a^2))*((1 % 2)*x+FF(a^10+a^9+a^7+a^5+a))*(x+FF(a^10+a^9+a^8+a^5+a^3+a^2+a))*((1 % 2)*x+FF(a^4+a^3+a^2+a+1))*((1 % 2)*x+FF(a^6+a^5+a^2+a))*((1 % 2)*x+FF(a^8+a^6+a^4+a^2+1))*((1 % 2)*x+FF(a^9+a^7+a^5+a^4+a^3+a^2+a))*((1 % 2)*x+FF(a^9+a^8+a^7+a^6+a^5+a^3+a^2+a+1)),
FF(a^10+a^7+a^2+a), FF(a^10+a^7+a^2+a),
{1,4,9,16,2,13,3,18,12,8,6}, {1,4,9,16,2,13,3,18,12,8,6},
1, 1,
......
...@@ -64,7 +64,7 @@ matrix[[1+i,1,2],[2,3,5],[3,6,9-i]], ...@@ -64,7 +64,7 @@ matrix[[1+i,1,2],[2,3,5],[3,6,9-i]],
-1/3, -1/3,
+infinity, +infinity,
2, 2,
4*cos(x)^2-1, 2*cos(2*x)+1,
-1/pi+1/pi^2*(x-pi)+(pi^2-6)/(6*pi^3)*(x-pi)^2+(-pi^2+6)/(6*pi^4)*(x-pi)^3+(-pi^4+20*pi^2-120)/(120*pi^5)*(x-pi)^4+(pi^4-20*pi^2+120)/(120*pi^6)*(x-pi)^5+(x-pi)^6*order_size(x-pi), -1/pi+1/pi^2*(x-pi)+(pi^2-6)/(6*pi^3)*(x-pi)^2+(-pi^2+6)/(6*pi^4)*(x-pi)^3+(-pi^4+20*pi^2-120)/(120*pi^5)*(x-pi)^4+(pi^4-20*pi^2+120)/(120*pi^6)*(x-pi)^5+(x-pi)^6*order_size(x-pi),
-1/pi+1/pi^2*(x-pi)+(pi^2-6)/(6*pi^3)*(x-pi)^2+(x-pi)^3*order_size(x-pi), -1/pi+1/pi^2*(x-pi)+(pi^2-6)/(6*pi^3)*(x-pi)^2+(x-pi)^3*order_size(x-pi),
-cos(1)+(-cos(1)+1/2*sin(1))*(x-1)+(-5/6*cos(1)+1/2*sin(1))*(x-1)^2+(x-1)^3*order_size(x-1), -cos(1)+(-cos(1)+1/2*sin(1))*(x-1)+(-5/6*cos(1)+1/2*sin(1))*(x-1)^2+(x-1)^3*order_size(x-1),
...@@ -234,7 +234,7 @@ poly1[1,1.0,-2.0,0.0], ...@@ -234,7 +234,7 @@ poly1[1,1.0,-2.0,0.0],
-9856989898997, -9856989898997,
-2, -2,
GF(2,a^2+a+1,[a,FF],undef), GF(2,a^2+a+1,[a,FF],undef),
(x-1)*(x+FF(a))*(x+FF(a+1)), ((1 % 2)*x+1 % 2)*((1 % 2)*x+FF(a))*(x+FF(a+1)),
GF(2,j^2+j+1,[j,F4],undef), GF(2,j^2+j+1,[j,F4],undef),
[0,F4(j)], [0,F4(j)],
[0,0],[F4(j),0],[0,F4(j)],[F4(j),F4(j)], [0,0],[F4(j),0],[0,F4(j)],[F4(j),F4(j)],
...@@ -259,8 +259,8 @@ matrix[[-8.1-X,-2.1,6.9,-9.1,2.9],[-5.1,-2.1-X,9.9,9.9,2.9],[-2.1,8.9,7.9-X,-7.1 ...@@ -259,8 +259,8 @@ matrix[[-8.1-X,-2.1,6.9,-9.1,2.9],[-5.1,-2.1-X,9.9,9.9,2.9],[-2.1,8.9,7.9-X,-7.1
[[-2.0,1.0],[1.5,-0.5]], [[-2.0,1.0],[1.5,-0.5]],
GF(3,u^3+2*u+1,[u,F],undef), GF(3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i)*x*y^2-8*x*y+(-6*i)*x+8*y^3+4*i*y^2+4*y+i,8*i*x^3+(-12*i)*x^2+8*i*x*y^2+4*x*y+6*i*x+(-4*i)*y^2-2*y-i],[1,0,-4*x^2+4*x-4*y^2-2,0,4*x^2-4*x+1]])/(8*x*y-4*y),56,M]), pnt(pnt[rootof([[2*i*x-2*y-i,(-2*i)*x+i,(-8*i)*x^3+8*x^2*y+12*i*x^2+(-8*i)*x*y^2-8*x*y+(-6*i)*x+8*y^3+4*i*y^2+4*y+i,8*i*x^3+(-12*i)*x^2+8*i*x*y^2+4*x*y+6*i*x+(-4*i)*y^2-2*y-i],[1,0,-4*x^2+4*x-4*y^2-2,0,4*x^2-4*x+1]])/(8*x*y-4*y),56,M]),
pnt(pnt[rootof([[2*i*x-2*y-i,(-2*i)*x+i,(-8*i)*x^3+8*x^2*y+12*i*x^2+(-8*i)*x*y^2-8*x*y+(-6*i)*x+8*y^3+4*i*y^2+4*y+i,8*i*x^3+(-12*i)*x^2+8*i*x*y^2+4*x*y+6*i*x+(-4*i)*y^2-2*y-i],[1,0,-4*x^2+4*x-4*y^2-2,0,4*x^2-4*x+1]])/(8*x*y-4*y),56,N]), pnt(pnt[rootof([[2*i*x-2*y-i,(-2*i)*x+i,(-8*i)*x^3+8*x^2*y+12*i*x^2+(-8*i)*x*y^2-8*x*y+(-6*i)*x+8*y^3+4*i*y^2+4*y+i,8*i*x^3+(-12*i)*x^2+8*i*x*y^2+4*x*y+6*i*x+(-4*i)*y^2-2*y-i],[1,0,-4*x^2+4*x-4*y^2-2,0,4*x^2-4*x+1]])/(8*x*y-4*y),56,N]),
0, 0,
assume[DOM_FLOAT,1.2],assume[DOM_int,-1], assume[real,1.2],assume[DOM_int,-1],
"Done", "Done",
parameter([a,-10.0,10.0,-1,0]), parameter([a,-10.0,10.0,-1,0]),
parameter([b,-10.0,10.0,-1,0]), parameter([b,-10.0,10.0,-1,0]),
......
...@@ -24,7 +24,7 @@ sin(2*x)/2, ...@@ -24,7 +24,7 @@ sin(2*x)/2,
2*(-676039/16777216*ln(-sin(x)+1)+676039/16777216*ln(sin(x)+1)+(-334639305*sin(x)^23+3904125225*sin(x)^21-20814564771*sin(x)^19+67013911107*sin(x)^17-144986993866*sin(x)^15+221803567050*sin(x)^13-245588699190*sin(x)^11+197767334710*sin(x)^9-114444262845*sin(x)^7+46038446685*sin(x)^5-12013258455*sin(x)^3+1741541175*sin(x))/(4152360960*(sin(x)^2-1)^12)), 2*(-676039/16777216*ln(-sin(x)+1)+676039/16777216*ln(sin(x)+1)+(-334639305*sin(x)^23+3904125225*sin(x)^21-20814564771*sin(x)^19+67013911107*sin(x)^17-144986993866*sin(x)^15+221803567050*sin(x)^13-245588699190*sin(x)^11+197767334710*sin(x)^9-114444262845*sin(x)^7+46038446685*sin(x)^5-12013258455*sin(x)^3+1741541175*sin(x))/(4152360960*(sin(x)^2-1)^12)),
2*(15*tan(x/2)^4-30*tan(x/2)^3+40*tan(x/2)^2-20*tan(x/2)+7)/(15*(tan(x/2)-1)^5), 2*(15*tan(x/2)^4-30*tan(x/2)^3+40*tan(x/2)^2-20*tan(x/2)+7)/(15*(tan(x/2)-1)^5),
2*(-15*tan(x/2)^4-30*tan(x/2)^3-40*tan(x/2)^2-20*tan(x/2)-7)/(15*(tan(x/2)+1)^5), 2*(-15*tan(x/2)^4-30*tan(x/2)^3-40*tan(x/2)^2-20*tan(x/2)-7)/(15*(tan(x/2)+1)^5),
x*ln(x+sqrt(x^2+1))-sqrt(x^2+1), x*ln(x+sqrt(1+x^2))-sqrt(x^2+1),
x*atan(2*x/(1+x^2))-1/2*(-ln(x^4+6*x^2+1)+2/sqrt(2)*ln((2*x^2+6-4*sqrt(2))/(2*x^2+6+4*sqrt(2)))), x*atan(2*x/(1+x^2))-1/2*(-ln(x^4+6*x^2+1)+2/sqrt(2)*ln((2*x^2+6-4*sqrt(2))/(2*x^2+6+4*sqrt(2)))),
sqrt(x^2+1)*(x^2+1)/3, sqrt(x^2+1)*(x^2+1)/3,
1/cos(x), 1/cos(x),
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -115,6 +115,7 @@ if test "x$CONFIG_DL" = "xyes"; then ...@@ -115,6 +115,7 @@ if test "x$CONFIG_DL" = "xyes"; then
AC_CHECK_LIB(dl, dlopen) AC_CHECK_LIB(dl, dlopen)
fi fi
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long) AC_CHECK_SIZEOF(long long)
......
SUBDIRS = en es fr el local pt zh de SUBDIRS = en es fr el local pt zh de
DIST_SUBDIRS = en es fr el local pt zh de DIST_SUBDIRS = en es fr el local pt zh de
XCASHTML = xcasfr.html xcasen.html codemirror.css codemirror.js xcasmode.js giac.js matchbrackets.js FileSaver.js logo.png longhelp.js giac.tex giacfr.tex test.tex testfr.tex test.html testfr.html XCASHTML = xcasfr.html xcasen.html codemirror.css codemirror.js xcasmode.js giac.js matchbrackets.js FileSaver.js logo.png longhelp.js giac.tex giacfr.tex test.tex testfr.tex test.html testfr.html menufr.js menuen.js show-hint.js show-hint.css w3data.js algoseconde.html
EXTRA_DIST = aide_cas README index.html $(XCASHTML) dxcas/* pari/* EXTRA_DIST = aide_cas README index.html $(XCASHTML) dxcas/* pari/*
dist_pkgdata_DATA = aide_cas dist_pkgdata_DATA = aide_cas
......
This diff is collapsed.
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) (format=latex 2015.4.3) 3 JAN 2017 12:42 This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) (format=latex 2015.4.3) 5 MAY 2017 10:33
entering extended mode entering extended mode
restricted \write18 enabled. restricted \write18 enabled.
%&-line parsing enabled. %&-line parsing enabled.
......
...@@ -11,6 +11,23 @@ ...@@ -11,6 +11,23 @@
\usepackage{listings} \usepackage{listings}
\usepackage{fancyvrb} \usepackage{fancyvrb}
\ifhevea \ifhevea
\newcommand\giacmathjax{
\usepackage[auto]{mathjax}
\renewcommand{\jax@meta}{\begin{rawhtml}<script language="javascript">
var ua = window.navigator.userAgent;
var old_ie = ua.indexOf('MSIE ');
var new_ie = ua.indexOf('Trident/');
if ((old_ie > -1) || (new_ie > -1) || Boolean(window.chrome)){
(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML";
document.getElementsByTagName("head")[0].appendChild(script);
})();
}
</script>
\end{rawhtml}}
}
\newenvironment{giacjs}[1]["max-height: 500px; overflow:auto"] \newenvironment{giacjs}[1]["max-height: 500px; overflow:auto"]
{\loadgiacmain{#1} {\loadgiacmain{#1}
} }
...@@ -65,7 +82,9 @@ ...@@ -65,7 +82,9 @@
\loadgiacscriptend \loadgiacscriptend
} }
\else \else
\newcommand\giacmathjax{}
\newenvironment{giacjs}[1]["max-height: 500px; overflow:auto"]{}{} \newenvironment{giacjs}[1]["max-height: 500px; overflow:auto"]{}{}
\newenvironment{giacjshere}[1]["max-height: 500px; overflow:auto"]{}{}
\newenvironment{giacparijs}[1]["max-height: 500px; overflow:auto"]{}{} \newenvironment{giacparijs}[1]["max-height: 500px; overflow:auto"]{}{}
\newenvironment{giacjsonline}[1]["max-height: 500px; overflow:auto"]{}{} \newenvironment{giacjsonline}[1]["max-height: 500px; overflow:auto"]{}{}
\newenvironment{giacparijsonline}[1]["max-height: 500px; overflow:auto"]{}{} \newenvironment{giacparijsonline}[1]["max-height: 500px; overflow:auto"]{}{}
...@@ -172,10 +191,45 @@ var Module = { ...@@ -172,10 +191,45 @@ var Module = {
UI.render_canvas(f); UI.render_canvas(f);
} }
}, },
count_newline:function(s){
var ss=s.length,i,res=1;
for (i=0;i<ss;i++){
if (s[i]=='\n') res++;
}
return res;
},
ltgt:function(s){
var ss=s.length,i,res='';
for (i=0;i<ss-4;i++){
if (s[i]!='&' || s[i+2]!='t' || s[i+3]!=';'){
res += s[i];
continue;
}
if (s[i+1]=='l'){
res += '<';
i +=3;
continue;
}
if (s[i+1]=='g'){
res += '>';
i +=3;
continue;
}
res += s[i];
}
for (;i<ss;i++) res+=s[i];
return res;
},
rmquote:function(tmp){
var s=tmp.length;
if (s>2 && tmp.charCodeAt(0)==34 && tmp.charCodeAt(s-1)==34)
tmp=tmp.substr(1,s-2);
return tmp;
},
quick:function(field){ quick:function(field){
var tmp1=field.previousSibling.value; var tmp1=field.previousSibling.value;
var tmp=UI.caseval(tmp1); var tmp=UI.caseval(tmp1);
if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); tmp=UI.rmquote(tmp);
tmp=UI.latexeval(tmp); tmp=UI.latexeval(tmp);
Module.print(String.fromCharCode(2)); Module.print(String.fromCharCode(2));
Module.print("<tt>"); Module.print("<tt>");
...@@ -215,7 +269,8 @@ var Module = { ...@@ -215,7 +269,8 @@ var Module = {
if (tmp.length>5 && tmp.substr(0,4)=='<svg') return tmp; if (tmp.length>5 && tmp.substr(0,4)=='<svg') return tmp;
if (UI.usemathjax){ if (UI.usemathjax){
tmp=giaceval('latex(quote('+tmp+'))'); tmp=giaceval('latex(quote('+tmp+'))');
tmp='$$'+tmp.substr(1,tmp.length-2)+'$$'; var dollar=String.fromCharCode(36);
tmp=dollar+dollar+tmp.substr(1,tmp.length-2)+dollar+dollar;
return tmp; return tmp;
} }
tmp=giaceval('mathml(quote('+tmp+',1))'); tmp=giaceval('mathml(quote('+tmp+',1))');
...@@ -230,7 +285,7 @@ var Module = { ...@@ -230,7 +285,7 @@ var Module = {
Module.print(tmp); Module.print(tmp);
tmp=UI.caseval(tmp); tmp=UI.caseval(tmp);
if (mode==1){ if (mode==1){
if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); tmp=UI.rmquote(tmp);
} }
if (mode==2){ if (mode==2){
tmp=UI.latexeval(tmp); tmp=UI.latexeval(tmp);
...@@ -255,6 +310,29 @@ var Module = { ...@@ -255,6 +310,29 @@ var Module = {
UI.exec(f); UI.exec(f);
f=f.nextSibling; f=f.nextSibling;
} }
},
execonload: function(field){
var f=field.nextSibling;
if (f && f.innerHTML=="onload" && field.nodeName=="BUTTON"){
field.click();
return;
}
f=field.firstChild;
while (f){
UI.execonload(f);
f=f.nextSibling;
}
},
textarealtgt: function(field){
if (field.nodeName=="TEXTAREA"){
field.value=UI.ltgt(field.value);
return;
}
var f=field.firstChild;
while (f){
UI.textarealtgt(f);
f=f.nextSibling;
}
} }
}; };
window.onload = function(e){ window.onload = function(e){
...@@ -284,6 +362,8 @@ var Module = { ...@@ -284,6 +362,8 @@ var Module = {
giaceval('set_language(1);'); giaceval('set_language(1);');
giaceval('factor(x^4-1)'); giaceval('factor(x^4-1)');
giaceval('sin(x+y)+f(t)'); giaceval('sin(x+y)+f(t)');
UI.textarealtgt(document.documentElement);
UI.execonload(document.documentElement);
// if (confirm('Exec commands?')) UI.exec(document.documentElement); // if (confirm('Exec commands?')) UI.exec(document.documentElement);
}; };
</script> </script>
...@@ -294,7 +374,13 @@ var Module = { ...@@ -294,7 +374,13 @@ var Module = {
\newenvironment{giacprog}{ \newenvironment{giacprog}{
\verbatim} \verbatim}
{\endverbatim {\endverbatim
\@print{<button onclick="var field=parentNode.previousSibling; var tmp=field.innerHTML;if(tmp.length==0) tmp=field.value;var t=createElement('TEXTAREA');t.style.fontSize=16;t.cols=60;t.rows=10;t.value=tmp;tmp=UI.caseval(tmp);if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2);nextSibling.innerHTML=tmp; UI.render_canvas(nextSibling.innerHTML); field.parentNode.insertBefore(t,field);field.parentNode.removeChild(field);">ok</button><span></span><br> \@print{<button onclick="var field=parentNode.previousSibling; var tmp=field.innerHTML;if(tmp.length==0) tmp=field.value;var t=createElement('TEXTAREA');t.style.fontSize=16;t.cols=60;t.rows=10;var tmp1=UI.ltgt(tmp);t.value=tmp1;tmp=UI.caseval(tmp);tmp=UI.rmquote(tmp);nextSibling.innerHTML=tmp; UI.render_canvas(nextSibling.innerHTML); field.parentNode.insertBefore(t,field);field.parentNode.removeChild(field);">ok</button><span></span><br>
}
}
\newenvironment{giaconload}{
\verbatim}
{\endverbatim
\@print{<button onclick="var field=parentNode.previousSibling; var tmp=field.innerHTML;if(tmp.length==0) tmp=field.value;var t=createElement('TEXTAREA');t.style.fontSize=16;t.cols=60;t.rows=UI.count_newline(tmp);var tmp1=UI.ltgt(tmp);t.value=tmp1;tmp=UI.caseval(tmp);tmp=UI.rmquote(tmp);nextSibling.innerHTML=tmp; UI.render_canvas(nextSibling.innerHTML); field.parentNode.insertBefore(t,field);field.parentNode.removeChild(field);">ok</button><span>onload</span><br>
} }
} }
\else \else
...@@ -306,6 +392,14 @@ var Module = { ...@@ -306,6 +392,14 @@ var Module = {
{ {
\end{Verbatim} \end{Verbatim}
} }
\newenvironment{giaconload}
{
\VerbatimEnvironment
\begin{Verbatim}
}
{
\end{Verbatim}
}
\fi \fi
% for example \giaccmd{factor}{x^4-1} % for example \giaccmd{factor}{x^4-1}
...@@ -315,7 +409,7 @@ var Module = { ...@@ -315,7 +409,7 @@ var Module = {
\@getprint{#1>#3} \@getprint{#1>#3}
\@print{</textarea><button onclick="var tmp=UI.caseval(} \@print{</textarea><button onclick="var tmp=UI.caseval(}
\@getprint{'#2('} \@getprint{'#2('}
\@print{+previousSibling.value+')');if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling)">} \@print{+previousSibling.value+')');tmp=UI.rmquote(tmp); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling)">}
\@getprint{#2} \@getprint{#2}
\@print{</button><span></span><br>} \@print{</button><span></span><br>}
\else \else
...@@ -326,7 +420,7 @@ var Module = { ...@@ -326,7 +420,7 @@ var Module = {
\ifhevea \ifhevea
\@print{<textarea onkeypress="UI.ckenter(event,this,1)" } \@print{<textarea onkeypress="UI.ckenter(event,this,1)" }
\@getprint{#1>#2} \@getprint{#1>#2}
\@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">ok</button><span></span><br>} \@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);tmp=UI.rmquote(tmp); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">ok</button><span></span><br>}
\else \else
\lstinline@#2@ \lstinline@#2@
\fi \fi
...@@ -335,7 +429,7 @@ var Module = { ...@@ -335,7 +429,7 @@ var Module = {
\ifhevea \ifhevea
\@print{<textarea onkeypress="UI.ckenter(event,this,1)" } \@print{<textarea onkeypress="UI.ckenter(event,this,1)" }
\@getprint{#1>#2} \@getprint{#1>#2}
\@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">} \@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);tmp=UI.rmquote(tmp); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">}
\@getprint{#3} \@getprint{#3}
\@print{</button><span></span><br>} \@print{</button><span></span><br>}
\else \else
...@@ -346,7 +440,7 @@ var Module = { ...@@ -346,7 +440,7 @@ var Module = {
\ifhevea \ifhevea
\@print{<textarea onkeypress="UI.ckenter(event,this,1)" } \@print{<textarea onkeypress="UI.ckenter(event,this,1)" }
\@getprint{#1>#2} \@getprint{#1>#2}
\@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">ok</button><span></span><br>} \@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);tmp=UI.rmquote(tmp); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">ok</button><span></span><br>}
\else \else
\lstinline@#2@ \lstinline@#2@
\fi \fi
...@@ -367,7 +461,7 @@ var Module = { ...@@ -367,7 +461,7 @@ var Module = {
\newcommand{\giacinputmath}[2][style="width:400px;height:20px;font-size:large"]{\ifhevea \newcommand{\giacinputmath}[2][style="width:400px;height:20px;font-size:large"]{\ifhevea
\begin{rawhtml}<br><textarea onkeypress="UI.ckenter(event,this,2)" \end{rawhtml} \begin{rawhtml}<br><textarea onkeypress="UI.ckenter(event,this,2)" \end{rawhtml}
\@getprint{#1>#2} \@getprint{#1>#2}
\begin{rawhtml}</textarea><button onclick="var tmp=UI.caseval(previousSibling.value); tmp=UI.latexeval(tmp);nextSibling.innerHTML='&nbsp;'+tmp; if (UI.usemathjax) MathJax.Hub.Queue(['Typeset',MathJax.Hub,nextSibling])">ok</button><span></span><br>\end{rawhtml} \begin{rawhtml}</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value); tmp=UI.latexeval(tmp);nextSibling.innerHTML='&nbsp;'+tmp; if (UI.usemathjax) MathJax.Hub.Queue(['Typeset',MathJax.Hub,nextSibling])">ok</button><span></span><br>\end{rawhtml}
\else \else
\lstinline@#2@ \lstinline@#2@
\fi \fi
...@@ -397,7 +491,7 @@ var Module = { ...@@ -397,7 +491,7 @@ var Module = {
\newcommand{\giacinputbigmath}[2][style="width:800px;height:20px;font-size:large"]{\ifhevea \newcommand{\giacinputbigmath}[2][style="width:800px;height:20px;font-size:large"]{\ifhevea
\begin{rawhtml}<div><textarea onkeypress="UI.ckenter(event,this,2)" \end{rawhtml} \begin{rawhtml}<div><textarea onkeypress="UI.ckenter(event,this,2)" \end{rawhtml}
\@getprint{#1>#2} \@getprint{#1>#2}
\begin{rawhtml}</textarea><button onclick="var tmp=UI.caseval(previousSibling.value); tmp=UI.latexeval(tmp);nextSibling.innerHTML=tmp; if (UI.usemathjax) MathJax.Hub.Queue(['Typeset',MathJax.Hub,nextSibling])">ok</button><div style="width:800px;max-height:200px;overflow:auto;color:blue;text-align:center"></div></div>\end{rawhtml} \begin{rawhtml}</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value); tmp=UI.latexeval(tmp);nextSibling.innerHTML=tmp; if (UI.usemathjax) MathJax.Hub.Queue(['Typeset',MathJax.Hub,nextSibling])">ok</button><div style="width:800px;max-height:200px;overflow:auto;color:blue;text-align:center"></div></div>\end{rawhtml}
\else \else
\lstinline@#2@ \lstinline@#2@
\fi \fi
......
...@@ -10,6 +10,23 @@ ...@@ -10,6 +10,23 @@
\usepackage{listings} \usepackage{listings}
\usepackage{fancyvrb} \usepackage{fancyvrb}
\ifhevea \ifhevea
\newcommand\giacmathjax{
\usepackage[auto]{mathjax}
\renewcommand{\jax@meta}{\begin{rawhtml}<script language="javascript">
var ua = window.navigator.userAgent;
var old_ie = ua.indexOf('MSIE ');
var new_ie = ua.indexOf('Trident/');
if ((old_ie > -1) || (new_ie > -1) || Boolean(window.chrome)){
(function () {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML";
document.getElementsByTagName("head")[0].appendChild(script);
})();
}
</script>
\end{rawhtml}}
}
\newenvironment{giacjs}[1]["max-height: 500px; overflow:auto"] \newenvironment{giacjs}[1]["max-height: 500px; overflow:auto"]
{\loadgiacmain{#1} {\loadgiacmain{#1}
} }
...@@ -64,6 +81,7 @@ ...@@ -64,6 +81,7 @@
\loadgiacscriptend \loadgiacscriptend
} }
\else \else
\newcommand\giacmathjax{}
\newenvironment{giacjs}[1]["max-height: 500px; overflow:auto"]{}{} \newenvironment{giacjs}[1]["max-height: 500px; overflow:auto"]{}{}
\newenvironment{giacjshere}[1]["max-height: 500px; overflow:auto"]{}{} \newenvironment{giacjshere}[1]["max-height: 500px; overflow:auto"]{}{}
\newenvironment{giacparijs}[1]["max-height: 500px; overflow:auto"]{}{} \newenvironment{giacparijs}[1]["max-height: 500px; overflow:auto"]{}{}
...@@ -159,10 +177,45 @@ var Module = { ...@@ -159,10 +177,45 @@ var Module = {
} }
} }
}, },
count_newline:function(s){
var ss=s.length,i,res=1;
for (i=0;i<ss;i++){
if (s[i]=='\n') res++;
}
return res;
},
ltgt:function(s){
var ss=s.length,i,res='';
for (i=0;i<ss-4;i++){
if (s[i]!='&' || s[i+2]!='t' || s[i+3]!=';'){
res += s[i];
continue;
}
if (s[i+1]=='l'){
res += '<';
i +=3;
continue;
}
if (s[i+1]=='g'){
res += '>';
i +=3;
continue;
}
res += s[i];
}
for (;i<ss;i++) res+=s[i];
return res;
},
rmquote:function(tmp){
var s=tmp.length;
if (s>2 && tmp.charCodeAt(0)==34 && tmp.charCodeAt(s-1)==34)
tmp=tmp.substr(1,s-2);
return tmp;
},
quick:function(field){ quick:function(field){
var tmp1=field.previousSibling.value; var tmp1=field.previousSibling.value;
var tmp=UI.caseval(tmp1); var tmp=UI.caseval(tmp1);
if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); tmp=UI.rmquote(tmp);
tmp=UI.latexeval(tmp); tmp=UI.latexeval(tmp);
Module.print(String.fromCharCode(2)); Module.print(String.fromCharCode(2));
Module.print("<tt>"); Module.print("<tt>");
...@@ -214,7 +267,8 @@ var Module = { ...@@ -214,7 +267,8 @@ var Module = {
if (tmp.length>5 && tmp.substr(0,4)=='<svg') return tmp; if (tmp.length>5 && tmp.substr(0,4)=='<svg') return tmp;
if (UI.usemathjax){ if (UI.usemathjax){
tmp=giaceval('latex(quote('+tmp+'))'); tmp=giaceval('latex(quote('+tmp+'))');
tmp='$$'+tmp.substr(1,tmp.length-2)+'$$'; var dollar=String.fromCharCode(36);
tmp=dollar+dollar+tmp.substr(1,tmp.length-2)+dollar+dollar;
return tmp; return tmp;
} }
tmp=giaceval('mathml(quote('+tmp+',1))'); tmp=giaceval('mathml(quote('+tmp+',1))');
...@@ -229,7 +283,7 @@ var Module = { ...@@ -229,7 +283,7 @@ var Module = {
Module.print(tmp); Module.print(tmp);
tmp=UI.caseval(tmp); tmp=UI.caseval(tmp);
if (mode==1){ if (mode==1){
if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); tmp=UI.rmquote(tmp);
} }
if (mode==2){ if (mode==2){
tmp=UI.latexeval(tmp); tmp=UI.latexeval(tmp);
...@@ -250,6 +304,29 @@ var Module = { ...@@ -250,6 +304,29 @@ var Module = {
UI.exec(f); UI.exec(f);
f=f.nextSibling; f=f.nextSibling;
} }
},
execonload: function(field){
var f=field.nextSibling;
if (f && f.innerHTML=="onload" && field.nodeName=="BUTTON"){
field.click();
return;
}
f=field.firstChild;
while (f){
UI.execonload(f);
f=f.nextSibling;
}
},
textarealtgt: function(field){
if (field.nodeName=="TEXTAREA"){
field.value=UI.ltgt(field.value);
return;
}
var f=field.firstChild;
while (f){
UI.textarealtgt(f);
f=f.nextSibling;
}
} }
}; };
window.onload = function(e){ window.onload = function(e){
...@@ -278,6 +355,8 @@ var Module = { ...@@ -278,6 +355,8 @@ var Module = {
giaceval('set_language(1);'); giaceval('set_language(1);');
giaceval('factor(x^4-1)'); giaceval('factor(x^4-1)');
giaceval('sin(x+y)+f(t)'); giaceval('sin(x+y)+f(t)');
UI.textarealtgt(document.documentElement);
UI.execonload(document.documentElement);
// if (confirm('Executer les commandes?')) UI.exec(document.documentElement); // if (confirm('Executer les commandes?')) UI.exec(document.documentElement);
}; };
</script> </script>
...@@ -288,7 +367,13 @@ var Module = { ...@@ -288,7 +367,13 @@ var Module = {
\newenvironment{giacprog}{ \newenvironment{giacprog}{
\verbatim} \verbatim}
{\endverbatim {\endverbatim
\@print{<button onclick="var field=parentNode.previousSibling; var tmp=field.innerHTML;if(tmp.length==0) tmp=field.value;var t=createElement('TEXTAREA');t.style.fontSize=16;t.cols=60;t.rows=10;t.value=tmp;tmp=UI.caseval(tmp);if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2);nextSibling.innerHTML=tmp; UI.render_canvas(nextSibling.innerHTML);field.parentNode.insertBefore(t,field);field.parentNode.removeChild(field);">ok</button><span></span><br> \@print{<button onclick="var field=parentNode.previousSibling; var tmp=field.innerHTML;if(tmp.length==0) tmp=field.value;var t=createElement('TEXTAREA');t.style.fontSize=16;t.cols=60;t.rows=10;var tmp1=UI.ltgt(tmp);t.value=tmp1;tmp=UI.caseval(tmp);tmp=UI.rmquote(tmp);nextSibling.innerHTML=tmp; UI.render_canvas(nextSibling.innerHTML); field.parentNode.insertBefore(t,field);field.parentNode.removeChild(field);">ok</button><span></span><br>
}
}
\newenvironment{giaconload}{
\verbatim}
{\endverbatim
\@print{<button onclick="var field=parentNode.previousSibling; var tmp=field.innerHTML;if(tmp.length==0) tmp=field.value;var t=createElement('TEXTAREA');t.style.fontSize=16;t.cols=60;t.rows=UI.count_newline(tmp);var tmp1=UI.ltgt(tmp);t.value=tmp1;tmp=UI.caseval(tmp);tmp=UI.rmquote(tmp);nextSibling.innerHTML=tmp; UI.render_canvas(nextSibling.innerHTML); field.parentNode.insertBefore(t,field);field.parentNode.removeChild(field);">ok</button><span>onload</span><br>
} }
} }
\else \else
...@@ -300,6 +385,14 @@ var Module = { ...@@ -300,6 +385,14 @@ var Module = {
{ {
\end{Verbatim} \end{Verbatim}
} }
\newenvironment{giaconload}
{
\VerbatimEnvironment
\begin{Verbatim}
}
{
\end{Verbatim}
}
\fi \fi
% for example \giaccmd{factor}{x^4-1} % for example \giaccmd{factor}{x^4-1}
...@@ -309,7 +402,7 @@ var Module = { ...@@ -309,7 +402,7 @@ var Module = {
\@getprint{#1>#3} \@getprint{#1>#3}
\@print{</textarea><button onclick="var tmp=UI.caseval(} \@print{</textarea><button onclick="var tmp=UI.caseval(}
\@getprint{'#2('} \@getprint{'#2('}
\@print{+previousSibling.value+')');if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">} \@print{+previousSibling.value+')');tmp=UI.rmquote(tmp); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">}
\@getprint{#2} \@getprint{#2}
\@print{</button><span></span><br>} \@print{</button><span></span><br>}
\else \else
...@@ -320,7 +413,7 @@ var Module = { ...@@ -320,7 +413,7 @@ var Module = {
\ifhevea \ifhevea
\@print{<textarea onkeypress="UI.ckenter(event,this,1)" } \@print{<textarea onkeypress="UI.ckenter(event,this,1)" }
\@getprint{#1>#2} \@getprint{#1>#2}
\@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">ok</button><span></span><br>} \@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);tmp=UI.rmquote(tmp); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">ok</button><span></span><br>}
\else \else
\lstinline@#2@ \lstinline@#2@
\fi \fi
...@@ -329,7 +422,7 @@ var Module = { ...@@ -329,7 +422,7 @@ var Module = {
\ifhevea \ifhevea
\@print{<textarea onkeypress="UI.ckenter(event,this,1)" } \@print{<textarea onkeypress="UI.ckenter(event,this,1)" }
\@getprint{#1>#2} \@getprint{#1>#2}
\@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">} \@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);tmp=UI.rmquote(tmp); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">}
\@getprint{#3} \@getprint{#3}
\@print{</button><span></span><br>} \@print{</button><span></span><br>}
\else \else
...@@ -340,7 +433,7 @@ var Module = { ...@@ -340,7 +433,7 @@ var Module = {
\ifhevea \ifhevea
\@print{<textarea onkeypress="UI.ckenter(event,this,1)" } \@print{<textarea onkeypress="UI.ckenter(event,this,1)" }
\@getprint{#1>#2} \@getprint{#1>#2}
\@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);if (tmp.charCodeAt(0)==34) tmp=tmp.substr(1,tmp.length-2); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">ok</button><span></span><br>} \@print{</textarea><button onclick="previousSibling.style.display='inherit';var tmp=UI.caseval(previousSibling.value);tmp=UI.rmquote(tmp); nextSibling.innerHTML='&nbsp;'+tmp;UI.render_canvas(nextSibling);">ok</button><span></span><br>}
\else \else
\lstinline@#2@ \lstinline@#2@
\fi \fi
......
This diff is collapsed.
This diff is collapsed.
...@@ -87,13 +87,15 @@ for this file and check your installation by compiling it\\ ...@@ -87,13 +87,15 @@ for this file and check your installation by compiling it\\
\section{Commands} \section{Commands}
You must first enter the command \verb|\input{giac.tex}| in the You must first enter the command \verb|\input{giac.tex}| in the
preamble of your \LaTeX\ source file preamble of your \LaTeX\ source file
and add one of the commands \verb|\begin{giacjs}|\index{giacjs} or and add one of the commands \verb|\begin{giacjshere}|\index{giacjshere}
\verb|\begin{giacjs}|\index{giacjs} or
\verb|\begin{giacjsonline}|\index{giacjsonline} \verb|\begin{giacjsonline}|\index{giacjsonline}