ArticleslgStudy

computer science

Xcas

Xcas is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Xcas rather than just read about it. In short: Xcas is a user interface to Giac, which is an open source computer algebra system (CAS) for Windows, macOS and Linux among many other platforms. Giac can be used directly inside software written in C++; Xcas itself is written in C++.

Xcas — main illustration
Xcas — illustration

Key takeaways

  • Xcas belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Xcas to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Xcas from memory before moving on to harder problems.

Reference excerpt

Xcas is a user interface to Giac, which is an open source computer algebra system (CAS) for Windows, macOS and Linux among many other platforms. Giac can be used directly inside software written in C++; Xcas itself is written in C++. Xcas has compatibility modes with many popular algebra systems like WolframAlpha, Mathematica, Maple, or MuPAD. Users can use Giac/Xcas to develop formal algorithms or use it in other software. Giac is used in SageMath for calculus operations. Among other things, Xcas can solve differential equations (Figure 3) and draw graphs.

Features Features that Xcas supports include:

showing input and writes pretty print spreadsheet calculations computer algebra 2D and 3D geometry statistics regression analysis programming solving equations, including those with complex roots (Figure 2) solving trigonometric equations solving differential equations (Figure 3) drawing graphs calculating differentials (or derivatives) of functions (Figure 2) calculating antiderivatives of functions (Figure 2) integral calculus, including calculating area linear algebra Example Xcas commands:

produce mixed fractions: propfrac(42/15) gives 2 + ⁠4/5⁠ calculate square root: sqrt(4) = 2 draw a vertical line in coordinate system: line(x=1) draws the vertical line x=1 in the output window draw graph: plot(function) (for example, plot(3 * x^2 - 5) produces a plot of y = 3x2 − 5 calculate average: mean([3, 4, 2]) is 3 calculate variance: variance([3, 4, 2]) is ⁠2/3⁠ calculate standard deviation: stddev([3, 4, 2]) is ⁠√6/3⁠ calculate determinant of a matrix: det([[1,2], [3,4]]) is −2 calculate local extrema of a function: extrema(-2*cos(x)-cos(x)^2,x) is [0, π] calculate cross product of two vectors: cross([1, 2, 3], [4, 3, 2]) is [-5, 10, -5] calculate permutations: nPr() calculate combinations: nCr() solve equation: solve(equation,x) factoring polynomials: factor(polynomial,x) or cfactor(polynomial,x) differentiation of function: diff(function,x) calculate indefinite integrals/antiderivatives: int(function,x) calculate definite integrals/area under the curve of a function: int(function,x,lowerlimit,upperlimit) calculate volume of a solid of revolution, revolved around the x-axis: int(pi*function^2,x,lowerlimit,upperlimit) finding volume of a solid of revolution (around the y-axis) for a decreasing function: int(2*pi*x*function,x,lowerlimit,upperlimit) separation of variables: split((x+1)*(y-2),[x,y]) produces ⁠[x+1,y−2]⁠ solve differential equation (derivatives are written as y′ or y″): desolve(differential equation,y)

Supported operating systems Microsoft Windows Apple macOS Linux/Unix FreeBSD Android iOS (paid version) Online Various handheld graphing calculators

History Xcas and Giac are open-source projects developed and written by Bernard Parisse and Renée De Graeve at the former Joseph Fourier University of Grenoble (now the Grenoble Alpes University), France since 2000. Xcas and Giac are based on experiences gained with Parisse's former project Erable. Pocket CAS and CAS Calc P11 utilize Giac. The system was also chosen by Hewlett-Packard as the CAS for their HP Prime calculator, which utilizes the Giac/Xcas 1.5.0 engine under a dual-license scheme. In 2013, Xcas was also integrated into GeoGebra's CAS view.

Use in education Since 2015, Xcas is used in the French education system. Xcas is also used in German universities, and in Spain and Mexico. It is also used at the University of North Carolina Wilmington and the University of New Mexico. Xcas is used in particular for learning algebra.

χCAS χCAS (also known as KhiCAS) is a port of Giac/Xcas for certain graphing calculator models that is installed or "sideloaded" as a 3rd party application. (This is as opposed to an officially distributed or supported component of the calculators' OS, as is the case for some HP calculators' Χcas integration.) Casio graphing calculators were the first to support χCAS ("KhiCAS"), as a 3rd party CAS engine on the fx-CG Prizm series, including the fx-CG50 and its successor fx-CG100. Outside of the Prizm series, select models in the Casio 9860 series are supported as well, including the fx-9750GIII and fx-9860GIII. None of these models have their own computer algebra system. χCAS is also available for the TI Nspire CX, CX-II, and Numworks N0110. In 2024, a special cut-down version was released for the TI-84+ CE and some variants from Texas Instruments. Other models that χCAS supports bear 32-bit systems, standing in contrast to the TI-84+ CE's much older 8-bit Zilog Z80-based CPU. These comparatively limited hardware resources necessitated the removal of some features to make the port possible.

See also

Comparison of computer algebra systems WolframAlpha

References

Further reading De Graeve, Renée (2018-01-19) [2013]. "Symbolic computation and Mathematics with the calculator HP Prime" (PDF). www-fourier.ujf-grenoble.fr. Translated by Lecointre, Jean Michel. Archived from the original (PDF) on 2018-01-23. Retrieved 2018-01-22. Parisse, Bernard (2007): "Symbolic algebra and Mathematics with Xcas Archived 2020-08-26 at the Wayback Machine" (list of commands) (PDF). Retrieved 2022-06-08. Parisse, B., University of Grenoble (January, 2016) "Giac/Xcas and Pari/GP" (PDF). Retrieved 2022-06-08. Halkos, George (2015-04-25) [2014]. "Perspectives on integrating a computer algebra system into advanced calculus curricula" (PDF). mpra.ub.uni-muenchen.de. Retrieved 2019-09-06. Verlinden, Olivier (2013): "Symbolic generation of the kinematics of multibody systems in EasyDyn: From MuPAD to Xcas/Giac.". Retrieved 2022-06-08. Commandes XCAS (French) Les principales fonctions de XCAS en calcul formel pour le lycée(French) Barnard Parisse: Mathématiques avec Xcas. (French) Les Maths et Mes Tics Archived 2022-07-02 at the Wayback Machine (French) Fabian Reimers (editor): "Computeralgebra-Rundbrief Nr. 62: Fachgruppe Computeralgebra" (PDF). (German)

External links Official website χCAS main page Xcas online

Illustrations

Xcas illustration
Xcas illustration
Xcas illustration
Xcas illustration
Xcas illustration

Worked examples

Example 1 — a first encounter with Xcas

Start with the simplest possible case. Write down what Xcas claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Xcas before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Xcas ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Xcas

In research
Xcas appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Xcas in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Xcas is common in secondary-school and first-year university syllabi. It links to neighbouring topics C++ libraries, Computer algebra system software for Linux, Computer algebra system software for Windows, so understanding it makes those chapters shorter.
In everyday life
Look for Xcas outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Xcas” →

How to study Xcas in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Xcas means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Xcas out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Xcas in simple terms?

Xcas is a user interface to Giac, which is an open source computer algebra system (CAS) for Windows, macOS and Linux among many other platforms. Giac can be used directly inside software written in C++; Xcas itself is written in C++.

Why does Xcas matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Xcas?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Xcas.

Tags

  • C++ libraries
  • Computer algebra system software for Linux
  • Computer algebra system software for Windows
  • Computer algebra system software for macOS
  • Free computer algebra systems
  • Free mathematics software
  • Free software programmed in C++
  • Software using the GNU General Public License

Keep exploring