ArticleslgStudy

computer science

FriCAS

FriCAS 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 FriCAS rather than just read about it. In short: FriCAS is a general purpose computer algebra system with a strong focus on mathematical research and development of new algorithms. It comprises an interpreter, a compiler and a still-growing library of more than 1,000 domains and categories.

Key takeaways

  • FriCAS 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 FriCAS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of FriCAS from memory before moving on to harder problems.

Reference excerpt

FriCAS is a general purpose computer algebra system with a strong focus on mathematical research and development of new algorithms. It comprises an interpreter, a compiler and a still-growing library of more than 1,000 domains and categories. FriCAS provides a strongly typed high-level programming language called SPAD and a similar interactive language that uses type-inferencing for convenience. Aldor was intentionally developed being the next generation compile preparation for the Axiom CAS and its forks. FriCAS optionally allows running Aldor programs (aldor is not required for compiling or running fricas). Both languages share a similar syntax and a sophisticated (dependent) type system. FriCAS is comprehensively documented and available as source code and as a binary distribution for the most common platforms. Compiling the Axiom lisp resources requires besides other prerequisites a Common Lisp environment, freely available as open source. A list of (incompatible) CL implementations are supported by fricas lisp code. FriCAS runs on many POSIX platforms such as Linux, macOS, Unix, BSD as well as under Cygwin and Microsoft Windows (WSL).

History Two computer algebra systems named Scratchpad were developed by IBM. The first one was started in 1965 by James Griesmer at the request of Ralph Gomory. The development of this software was stopped before any public release. The second Scratchpad, originally named Scratchpad II, was developed from 1977 on, at Thomas J. Watson Research Center, under the direction of Richard Dimick Jenks. The design is principally due to Richard D. Jenks (IBM Research), James H. Davenport (University of Bath), Barry M. Trager (IBM Research), David Y.Y. Yun (Southern Methodist University) and Victor S. Miller (IBM Research). Early consultants on the project were David Barton (University of California, Berkeley) and James W. Thatcher (IBM Research). Implementation included Robert Sutor (IBM Research), Scott C. Morrison (University of California, Berkeley), Christine J. Sundaresan (IBM Research), Timothy Daly (IBM Research), Patrizia Gianni (University of Pisa), Albrecht Fortenbacher (Universitaet Karlsruhe), Stephen M. Watt (IBM Research and University of Waterloo), Josh Cohen (Yale University), Michael Rothstein (Kent State University), Manuel Bronstein (IBM Research), Michael Monagan (Simon Fraser University), Jonathan Steinbach (IBM Research), William Burge (IBM Research), Jim Wen (IBM Research), William Sit (City College of New York), and Clifton Williamson (IBM Research). Scratchpad II was renamed Axiom when IBM decided, circa 1990, to make it a commercial product. A few years later, it was sold to NAG. In 2001, it was withdrawn from the market and re-released to Tim Daly under the Modified BSD License. In 2007, Axiom was forked as FriCAS by Waldek Hebisch following encouragement from Tim Daly to resolve disagreements about project goals.

Examples FriCAS has a relatively complete implementation of the Risch–Bronstein–Trager algorithm. Another useful feature is stream:

)set stream calculate 5 exp_series := series(exp x, x=0)

1+x+12 x2+16 x3+124 x4+1120 x5+O(x6)

Type: UnivariatePuiseuxSeries(Expression(Integer),x,0) So any coefficient may be retrieved, for instance n=40:

coefficient(exp_series,40)

1815915283247897734345611269596115894272000000000

Type: Expression(Integer)

See also

List of computer algebra systems

References

External links FriCAS Homepage FriCAS Wiki SandBox: Try FriCAS online Documentation at fricas.github.io FriCAS API (sphinx) Source code repositories: SourceForge, GitHub Rosetta stone (pdf) Rosetta stone (some other formats) Rosetta Stone (html) rosettacode.org, Category:SPAD Forum: fricas-devel FriCAS Jupyter Kernel (jfricas/src) FriCAS Jupyter (pypi) Related:

Axiom OpenAxiom A# programming language Aldor programming language

Worked examples

Example 1 — a first encounter with FriCAS

Start with the simplest possible case. Write down what FriCAS 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 FriCAS 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 FriCAS 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 FriCAS

In research
FriCAS 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 FriCAS 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
FriCAS is common in secondary-school and first-year university syllabi. It links to neighbouring topics Common Lisp (programming language) software, Computer algebra system software for Linux, Free computer algebra systems, so understanding it makes those chapters shorter.
In everyday life
Look for FriCAS 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 “FriCAS” →

How to study FriCAS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what FriCAS 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 FriCAS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is FriCAS in simple terms?

FriCAS is a general purpose computer algebra system with a strong focus on mathematical research and development of new algorithms. It comprises an interpreter, a compiler and a still-growing library of more than 1,000 domains and categories.

Why does FriCAS 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 FriCAS?

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 FriCAS.

Tags

  • Common Lisp (programming language) software
  • Computer algebra system software for Linux
  • Free computer algebra systems
  • Free software programmed in Lisp
  • Software using the BSD license

Keep exploring