Skip to content

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

Notifications You must be signed in to change notification settings

rashti-alireza/Cpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages