Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Samuel Gougeon
Le 19/09/2018 à 15:36, antoine monmayrant a écrit : Another one of my favorites, that highlights the fact that scilab needs a lot of polishing (in particular in the documentation & naming) to help new or non-specialist users: Compare the choice of name for matlab poylval() and scilab

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread antoine monmayrant
Another one of my favorites, that highlights the fact that scilab needs a lot of polishing (in particular in the documentation & naming) to help new or non-specialist users: Compare the choice of name for matlab  poylval() and scilab horner(). How could I know that to evaluate a polynomial I

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Stéphane Mottelet
Hello Antoine, Le 19/09/2018 à 13:28, antoine monmayrant a écrit : Le 19/09/2018 à 13:04, Samuel Gougeon a écrit : Le 19/09/2018 à 11:10, Stéphane Mottelet a écrit : Le 19/09/2018 à 11:01, Samuel Gougeon a écrit : Le 18/09/2018 à 19:26, philippe a écrit : Le 17/09/2018 à 19:03, Stéphane

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Stéphane Mottelet
Hello Antoine > Le 19 sept. 2018 à 13:28, antoine monmayrant a > écrit : > > > >> Le 19/09/2018 à 13:04, Samuel Gougeon a écrit : >>> Le 19/09/2018 à 11:10, Stéphane Mottelet a écrit : Le 19/09/2018 à 11:01, Samuel Gougeon a écrit : > Le 18/09/2018 à 19:26, philippe a écrit :

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread antoine monmayrant
Le 19/09/2018 à 13:04, Samuel Gougeon a écrit : Le 19/09/2018 à 11:10, Stéphane Mottelet a écrit : Le 19/09/2018 à 11:01, Samuel Gougeon a écrit : Le 18/09/2018 à 19:26, philippe a écrit : Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : Do I have to conclude that the implementation is

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Samuel Gougeon
Le 19/09/2018 à 11:10, Stéphane Mottelet a écrit : Le 19/09/2018 à 11:01, Samuel Gougeon a écrit : Le 18/09/2018 à 19:26, philippe a écrit : Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : Do I have to conclude that the implementation is currently so incoherent that *nobody* uses integer

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Samuel Gougeon
Le 19/09/2018 à 12:25, Samuel Gougeon a écrit : Le 19/09/2018 à 12:02, Stéphane Mottelet a écrit : Le 19/09/2018 à 11:46, Samuel Gougeon a écrit : .../... At first sight, Octave's result does not look more consistent than Scilab's one. But following its own ceiling/flooring rules, yet it is

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Samuel Gougeon
Le 19/09/2018 à 12:02, Stéphane Mottelet a écrit : Le 19/09/2018 à 11:46, Samuel Gougeon a écrit : .../... At first sight, Octave's result does not look more consistent than Scilab's one. But following its own ceiling/flooring rules, yet it is consistent. What is puzzling is that Scilab

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Stéphane Mottelet
Le 19/09/2018 à 11:46, Samuel Gougeon a écrit : Le 19/09/2018 à 11:24, Stéphane Mottelet a écrit : Le 19/09/2018 à 11:17, Samuel Gougeon a écrit : The current implementation is not incoherent. However, there are still bugs, and when trying to solve them, the question of incoherence raises.

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Samuel Gougeon
Le 19/09/2018 à 11:24, Stéphane Mottelet a écrit : Le 19/09/2018 à 11:17, Samuel Gougeon a écrit : The current implementation is not incoherent. However, there are still bugs, and when trying to solve them, the question of incoherence raises. See e.g : --> int8(-128)/int8(-1) ans = -128

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Stéphane Mottelet
Le 19/09/2018 à 11:17, Samuel Gougeon a écrit : Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : [No answers] Hello all, Do I have to conclude that the implementation is currently so incoherent that *nobody* uses integer types in Scilab (other than Scilab code itself) ? The current

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Samuel Gougeon
Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : [No answers] Hello all, Do I have to conclude that the implementation is currently so incoherent that *nobody* uses integer types in Scilab (other than Scilab code itself) ? The current implementation is not incoherent. The message was

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Stéphane Mottelet
Le 19/09/2018 à 11:01, Samuel Gougeon a écrit : Le 18/09/2018 à 19:26, philippe a écrit : Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : Do I have to conclude that the implementation is currently so incoherent that *nobody* uses integer types in Scilab (other than Scilab code itself) ?

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Samuel Gougeon
Le 18/09/2018 à 19:26, philippe a écrit : Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : Do I have to conclude that the implementation is currently so incoherent that *nobody* uses integer types in Scilab (other than Scilab code itself) ? it's a new feature, It would not be a new

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Samuel Gougeon
Here is the start of this discussion. As cross-posting looks forbidden/prevented/canceled, i am afraid that only the dev@ list received both initial messages . At least, only the dev@

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread Stéphane Mottelet
Le 19/09/2018 à 09:03, amonm...@laas.fr a écrit : Le 18/09/2018 à 20:53, Stéphane Mottelet a écrit : Hello Philippe, Great to hear from you, Le 18/09/2018 à 19:26, philippe a écrit : Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : Do I have to conclude that the implementation is currently

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread philippe
Le 19/09/2018 à 09:03, amonm...@laas.fr a écrit : > Le 18/09/2018 à 20:53, Stéphane Mottelet a écrit : >> and for int/int ? > For me, this should be int, to be consistent with most of the languages > I use. > So 3.0/4.0=0.75 but 3/4=0. > But maybe getting a rational would make more sense? I

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-19 Thread amonmayr
Le 18/09/2018 à 20:53, Stéphane Mottelet a écrit : Hello Philippe, Great to hear from you, Le 18/09/2018 à 19:26, philippe a écrit : Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : Do I have to conclude that the implementation is currently so incoherent that *nobody* uses integer types

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-18 Thread Stéphane Mottelet
Hello Philippe, Great to hear from you, Le 18/09/2018 à 19:26, philippe a écrit : Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : Do I have to conclude that the implementation is currently so incoherent that *nobody* uses integer types in Scilab (other than Scilab code itself) ? it's a

Re: [Scilab-users] [Scilab-Dev] algebra conventions with integer types to be discussed

2018-09-18 Thread philippe
Le 17/09/2018 à 19:03, Stéphane Mottelet a écrit : > > Do I have to conclude that the implementation is currently so incoherent > that *nobody* uses integer types in Scilab (other than Scilab code > itself) ? it's a new feature, I would have like to use it before ... I've build my own solution