How to render LaTeX formula in Pelican

Posted on Tue 14 June 2022 in math • Tagged with math, latex, pelican

Rendering \(\LaTeX\) formulas in Pelican is easy.

Firstly import the pelican plugin in the proper python environment:

pip install pelican-render-math

Add render_math to PLUGINS list in your pelicanconf.py file:

PLUGINS = ['render_math']

Then type formula in your blog post markdown documents:

$$
\frac{1}{2}
$$
$$ \frac{1}{2} $$

And …


Continue reading

Compute the inverse of a matrix

Posted on Tue 14 June 2022 in math • Tagged with math, python

I faced recently the issue of computing the inverse of a matrix, when I wrote the Algae library code. I finally found a solution, and here it is.


Continue reading

Draw a Plot in C with GNU plotutils

Posted on Sun 12 June 2022 in math • Tagged with c

Install plotutils

Debian

$ sudo apt-get install plotutils-dev

Fedora

$ sudo dnf install plotutils-devel

Use PlotUtils to plot a graph

Let us draw the \(sin(x)\) function using math library.

#include <stdio.h>
#include <math.h>

#define RANGE 100

// Export data to stdout
void plot(double *x, double *y, size_t len …

Continue reading