On Sat, 12 Dec 2020, 20:53 Tobias, <[email protected]> wrote: > Hello! > > I am interested in using a FriCAS (DoubleFloat -> DoubleFloat) function > from C. > Is such a thing easily (out of the box) possible, or has anyone explored > that before? Presumably it could be done, at least in principle, see > http://www.sbcl.org/manual/index.html#Calling-Lisp-From-C but it's likely > difficult and hacky. >
you can call ECL from C (ECL might provide a slightly slower Fricas, but OK). If I am not mistaken, in SageMath we call Fricas from Python this way (via a Python extension module that embeds ECL as a library). We certainly do this with Maxima. Anyway, it certainly is very doable with ECL. > While I could launch a new FriCAS and parse the output for each call, this > would be too inefficient for my application. An alternative would be to run > FriCAS once and stream > input and output for many function calls (as probably SageMath and others > do it). Ideally I want to have as little overhead as possible. > > I would be happy for any suggestions in that regard! > > Thanks, > Tobias > > -- > You received this message because you are subscribed to the Google Groups > "FriCAS - computer algebra system" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/fricas-devel/e1d7929c-b691-4c37-a61c-86a166ef3d10n%40googlegroups.com > <https://groups.google.com/d/msgid/fricas-devel/e1d7929c-b691-4c37-a61c-86a166ef3d10n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/CAAWYfq2brV9MbjpBn7Arw4QucoQ61gQBr7zNyBQSvnA6urpeEA%40mail.gmail.com.
