Please answer to my question thank you.
- To: mathgroup at smc.vnet.net
- Subject: [mg97014] Please answer to my question thank you.
- From: olfa <olfa.mraihi at yahoo.fr>
- Date: Mon, 2 Mar 2009 05:21:27 -0500 (EST)
Hi Mahtematica community,
Is it possible to call from a C++ program,mathematica functions, which
I previously defined in a mathematica file (.nb), to retrieve the
results, and use them in my C++ program?
If so, in which way should I proceed (how to do)?
For example:
I have this input stored in a file intitled sample1.nb:
Reduce[{Element[{a, x}, Integers], n >= nP, x/a^(n/-1) == xP/a^
(nP/-1), y*(1 - a) + x == yP*(1 - a) + xP,
nP == 0}, {nP, xP, yP}, Backsubstitution -> True]
I want my C++ program to call this file then something in my program
should execute it and finally store the output which is: (x \[Element]
Integers && a == 1 && n >= 0 && nP == 0 && xP == x) || ((a | x) \
[Element] Integers && a <= -1 && n >= 0 && nP == 0 && xP == a^n x &&
yP == (-x + a^n x - y + a y)/(-1 + a)) || ((a | x) \[Element] Integers
&& a >= 2 && n >= 0 && nP == 0 && xP == a^n x && yP == (-x + a^n x - y
+ a y)/(-1 + a))
in a new file intitled ressample1.nb or ressample1.txt
THANK YOU!