Re: Problem of division in scheme.

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Problem of division in scheme.

by Corcelle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

> > > There are differences in the arithmetic of guile between 1.8*
> > > and before, due, among others, to the use of gmp.
> > > It is better not to depend to much on the arithmetic of guile...
> > >
> > > Best wishes, --Joris
> >
> > Thank you for the precision.
> >
> > I use a lot this arithmetic of scheme-guile in the math extension of
> the graphics mode. In fact, all the constructions are based on complex
> operations.
> > What would be the best solution to go around this problem ? Use
> another "engine" for the calculus ?
>
> If you want to stick to scheme, which is probably simplest for what
> you want,
> then you can write your own scheme extension for complex arithmetic.

I tried this, replacing the problematic functions. Everything works fine for me now.
I'll add new functions if needed (if I discover new problems with calculus).

>
> > In that case, which one should I choose and would it be as easy as
> scheme to use ?
> > It's true that, in that case, I could have more powerful tools for
> my calculations.
>
> You may also use any of the TeXmacs plug-ins for doing the
> computations,
> e.g. Maxima (or Mathemagix, in a relatively near future).
> However, the communication is currently text-based, so not very
> suitable
> for intensive computations (except if you write all your routines in
> the plug-in).

Is there a place (a plugin perhaps) where I could find an example of such things ?

>
> For the moment, Scheme is probably the best solution.

Yes and the simplest one for me.

> You may also experiment a bit with the goops,
> an object oriented extension of Guile which will allow you
> to overload mathematical operations, such as +, -, *, etc.
> For the moment, I do not use it, but it might be worth to
> investigate how robust it is.

I tried little things with goops but the documentation is rather unclear to me and I surely wouldn't be able to evaluate its robustness.

Thank you for your help.

Emmanuël

>
> Best wishes, --Joris
>
>
> _______________________________________________
> Texmacs-dev mailing list
> Texmacs-dev@...
> http://lists.gnu.org/mailman/listinfo/texmacs-dev


_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@...
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Re: Problem of division in scheme.

by Joris van der Hoeven :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 07, 2009 at 05:15:17PM +0200, Corcelle wrote:
> > However, the communication is currently text-based, so not very
> > suitable for intensive computations (except if you write
> > all your routines in the plug-in).
>
> Is there a place (a plugin perhaps) where I could find an example of such things ?

No, not really; I am afraid that you will have to look at scripts-edit.scm
how to communicate with the plug-in and hack something yourself...

Best wishes, --Joris


_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@...
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Parent Message unknown Re: Problem of division in scheme.

by Corcelle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


>
> On Wed, Oct 07, 2009 at 05:15:17PM +0200, Corcelle wrote:
> > > However, the communication is currently text-based, so not very
> > > suitable for intensive computations (except if you write
> > > all your routines in the plug-in).
> >
> > Is there a place (a plugin perhaps) where I could find an example of
> such things ?
>
> No, not really; I am afraid that you will have to look at
> scripts-edit.scm
> how to communicate with the plug-in and hack something yourself...
>
> Best wishes, --Joris

OK, thank you.

Indeed, I already did something a little like this for the "plot grapher" of the TeXgraph plugin which is an adaptation of the GNUplot grapher of TeXmacs.
Now I know where to look for.

Best regards.
Emmanuël


_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@...
http://lists.gnu.org/mailman/listinfo/texmacs-dev