# using sage library in C or C++?

Is there a way to run sage library in C/C++ or include the sage in C/C++? For example, I want to calculate minkowski sum, difference or decomposition in C or C++?

using sage library in C or C++?

1

I obviously don't know your exact use case. First of all, this has nothing to do with Sage, it is really a Python question.

Embedding Python in C is explained here: https://docs.python.org/2/extending/e...

Alternatively: instead of using Sage in your C/C++ program, you could reverse this and use your C/C++ program inside Sage. That is relatively easy using Cython.

Asked: **
2017-10-17 10:57:44 -0500
**

Seen: **513 times**

Last updated: **Nov 13 '17**

how to use sage in PyCharm on CoCalc

Running Python code from Jupyter and transforming it in a Sage function

import CSV in python using jupyter notebook on cocalc cloud

programming of looping to print selected value of m

which parent class for C-finite sequences?

Computing Variational Derivatives

How do I convert a notebook to a python script?

Is it possible to use Arb-library commands directly in Sagemath?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.

The only possibility is to call the Sage python interpreter from your C/C++ program.