rashti-alireza / Cpi

Converting Mathematical Equations Like Tensorial Equations to C Programming Language. For example, in numerical relativity (NR), one can write Einstein's equations in C progrmming language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOI

Cpi

Converting Mathematical Equations Like Tensorial Equations to C Programming Language.

Requirements:

  1. Python
  2. SymPy library with version >= 1.5

Download:

$ git clone https://github.com/rashti-alireza/Cpi.git

Usage:

$ python Cpi.py inputfile

Examples:

For a quick example invoke the following:

$ python Cpi.py quick.example

For a complete example, please read tutorial.math file. Then, to convert the equations in tutorial.math to C code, issue the following command:

$ python Cpi.py tutorial.math

About

Converting Mathematical Equations Like Tensorial Equations to C Programming Language. For example, in numerical relativity (NR), one can write Einstein's equations in C progrmming language.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%