How To Install c-graph on Ubuntu 20.04

In this tutorial we learn how to install c-graph on Ubuntu 20.04. c-graph is interactive visualization tool for the convolution theorem

Introduction

In this tutorial we learn how to install c-graph on Ubuntu 20.04.

What is c-graph

c-graph is:

GNU C-Graph is a novel tool for visualizing the mathematical operation of convolution. “C-Graph” is an abbreviation for “Convolution Graph”. A game changer, C-Graph – the de facto tool for visualizing the convolution theorem in universities worldwide – is invaluable for lecture demonstrations and lab work in the teaching of signals and systems, as well as other courses featuring convolution. GNU C-Graph is widely used across industries that utilize signal processing techniques for design, test, and development: telecommunications, instrumentation and control, manufacturing, automotive, aviation and aerospace, medical devices, and others. This nifty package seamlessly generates publication quality graphics for papers, lecture demonstrations, and other professional presentations.

GNU C-Graph is interactive, prompting the user to enter character or numerical values from the keyboard - dispensing with the learning curve for writing code. A Texinfo manual provides sample sessions and an overview of the convolution theorem. C-Graph computes the linear convolution of two signals in the time domain then compares their circular convolution by demonstrating the convolution theorem. Each signal is modeled by a register of discrete values simulating samples of a signal, and the discrete Fourier transform (DFT) computed by means of the fast Fourier transform (FFT).

Select, Transform, Visualize : GNU C-Graph makes visualizing convolution easy

There are three methods to install c-graph on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install c-graph Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install c-graph using apt-get by running the following command:

sudo apt-get -y install c-graph

Install c-graph Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install c-graph using apt by running the following command:

sudo apt -y install c-graph

Install c-graph Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install c-graph using aptitude by running the following command:

sudo aptitude -y install c-graph

How To Uninstall c-graph on Ubuntu 20.04

To uninstall only the c-graph package we can use the following command:

sudo apt-get remove c-graph

Uninstall c-graph And Its Dependencies

To uninstall c-graph and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove c-graph

Remove c-graph Configurations and Data

To remove c-graph configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge c-graph

Remove c-graph configuration, data, and all of its dependencies

We can use the following command to remove c-graph configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge c-graph

References

Summary

In this tutorial we learn how to install c-graph package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.