|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
Problem of division in scheme.Hello,
I'm currently working on an extension of the graphics mode which needs calculus in scheme in the background. I have a little problem with the calculus of, for example : (/ +2i -i) which gives #.##.#i Is it a known problem in scheme or with TeXmacs ? Do you know a workaround ? Have a good day. Emmanuël _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... http://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Problem of division in scheme.Hello Corcelle,
I get -2.0. in texmacs and guile in a term. guile version 1.8.5 texmacs version 1.0.7.2 -- bytecolor (S. Edward Dolan) --- On Tue, 9/15/09, Corcelle <corcelle@...> wrote: > From: Corcelle <corcelle@...> > Subject: [Texmacs-dev] Problem of division in scheme. > To: texmacs-dev@... > Date: Tuesday, September 15, 2009, 5:27 AM > Hello, > > I'm currently working on an extension of the graphics mode > which needs calculus in scheme in the background. > I have a little problem with the calculus of, for example > : > (/ +2i -i) > which gives > #.##.#i > Is it a known problem in scheme or with TeXmacs ? > Do you know a workaround ? > > Have a good day. > > Emmanuël > > > _______________________________________________ > 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.Scheme] (/ +2i -i)
-2.0 Scheme] -- bytecolor (S. Edward Dolan) --- On Tue, 9/15/09, Corcelle <corcelle@...> wrote: > From: Corcelle <corcelle@...> > Subject: Re: [Texmacs-dev] Problem of division in scheme. > To: texmacs-dev@... > Date: Tuesday, September 15, 2009, 11:32 AM > With the same version of guile and > TeXmacs, I have : > - in a terminal : -2.0 > - in a scheme session in TeXmacs (and with background > calculus within TeXmacs) : #.##.#i > > Is it the same for you ? > > Thank you for your answer. > > Emmanuël > > > > > Hello Corcelle, > > > > I get -2.0. in texmacs and guile in a term. > > > > guile version 1.8.5 > > texmacs version 1.0.7.2 > > > > -- > > bytecolor (S. Edward Dolan) > > > > > > --- On Tue, 9/15/09, Corcelle <corcelle@...> > wrote: > > > > > From: Corcelle <corcelle@...> > > > Subject: [Texmacs-dev] Problem of division in > scheme. > > > To: texmacs-dev@... > > > Date: Tuesday, September 15, 2009, 5:27 AM > > > Hello, > > > > > > I'm currently working on an extension of the > graphics mode > > > which needs calculus in scheme in the > background. > > > I have a little problem with the calculus of, for > example > > > : > > > (/ +2i -i) > > > which gives > > > #.##.#i > > > Is it a known problem in scheme or with TeXmacs > ? > > > Do you know a workaround ? > > > > > > Have a good day. > > > > > > Emmanuël > > > > > > > > > _______________________________________________ > > > 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 > > > _______________________________________________ > 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.I get the correct answers; here TeXmacs 1.0.7.2.
-á. On Wed, Sep 16, 2009 at 01:05, Corcelle <corcelle@...> wrote: > Scheme] (/ +2i -i) > #.##.#i > Scheme] (/ 1+2i -i) > #.##.#i > Scheme] (/ 1+2i 2-i) > 0.0+1.0i yes ! > > I'm lost. Voodoo could be a solution. > Perhaps, someone else could try this "Scheme]" talk with us. > I'll try with other versions of TeXmacs. > > Thanks again to have tried this. > > Emmanuël > > > ----- "bytecolor" <bytecolor@...> a écrit : > >> De: "bytecolor" <bytecolor@...> >> À: texmacs-dev@... >> Envoyé: Mardi 15 Septembre 2009 20h48:19 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne >> Objet: Re: [Texmacs-dev] Problem of division in scheme. >> >> Scheme] (/ +2i -i) >> -2.0 >> Scheme] >> >> -- >> bytecolor (S. Edward Dolan) >> >> >> --- On Tue, 9/15/09, Corcelle <corcelle@...> wrote: >> >> > From: Corcelle <corcelle@...> >> > Subject: Re: [Texmacs-dev] Problem of division in scheme. >> > To: texmacs-dev@... >> > Date: Tuesday, September 15, 2009, 11:32 AM >> > With the same version of guile and >> > TeXmacs, I have : >> > - in a terminal : -2.0 >> > - in a scheme session in TeXmacs (and with background >> > calculus within TeXmacs) : #.##.#i >> > >> > Is it the same for you ? >> > >> > Thank you for your answer. >> > >> > Emmanuël >> > >> > > >> > > Hello Corcelle, >> > > >> > > I get -2.0. in texmacs and guile in a term. >> > > >> > > guile version 1.8.5 >> > > texmacs version 1.0.7.2 >> > > >> > > -- >> > > bytecolor (S. Edward Dolan) >> > > >> > > >> > > --- On Tue, 9/15/09, Corcelle <corcelle@...> >> > wrote: >> > > >> > > > From: Corcelle <corcelle@...> >> > > > Subject: [Texmacs-dev] Problem of division in >> > scheme. >> > > > To: texmacs-dev@... >> > > > Date: Tuesday, September 15, 2009, 5:27 AM >> > > > Hello, >> > > > >> > > > I'm currently working on an extension of the >> > graphics mode >> > > > which needs calculus in scheme in the >> > background. >> > > > I have a little problem with the calculus of, for >> > example >> > > > : >> > > > (/ +2i -i) >> > > > which gives >> > > > #.##.#i >> > > > Is it a known problem in scheme or with TeXmacs >> > ? >> > > > Do you know a workaround ? >> > > > >> > > > Have a good day. >> > > > >> > > > Emmanuël >> > > > >> > > > >> > > > _______________________________________________ >> > > > 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 >> > >> > >> > _______________________________________________ >> > 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 > > > _______________________________________________ > 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.I tried on TeXmacs 1.0.6.14 and 1.0.7.1 :
scheme] (/ -i +i) -1.0 scheme] (/ +i -i) #.##.#i scheme] I don't understand. Especially with all your correct answers. Thank you. Emmanuël Álvaro Tejero Cantero a écrit : > I get the correct answers; here TeXmacs 1.0.7.2. > > -á. > > > > On Wed, Sep 16, 2009 at 01:05, Corcelle <corcelle@...> wrote: >> Scheme] (/ +2i -i) >> #.##.#i >> Scheme] (/ 1+2i -i) >> #.##.#i >> Scheme] (/ 1+2i 2-i) >> 0.0+1.0i yes ! >> >> I'm lost. Voodoo could be a solution. >> Perhaps, someone else could try this "Scheme]" talk with us. >> I'll try with other versions of TeXmacs. >> >> Thanks again to have tried this. >> >> Emmanuël >> >> >> ----- "bytecolor" <bytecolor@...> a écrit : >> >>> De: "bytecolor" <bytecolor@...> >>> À: texmacs-dev@... >>> Envoyé: Mardi 15 Septembre 2009 20h48:19 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne >>> Objet: Re: [Texmacs-dev] Problem of division in scheme. >>> >>> Scheme] (/ +2i -i) >>> -2.0 >>> Scheme] >>> >>> -- >>> bytecolor (S. Edward Dolan) >>> >>> >>> --- On Tue, 9/15/09, Corcelle <corcelle@...> wrote: >>> >>>> From: Corcelle <corcelle@...> >>>> Subject: Re: [Texmacs-dev] Problem of division in scheme. >>>> To: texmacs-dev@... >>>> Date: Tuesday, September 15, 2009, 11:32 AM >>>> With the same version of guile and >>>> TeXmacs, I have : >>>> - in a terminal : -2.0 >>>> - in a scheme session in TeXmacs (and with background >>>> calculus within TeXmacs) : #.##.#i >>>> >>>> Is it the same for you ? >>>> >>>> Thank you for your answer. >>>> >>>> Emmanuël >>>> >>>>> Hello Corcelle, >>>>> >>>>> I get -2.0. in texmacs and guile in a term. >>>>> >>>>> guile version 1.8.5 >>>>> texmacs version 1.0.7.2 >>>>> >>>>> -- >>>>> bytecolor (S. Edward Dolan) >>>>> >>>>> >>>>> --- On Tue, 9/15/09, Corcelle <corcelle@...> >>>> wrote: >>>>>> From: Corcelle <corcelle@...> >>>>>> Subject: [Texmacs-dev] Problem of division in >>>> scheme. >>>>>> To: texmacs-dev@... >>>>>> Date: Tuesday, September 15, 2009, 5:27 AM >>>>>> Hello, >>>>>> >>>>>> I'm currently working on an extension of the >>>> graphics mode >>>>>> which needs calculus in scheme in the >>>> background. >>>>>> I have a little problem with the calculus of, for >>>> example >>>>>> : >>>>>> (/ +2i -i) >>>>>> which gives >>>>>> #.##.#i >>>>>> Is it a known problem in scheme or with TeXmacs >>>> ? >>>>>> Do you know a workaround ? >>>>>> >>>>>> Have a good day. >>>>>> >>>>>> Emmanuël >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>> >>>> _______________________________________________ >>>> 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 >> >> _______________________________________________ >> 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 _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... http://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
Re: Problem of division in scheme.On Tue, Sep 15, 2009 at 04:36:41AM -0700, bytecolor wrote:
> Hello Corcelle, > > I get -2.0. in texmacs and guile in a term. > > guile version 1.8.5 > texmacs version 1.0.7.2 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 _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... http://lists.gnu.org/mailman/listinfo/texmacs-dev |
|
|
|
|
|
Re: Problem of division in scheme.On Tue, Sep 29, 2009 at 10:16:36AM +0200, Corcelle wrote:
> > > 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. > 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). For the moment, Scheme is probably the best solution. 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. Best wishes, --Joris _______________________________________________ Texmacs-dev mailing list Texmacs-dev@... http://lists.gnu.org/mailman/listinfo/texmacs-dev |
| Free embeddable forum powered by Nabble | Forum Help |