Back to the homepage of Giac/Xcas.

Examples using the giac CAS inside a LATEX file.

B. Parisse
Institut Fourier
UMR 5582 du CNRS
Université de Grenoble

2015

This LATEX source will output an interactive HTML file if you compile with hevea (tested with hevea 2.23), where interactive computations are done with the computer algebra system Giac. You must first enter the command \input{giac.tex} in the preamble and add one of the commands \loadgiacjs or \loadgiacjsonline somewhere in the document: the difference is that the javascript kernel giac.js will be found on the hard disk (assuming that Giac/Xcas is installed on the target computer) or downloaded from Internet.

Inline command example with text or plot output \giacinput, example: \giacinput{factor(x^4-1)} :


Same command with optional style argument
\giacinput[style="width:200px;height:20px;font-size:large"]{plot(sin(x))}

A button with a command applied on the field entry with \giaccmd, example \giaccmd{factor}{x^4-1} :


with optional style argument

For a program or multi-line commands
\begin{giacprog}...\end{giacprog}, example homemade absolute value

f(x):={
  local y;
  if x<0 then y:=-x; else y=x; fi;
  return y;
}


Inline command with mathml output \giacinputmath{} or \giaccmdmath{}{} :







Outline command with mathml output \giacinputbigmath{} or \giaccmdbigmath{}{} :





A link to Xcas under the Sun (by contrast to applications in the cloud that require more server ressources) with a few commands Test online

A slider

=
Not evaled

Back to the homepage of Giac/Xcas.
Ce document a été traduit de LATEX par HEVEA