vermaseren / form

The FORM project for symbolic manipulation of very big expressions
GNU General Public License v3.0
982 stars 118 forks source link

Use of form code directly in c++ #350

Open pramod-pixel opened 4 years ago

pramod-pixel commented 4 years ago

I calculated a big algebraic expression in FORM code. I need to call the result of this ".frm" file directly in a C++ code. How should I proceed? However, I can use "Format C++" command in FORM code to get C++ output then I can paste it in my C++ code. But this is tedious because I have to do the same with other ".frm" files.

tueda commented 4 years ago

I guess what you want to do is to generate an algebraic expression in an output file that can be included from a C++ file. Example:

S x,y;
L F = (x+y)^2;
.sort
Format C;
#write <output.cpp-incl> "func = %e", F
.end