MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Please answer to my question thank you.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97032] Re: Please answer to my question thank you.
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Tue, 3 Mar 2009 05:55:38 -0500 (EST)
  • References: <gogc0a$og6$1@smc.vnet.net>

Manual: guide/MathLinkAPI

Cheers -- Sjoerd

On Mar 2, 12:22 pm, olfa <olfa.mra... at yahoo.fr> wrote:
> 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] Integer=
s
> && 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!



  • Prev by Date: Re: Design choice for Printout Screen Environment
  • Next by Date: Re: different output!!
  • Previous by thread: Please answer to my question thank you.
  • Next by thread: mesh in RegionPlot