Open pramod-pixel opened 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
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.