From p.muehlmann at gmail.com Fri Nov 5 10:42:25 2021 From: p.muehlmann at gmail.com (P M) Date: Fri, 5 Nov 2021 10:42:25 +0100 Subject: [Scilab-users] scilab and xlsx - files Message-ID: Dear, thanks to the xls-link toolbox I am able to read data directly from an xlsx-file. however, there is a strange data conversion going on: in the xlsx-file a column contains time data such as: 09:27:38 // this is a GMT value result after reading the data into Scilab is like this 0,394189814814815 It is possible to get the hh:mm:ss back from this, like: 0.394189814814815 * 24 = 9.4605556 --> 9 = hours value 0.4605556 * 60 = 27.63336 --> 27 = minutes value 0.63336*60 = 38.0016 --> 38 = seconds value or: seconds = 0.394189814814815 * 24 * 60 * 60 ; date = getdate( seconds ) - however --> the date would be wrong --> which is obvious, because the initial value does not indicate a specific day --> the time would have to be corrected for daylight saving time (summer time) if necessary --> result is 10:27:38 My question is: Why is the extract from the xls file not intially in human readable format? Is it, because EXCEL internally stores the time value in a decimal fashioned way and only displays in human readable format? Thank you, Philpp -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Nov 5 14:15:31 2021 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Fri, 5 Nov 2021 14:15:31 +0100 Subject: [Scilab-users] scilab and xlsx - files In-Reply-To: References: Message-ID: <1AD70B8A-2B4D-410A-99C4-73FA92878FE7@utc.fr> Hi Philip, The xlsreadwrite toolbox yields formatted dates in the string field. You should give it a try. S. > Le 5 nov. 2021 ? 10:43, P M a ?crit : > > ? > Dear, > > thanks to the xls-link toolbox I am able to read data directly from an xlsx-file. > > however, there is a strange data conversion going on: > > in the xlsx-file a column contains time data such as: > > 09:27:38 // this is a GMT value > > result after reading the data into Scilab is like this > 0,394189814814815 > > It is possible to get the hh:mm:ss back from this, like: > > 0.394189814814815 * 24 = 9.4605556 --> 9 = hours value > 0.4605556 * 60 = 27.63336 --> 27 = minutes value > 0.63336*60 = 38.0016 --> 38 = seconds value > > or: > > seconds = 0.394189814814815 * 24 * 60 * 60 ; > date = getdate( seconds ) > - however > --> the date would be wrong > --> which is obvious, because the initial value does not indicate a specific day > > --> the time would have to be corrected for daylight saving time (summer time) if necessary > --> result is 10:27:38 > > My question is: > Why is the extract from the xls file not intially in human readable format? > Is it, because EXCEL internally stores the time value in a decimal fashioned way and only displays in human readable format? > > Thank you, > Philpp > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From p.muehlmann at gmail.com Mon Nov 8 09:01:00 2021 From: p.muehlmann at gmail.com (P M) Date: Mon, 8 Nov 2021 09:01:00 +0100 Subject: [Scilab-users] scilab and xlsx - files In-Reply-To: <1AD70B8A-2B4D-410A-99C4-73FA92878FE7@utc.fr> References: <1AD70B8A-2B4D-410A-99C4-73FA92878FE7@utc.fr> Message-ID: Hi St?phane, That works. Thanks for the hint. Best Regards, Philipp Am Fr., 5. Nov. 2021 um 14:15 Uhr schrieb St?phane Mottelet < stephane.mottelet at utc.fr>: > Hi Philip, > > The xlsreadwrite toolbox yields formatted dates in the string field. You > should give it a try. > > S. > > > Le 5 nov. 2021 ? 10:43, P M a ?crit : > > > > ? > > Dear, > > > > thanks to the xls-link toolbox I am able to read data directly from an > xlsx-file. > > > > however, there is a strange data conversion going on: > > > > in the xlsx-file a column contains time data such as: > > > > 09:27:38 // this is a GMT value > > > > result after reading the data into Scilab is like this > > 0,394189814814815 > > > > It is possible to get the hh:mm:ss back from this, like: > > > > 0.394189814814815 * 24 = 9.4605556 --> 9 = hours value > > 0.4605556 * 60 = 27.63336 --> 27 = minutes value > > 0.63336*60 = 38.0016 --> 38 = seconds value > > > > or: > > > > seconds = 0.394189814814815 * 24 * 60 * 60 ; > > date = getdate( seconds ) > > - however > > --> the date would be wrong > > --> which is obvious, because the initial value does not indicate > a specific day > > > > --> the time would have to be corrected for daylight saving time > (summer time) if necessary > > --> result is 10:27:38 > > > > My question is: > > Why is the extract from the xls file not intially in human readable > format? > > Is it, because EXCEL internally stores the time value in a decimal > fashioned way and only displays in human readable format? > > > > Thank you, > > Philpp > > > > > > > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From iwoj at il.pw.edu.pl Mon Nov 15 13:38:14 2021 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Mon, 15 Nov 2021 13:38:14 +0100 Subject: [Scilab-users] jetcolormap in param3d1 Message-ID: Hello, I need some help with a param3d1 graph. Each polyline should have color from a colormap according to the value assigned in a T vector. Here is a simple example (not finished): X=[0.5 1.5 1.5 ; 1.5 2.5 1.5]; Y=[0.5 1 1 ; 1 0.5 2]; Z=[0 1 1 ; 1 2 3]; T=[2 1 3]; [sorted_T, index_sort_T]=gsort(T , 'g' , 'i'); colors=zeros(size(T , 'r'); colors(index_sort_T , :)=jetcolormap(size(T , 'r'); param3d1(X,Y,Z); h=gca().children(1); h.children.thickness=4; for i=size(T,'r') h.children(i).color=??? end Instead of question marks there should be a color index, but I don't know how to define it using jetcolormap. I would be grateful for your kind help, -- Izabela W?jcik-Grz?ba Zesp?? Konstrukcji Metalowych ZKBiM IIB WIL Politechnika Warszawska -------------- next part -------------- An HTML attachment was scrubbed... URL: From iwoj at il.pw.edu.pl Mon Nov 15 18:12:13 2021 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Mon, 15 Nov 2021 18:12:13 +0100 Subject: [Scilab-users] jetcolormap in param3d1 In-Reply-To: References: Message-ID: <7f7915c29c456e0a676c52d3e25a231d@il.pw.edu.pl> Hi, In the meantime I've managed to achieve the main goal. An additional problem appeared with my figure f2. Here is my function: function colorplot(T, f2) t=diag(T); mt=size(t,'r'); [sort_t,index_sort_t]=gsort(t,'g','i'); f2.color_map=jetcolormap(mt); for i=1:mt f2.children(1).children(7).children(mt-(index_sort_t(i)-1)).foreground=i; end colorbar(min(t),max(t),[1,mt]); f2.children(2).children(15).visible="off"; endfunction Unfortunately the last line, which should switch off the visibility of a group of polylines, doesn't work inside the function. When I put this line in the console after calling function colorplot it works fine. Maybe someone could help me with this? Kind regards, Iza --- Izabela W?jcik-Grz?ba Zesp?? Konstrukcji Metalowych ZKBiM IIB WIL Politechnika Warszawska W dniu 15.11.2021 13:38, Izabela W?jcik-Grz?ba napisa?(a): > Hello, > > I need some help with a param3d1 graph. Each polyline should have color from a colormap according to the value assigned in a T vector. Here is a simple example (not finished): > > X=[0.5 1.5 1.5 ; 1.5 2.5 1.5]; > > Y=[0.5 1 1 ; 1 0.5 2]; > > Z=[0 1 1 ; 1 2 3]; > > T=[2 1 3]; > > [sorted_T, index_sort_T]=gsort(T , 'g' , 'i'); > > colors=zeros(size(T , 'r'); > > colors(index_sort_T , :)=jetcolormap(size(T , 'r'); > > param3d1(X,Y,Z); > > h=gca().children(1); > > h.children.thickness=4; > > for i=size(T,'r') > > h.children(i).color=??? > > end > > Instead of question marks there should be a color index, but I don't know how to define it using jetcolormap. > > I would be grateful for your kind help, > > -- > Izabela W?jcik-Grz?ba > Zesp?? Konstrukcji Metalowych > ZKBiM IIB WIL Politechnika Warszawska > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Nov 16 09:46:38 2021 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 16 Nov 2021 09:46:38 +0100 Subject: [Scilab-users] jetcolormap in param3d1 In-Reply-To: References: Message-ID: <79550546-80f5-058a-0366-2492c367578e@free.fr> Hello Izabela, The current colormap is always stored as a figure's property, as shown for instance in the examples at https://help.scilab.org/docs/6.1.1/en_US/colormap.html Here is a possible implementation (without the gsort stuff): X = [0.5 1.5 1.5 ; 1.5 2.5 1.5]; Y = [0.5 1 1 ; 1 0.5 2]; Z = [0 1 1 ; 1 2 3]; clf param3d1(X,Y,Z); h = gca().children(1).children; ccm = gcf().color_map; ncurv = size(X,2); ncol = size(ccm,1); // proposal : extending the current color map, instead of replacing it: gcf().color_map = [ccm ; jetcolormap(ncurv)]; h.thickness = 4; h.foreground = ncol+(1:ncurv); // "vectorized"assignment allowed. for loop not required Hope this helps. Samuel Le 15/11/2021 ? 13:38, Izabela W?jcik-Grz?ba a ?crit?: > > Hello, > > I need some help with a param3d1 graph. Each polyline should have > color from a colormap according to the value assigned in a T vector. > Here is a simple example (not finished): > > X=[0.5 1.5 1.5 ; 1.5 2.5 1.5]; > > Y=[0.5 1 1 ; 1 0.5 2]; > > Z=[0 1 1 ; 1 2 3]; > > T=[2 1 3]; > > [sorted_T, index_sort_T]=gsort(T , 'g' , 'i'); > > colors=zeros(size(T , 'r'); > > colors(index_sort_T , :)=jetcolormap(size(T , 'r'); > > param3d1(X,Y,Z); > > h=gca().children(1); > > h.children.thickness=4; > > for i=size(T,'r') > > h.children(i).color=??? > > end > > Instead of question marks there should be a color index, but I don't > know how to define it using jetcolormap. > > I would be grateful for your kind help, > > -- > Izabela W?jcik-Grz?ba > Zesp?? Konstrukcji Metalowych > ZKBiM IIB WIL Politechnika Warszawska > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Tue Nov 16 09:34:33 2021 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 16 Nov 2021 08:34:33 +0000 Subject: [Scilab-users] jetcolormap in param3d1 In-Reply-To: <7f7915c29c456e0a676c52d3e25a231d@il.pw.edu.pl> References: <7f7915c29c456e0a676c52d3e25a231d@il.pw.edu.pl> Message-ID: Hello Izabela, > De : Izabela W?jcik-Grzaba > Envoy? : lundi 15 novembre 2021 18:12 > > An additional problem appeared with my figure f2. Here is my function: Could you please provide a minimal example with a call to this function? I tried to use the function on the figure provided by the first script (param3d()) but it tells me that f2.children(1).children(7) is not a valid index. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. From iwoj at il.pw.edu.pl Tue Nov 16 11:07:07 2021 From: iwoj at il.pw.edu.pl (=?UTF-8?Q?Izabela_W=C3=B3jcik-Grz=C4=85ba?=) Date: Tue, 16 Nov 2021 11:07:07 +0100 Subject: [Scilab-users] jetcolormap in param3d1 In-Reply-To: <79550546-80f5-058a-0366-2492c367578e@free.fr> References: <79550546-80f5-058a-0366-2492c367578e@free.fr> Message-ID: Thank you Samuel for your idea of extending current colormap. As I understant there is no connection between the color and value of T for each polyline in your proposition. As I wrote in my second post I've managed to solve this problem. Maybe you could look at my second problem described there? Regards, Iza --- Izabela W?jcik-Grz?ba Zesp?? Konstrukcji Metalowych ZKBiM IIB WIL Politechnika Warszawska W dniu 16.11.2021 09:46, Samuel Gougeon napisa?(a): > Hello Izabela, > > The current colormap is always stored as a figure's property, as shown for instance in the examples at https://help.scilab.org/docs/6.1.1/en_US/colormap.html > Here is a possible implementation (without the gsort stuff): > > X = [0.5 1.5 1.5 ; 1.5 2.5 1.5]; > Y = [0.5 1 1 ; 1 0.5 2]; > Z = [0 1 1 ; 1 2 3]; > clf > param3d1(X,Y,Z); > > h = gca().children(1).children; > > ccm = gcf().color_map; > ncurv = size(X,2); > ncol = size(ccm,1); > // proposal : extending the current color map, instead of replacing it: > gcf().color_map = [ccm ; jetcolormap(ncurv)]; > > h.thickness = 4; > h.foreground = ncol+(1:ncurv); // "vectorized" assignment allowed. for loop not required > > Hope this helps. > Samuel > > Le 15/11/2021 ? 13:38, Izabela W?jcik-Grz?ba a ?crit : > >> Hello, >> >> I need some help with a param3d1 graph. Each polyline should have color from a colormap according to the value assigned in a T vector. Here is a simple example (not finished): >> >> X=[0.5 1.5 1.5 ; 1.5 2.5 1.5]; >> >> Y=[0.5 1 1 ; 1 0.5 2]; >> >> Z=[0 1 1 ; 1 2 3]; >> >> T=[2 1 3]; >> >> [sorted_T, index_sort_T]=gsort(T , 'g' , 'i'); >> >> colors=zeros(size(T , 'r'); >> >> colors(index_sort_T , :)=jetcolormap(size(T , 'r'); >> >> param3d1(X,Y,Z); >> >> h=gca().children(1); >> >> h.children.thickness=4; >> >> for i=size(T,'r') >> >> h.children(i).color=??? >> >> end >> >> Instead of question marks there should be a color index, but I don't know how to define it using jetcolormap. >> >> I would be grateful for your kind help, >> >> -- >> Izabela W?jcik-Grz?ba >> Zesp?? Konstrukcji Metalowych >> ZKBiM IIB WIL Politechnika Warszawska > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.cheze at cea.fr Thu Nov 18 09:20:24 2021 From: david.cheze at cea.fr (CHEZE David 227480) Date: Thu, 18 Nov 2021 08:20:24 +0000 Subject: [Scilab-users] turn scilab theme into dark Message-ID: Hi all, I'm wondering if anyone already looked for developing a "dark mode" for Scilab look and feel, following dark mode or dark theme selected in the OS. If not linked automatically to the OS theme, then it might be custom colour and code colorization configuration in this perspective that could be shared ? Thank you for any hint, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Thu Nov 18 11:31:48 2021 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Thu, 18 Nov 2021 11:31:48 +0100 Subject: [Scilab-users] turn scilab theme into dark In-Reply-To: References: Message-ID: <4aacef36-73df-751d-80cc-c2aa0278a6c1@utc.fr> Hi David, Sorry for being rude but who in the (zombie) Scilab community would have some time to develop such fancy stuff, when so many basic things such as a decent html redering of help pages is missing ? BTW you ask for a dark mode but Scilab is slowly but irremediably sliding to darkness... I was recently interviewed by students of a french engineering school (not mine) on my feeling about the past, present and future of Scilab, and one of the points I mentioned is the death of the aforementioned community. First by its size then by its age distribution and finally by its lack of investment in the development of Scilab itself. The only newcomming users I have met this year on StackOverflow are students who were told to do some homework by their math teacher. None of the brilliant students I meet each year in my course (which uses Scilab) are interested in developping Scilab. Recently one of them was hired as a research engineer at Inria to work in the Scikit-learn consortium hence Python stuff ! When I read such (legitimate) demands as the one formulated by David, I am not sure that actual Scilab users are aware of the situation. One the one hand ESI hosts the rest of the Scilab team, which has its own business plan and spends its time on developments? which are not available to the community (e.g. the Scilab Cloud), and on the other hand some (dumb ?) guys which still spend (waste ?) their time to fix what they can fix or consider to be fixed. I have to say that the Scilab team does help us when we ask some help, but the initiative to fix this or that must come from us. As far as I am concerned I consider that working on solvers (nonlinear equations, differential equations, optimization, ...) is a priority of higher level than gui stuff. I met so many people trying (and failing) to solve real/big problems with Scilab that I could not just give up and tell them to use Matlab. That's why I rewrote from scratch sci-ipopt in order to allow Scilab to solve efficiently nonlinear optimization problems. That's why I am currently interfacing the SUNDIALS ode/dae solvers (which are already used in XCos). The Kinsol equation solver (also from SUNDIALS) could also be interfaced, in order to provide an alternative to the very poor lsqrsolve (missing features like positivity constraints and sparse jacobian). However, when I write help pages I realize the very poor rendering of them in Scilab help browser (this is due to the very poor css support of actual (Swing) html viewer). I have some helpfull hints for the (unconscious) person who would want to spend some time on this issue, provided that she/he knows Java. If you think you can contribute to the debate just express yourself. S. Le 18/11/2021 ? 09:20, CHEZE David 227480 a ?crit?: > > Hi all, > > I?m wondering if anyone already looked for developing a ?dark mode? > for Scilab look and feel, following dark mode or dark theme selected > in the OS. If not linked automatically to the OS theme, then it might > be custom colour and code colorization configuration in this > perspective that could be shared ? > > Thank you for any hint, > > David > > > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/v3?i=MUo0RzFIRTVvbFhYVGloQoloZQj6tvqyhpERsn5z8Z4&r=cFdGNHFjVENnWDEzUVliSZqa92Ij_tTjl26kvR1TKYhrACGUUvf07czFMIQsHOTl&f=ODlJNFRJTjZBcWFlaWxQaCWHfP5TwO6tLcRB8udwSmRu_YmmB5TAisRDyjlFqOMc&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=b1p5 -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From tanchinluh at gmail.com Thu Nov 18 11:48:24 2021 From: tanchinluh at gmail.com (Chin Luh Tan) Date: Thu, 18 Nov 2021 18:48:24 +0800 Subject: [Scilab-users] turn scilab theme into dark In-Reply-To: <4aacef36-73df-751d-80cc-c2aa0278a6c1@utc.fr> References: <4aacef36-73df-751d-80cc-c2aa0278a6c1@utc.fr> Message-ID: It has been a while since I was away from the Scilab mailing list, in fact, I am of the opinion that the Scilab Developer Community seems to be reducing over time... I was a half-cooked developer (maybe not even half-cooked) who had been playing around with Scilab for quite some time. I have to agree that after the ESI taking over, the Scilab team focus seems to be less on the "Community Version", and the enthusiasm of the Community Developers just could not heat up, as there are none official activities initiated from the ESI as per my understanding. I do like Scilab, alot, but seeing this pace of moving, sooner or later, I worry that Scilab will eventually disappear... sorry to say that. Regards, Chin Luh On Thu, 18 Nov 2021 at 18:32, St?phane Mottelet wrote: > Hi David, > > Sorry for being rude but who in the (zombie) Scilab community would have > some time to develop such fancy stuff, when so many basic things such as a > decent html redering of help pages is missing ? BTW you ask for a dark mode > but Scilab is slowly but irremediably sliding to darkness... > > I was recently interviewed by students of a french engineering school (not > mine) on my feeling about the past, present and future of Scilab, and one > of the points I mentioned is the death of the aforementioned community. > First by its size then by its age distribution and finally by its lack of > investment in the development of Scilab itself. The only newcomming users I > have met this year on StackOverflow are students who were told to do some > homework by their math teacher. None of the brilliant students I meet each > year in my course (which uses Scilab) are interested in developping Scilab. > Recently one of them was hired as a research engineer at Inria to work in > the Scikit-learn consortium hence Python stuff ! > > When I read such (legitimate) demands as the one formulated by David, I am > not sure that actual Scilab users are aware of the situation. One the one > hand ESI hosts the rest of the Scilab team, which has its own business plan > and spends its time on developments which are not available to the > community (e.g. the Scilab Cloud), and on the other hand some (dumb ?) guys > which still spend (waste ?) their time to fix what they can fix or consider > to be fixed. I have to say that the Scilab team does help us when we ask > some help, but the initiative to fix this or that must come from us. > > As far as I am concerned I consider that working on solvers (nonlinear > equations, differential equations, optimization, ...) is a priority of > higher level than gui stuff. I met so many people trying (and failing) to > solve real/big problems with Scilab that I could not just give up and tell > them to use Matlab. That's why I rewrote from scratch sci-ipopt in order to > allow Scilab to solve efficiently nonlinear optimization problems. That's > why I am currently interfacing the SUNDIALS ode/dae solvers (which are > already used in XCos). The Kinsol equation solver (also from SUNDIALS) > could also be interfaced, in order to provide an alternative to the very > poor lsqrsolve (missing features like positivity constraints and sparse > jacobian). However, when I write help pages I realize the very poor > rendering of them in Scilab help browser (this is due to the very poor css > support of actual (Swing) html viewer). I have some helpfull hints for the > (unconscious) person who would want to spend some time on this issue, > provided that she/he knows Java. > > If you think you can contribute to the debate just express yourself. > > S. > Le 18/11/2021 ? 09:20, CHEZE David 227480 a ?crit : > > Hi all, > > > > I?m wondering if anyone already looked for developing a ?dark mode? for > Scilab look and feel, following dark mode or dark theme selected in the OS. > If not linked automatically to the OS theme, then it might be custom colour > and code colorization configuration in this perspective that could be > shared ? > > > > Thank you for any hint, > > > > David > > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttps://antispam.utc.fr/proxy/v3?i=MUo0RzFIRTVvbFhYVGloQoloZQj6tvqyhpERsn5z8Z4&r=cFdGNHFjVENnWDEzUVliSZqa92Ij_tTjl26kvR1TKYhrACGUUvf07czFMIQsHOTl&f=ODlJNFRJTjZBcWFlaWxQaCWHfP5TwO6tLcRB8udwSmRu_YmmB5TAisRDyjlFqOMc&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=b1p5 > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Sun Nov 21 15:04:55 2021 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 21 Nov 2021 15:04:55 +0100 Subject: [Scilab-users] turn scilab theme into dark In-Reply-To: References: <4aacef36-73df-751d-80cc-c2aa0278a6c1@utc.fr> Message-ID: I share the concern. Scilab 6.1.1 was released in July (a few months back). Could we make a target for the next release (e.g. next spring or summer), maybe a wish list? ... something to work towards. Best regards, Claus On 18-11-2021 11:48, Chin Luh Tan wrote: > It has been a while since I was away from the Scilab mailing list, in > fact, I am of the opinion that the Scilab Developer?Community seems to > be reducing over?time... > > I was a half-cooked developer (maybe not even half-cooked) who had > been playing around with Scilab for quite some time. I have to agree > that after the ESI taking over, the Scilab team focus seems to be less > on the "Community Version", and the enthusiasm of the Community > Developers just could not heat up, as there are none official > activities initiated?from the ESI as per my understanding. > > I do like Scilab, alot, but seeing this pace of moving, sooner or > later, I worry that Scilab will eventually disappear... sorry to say > that. > > Regards, > Chin Luh > > > > > On Thu, 18 Nov 2021 at 18:32, St?phane Mottelet > wrote: > > Hi David, > > Sorry for being rude but who in the (zombie) Scilab community > would have some time to develop such fancy stuff, when so many > basic things such as a decent html redering of help pages is > missing ? BTW you ask for a dark mode but Scilab is slowly but > irremediably sliding to darkness... > > I was recently interviewed by students of a french engineering > school (not mine) on my feeling about the past, present and future > of Scilab, and one of the points I mentioned is the death of the > aforementioned community. First by its size then by its age > distribution and finally by its lack of investment in the > development of Scilab itself. The only newcomming users I have met > this year on StackOverflow are students who were told to do some > homework by their math teacher. None of the brilliant students I > meet each year in my course (which uses Scilab) are interested in > developping Scilab. Recently one of them was hired as a research > engineer at Inria to work in the Scikit-learn consortium hence > Python stuff ! > > When I read such (legitimate) demands as the one formulated by > David, I am not sure that actual Scilab users are aware of the > situation. One the one hand ESI hosts the rest of the Scilab team, > which has its own business plan and spends its time on > developments? which are not available to the community (e.g. the > Scilab Cloud), and on the other hand some (dumb ?) guys which > still spend (waste ?) their time to fix what they can fix or > consider to be fixed. I have to say that the Scilab team does help > us when we ask some help, but the initiative to fix this or that > must come from us. > > As far as I am concerned I consider that working on solvers > (nonlinear equations, differential equations, optimization, ...) > is a priority of higher level than gui stuff. I met so many people > trying (and failing) to solve real/big problems with Scilab that I > could not just give up and tell them to use Matlab. That's why I > rewrote from scratch sci-ipopt in order to allow Scilab to solve > efficiently nonlinear optimization problems. That's why I am > currently interfacing the SUNDIALS ode/dae solvers (which are > already used in XCos). The Kinsol equation solver (also from > SUNDIALS) could also be interfaced, in order to provide an > alternative to the very poor lsqrsolve (missing features like > positivity constraints and sparse jacobian). However, when I write > help pages I realize the very poor rendering of them in Scilab > help browser (this is due to the very poor css support of actual > (Swing) html viewer). I have some helpfull hints for the > (unconscious) person who would want to spend some time on this > issue, provided that she/he knows Java. > > If you think you can contribute to the debate just express yourself. > > S. > > Le 18/11/2021 ? 09:20, CHEZE David 227480 a ?crit?: >> >> Hi all, >> >> I?m wondering if anyone already looked for developing a ?dark >> mode? for Scilab look and feel, following dark mode or dark theme >> selected in the OS. If not linked automatically to the OS theme, >> then it might be custom colour and code colorization >> configuration in this perspective that could be shared ? >> >> Thank you for any hint, >> >> David >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> https://antispam.utc.fr/proxy/v3?i=MUo0RzFIRTVvbFhYVGloQoloZQj6tvqyhpERsn5z8Z4&r=cFdGNHFjVENnWDEzUVliSZqa92Ij_tTjl26kvR1TKYhrACGUUvf07czFMIQsHOTl&f=ODlJNFRJTjZBcWFlaWxQaCWHfP5TwO6tLcRB8udwSmRu_YmmB5TAisRDyjlFqOMc&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=b1p5 > > -- > St?phane Mottelet > Ing?nieur de recherche > EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable > D?partement G?nie des Proc?d?s Industriels > Sorbonne Universit?s - Universit? de Technologie de Compi?gne > CS 60319, 60203 Compi?gne cedex > Tel : +33(0)344234688 > http://www.utc.fr/~mottelet > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.s.strom at hslmg.de Tue Nov 23 21:18:31 2021 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Tue, 23 Nov 2021 21:18:31 +0100 Subject: [Scilab-users] Getting the variable name used for a function input argument In-Reply-To: <1989424254.375799.1605881328060.JavaMail.zimbra@insa-rennes.fr> References: <1989424254.375799.1605881328060.JavaMail.zimbra@insa-rennes.fr> Message-ID: <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> Hi Scilab friends, Given a numeric variable like xNum as an input argument of a function call, how can I produce the variable name string "xNum" within the function? Example: function [name,y]=foo(x) ?? name=??? ?? y=x^2 endfunction xNum=123. [name,y]=foo(xNum) The result for name should be the string "xNum" Regards Jens From fmiyara at fceia.unr.edu.ar Wed Nov 24 01:42:26 2021 From: fmiyara at fceia.unr.edu.ar (Federico Miyara) Date: Tue, 23 Nov 2021 21:42:26 -0300 Subject: [Scilab-users] Getting the variable name used for a function input argument In-Reply-To: <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> References: <1989424254.375799.1605881328060.JavaMail.zimbra@insa-rennes.fr> <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> Message-ID: <1250650f-0161-3eff-37ee-1ea69b625508@fceia.unr.edu.ar> I'm not completely sure, but I think this is not possible since what is passed to the function isn't a variable but the value contained in the variable. The name is lost in the process. An alternative way (but I don't know if this would be acceptable for you) is that the function had as its argument a variable name (hence, a string), so your x would be "xNum", instead of 123. Then you could use evstr() to get the value of the variable to proceed with the processing. Regards, Federico Miyara On 23/11/2021 17:18, Jens Simon Strom wrote: > > Hi Scilab friends, > Given a numeric variable like xNum as an input argument of a function > call, how can I produce the variable name string "xNum" within the > function? > > Example: > > function [name,y]=foo(x) > ?? name=??? > ?? y=x^2 > endfunction > > xNum=123. > [name,y]=foo(xNum) > The result for name should be the string "xNum" > > Regards > Jens > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > -- El software de antivirus Avast ha analizado este correo electr?nico en busca de virus. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Nov 24 09:51:07 2021 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 24 Nov 2021 09:51:07 +0100 Subject: [Scilab-users] Getting the variable name used for a function input argument In-Reply-To: <1250650f-0161-3eff-37ee-1ea69b625508@fceia.unr.edu.ar> References: <1989424254.375799.1605881328060.JavaMail.zimbra@insa-rennes.fr> <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> <1250650f-0161-3eff-37ee-1ea69b625508@fceia.unr.edu.ar> Message-ID: Hi, Le 24/11/2021 ? 01:42, Federico Miyara a ?crit?: > > I'm not completely sure, but I think this is not possible since what > is passed to the function isn't a variable but the value contained in > the variable. No. Internally, input arguments are passed as references to the true object. There is no copy unless an input argument is modified in the function (in that case a copy with local scope only). > The name is lost in the process. Yes, before the first line of the function body the original object has the name of the argument, although both names refer to the same object. > > An alternative way (but I don't know if this would be acceptable for > you) is that the function had as its argument a variable name (hence, > a string), so your x would be "xNum", instead of 123. Then you could > use evstr() to get the value of the variable to proceed with the > processing. I think that we are in the presence of an XY problem (https://xyproblem.info/) and that Jens should explain the whole story. S. > > Regards, > > Federico Miyara > > > On 23/11/2021 17:18, Jens Simon Strom wrote: >> >> Hi Scilab friends, >> Given a numeric variable like xNum as an input argument of a function >> call, how can I produce the variable name string "xNum" within the >> function? >> >> Example: >> >> function [name,y]=foo(x) >> ?? name=??? >> ?? y=x^2 >> endfunction >> >> xNum=123. >> [name,y]=foo(xNum) >> The result for name should be the string "xNum" >> >> Regards >> Jens >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> >> > > > > Libre de virus. www.avast.com > > > > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Nov 24 09:53:03 2021 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 24 Nov 2021 09:53:03 +0100 Subject: [Scilab-users] Getting the variable name used for a function input argument In-Reply-To: <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> References: <1989424254.375799.1605881328060.JavaMail.zimbra@insa-rennes.fr> <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> Message-ID: <3a566093-4af7-676a-5162-859c12433996@utc.fr> Jens, please do not use "Reply to:" on an old thread when this is irrelevant. You can create a new thread by directly mailing users at lists.scilab.org S. Le 23/11/2021 ? 21:18, Jens Simon Strom a ?crit?: > > Hi Scilab friends, > Given a numeric variable like xNum as an input argument of a function > call, how can I produce the variable name string "xNum" within the > function? > > Example: > > function [name,y]=foo(x) > ?? name=??? > ?? y=x^2 > endfunction > > xNum=123. > [name,y]=foo(xNum) > The result for name should be the string "xNum" > > Regards > Jens > _______________________________________________ > users mailing list > users at lists.scilab.org > https://antispam.utc.fr/proxy/v3?i=Z09lbVhROVBaOHd3NjZZMVfTogSUUCLtvQYv_TI7-Qg&r=eVVJWkdic3NtZTdZV2pycc8oEJBVcQfwoAgOILbixruFQP-mXZOvGI-Awo-iPm4W&f=UU9IMnpkdmJmSk9YOHVtc4JNomkUGubf8DA_bzrUn-Hiq5VuGo_VlJP1TQC7yyVL&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=eFRI > -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet From sgougeon at free.fr Wed Nov 24 18:07:40 2021 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 24 Nov 2021 18:07:40 +0100 Subject: [Scilab-users] Getting the variable name used for a function input argument In-Reply-To: References: <1989424254.375799.1605881328060.JavaMail.zimbra@insa-rennes.fr> <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> <1250650f-0161-3eff-37ee-1ea69b625508@fceia.unr.edu.ar> Message-ID: <50880f14-0fad-5eb4-b8c3-c79a38c99fe9@free.fr> Le 24/11/2021 ? 09:51, St?phane Mottelet a ?crit?: > > Hi, > > Le 24/11/2021 ? 01:42, Federico Miyara a ?crit?: >> >> I'm not completely sure, but I think this is not possible since what >> is passed to the function isn't a variable but the value contained in >> the variable. > No. Internally, input arguments are passed as references to the true > object. There is no copy /unless an input argument *is modified*/ in > the function (in that case a copy with local scope only). Are you sure about that? Not when they are only reached in read mode? I might have misunderstood, but i remember a discussion with Cl?ment during the last ScilabTech. Cl?ment was categorically stating that all input arguments are copied, only and always copied. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Nov 24 19:34:57 2021 From: stephane.mottelet at utc.fr (=?UTF-8?Q?St=c3=a9phane_Mottelet?=) Date: Wed, 24 Nov 2021 19:34:57 +0100 Subject: [Scilab-users] Getting the variable name used for a function input argument In-Reply-To: <50880f14-0fad-5eb4-b8c3-c79a38c99fe9@free.fr> References: <1989424254.375799.1605881328060.JavaMail.zimbra@insa-rennes.fr> <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> <1250650f-0161-3eff-37ee-1ea69b625508@fceia.unr.edu.ar> <50880f14-0fad-5eb4-b8c3-c79a38c99fe9@free.fr> Message-ID: <0a19c887-fb09-1103-aabb-a059dc42c6fb@utc.fr> Hi, Le 24/11/2021 ? 18:07, Samuel Gougeon a ?crit?: > Le 24/11/2021 ? 09:51, St?phane Mottelet a ?crit?: >> >> Hi, >> >> Le 24/11/2021 ? 01:42, Federico Miyara a ?crit?: >>> >>> I'm not completely sure, but I think this is not possible since what >>> is passed to the function isn't a variable but the value contained >>> in the variable. >> No. Internally, input arguments are passed as references to the true >> object. There is no copy /unless an input argument *is modified*/ in >> the function (in that case a copy with local scope only). > > > Are you sure about that? Not when they are only reached in read mode? > > I might have misunderstood, but i remember a discussion with Cl?ment > during the last ScilabTech. Cl?ment was categorically stating that all > input arguments are copied, only and always copied. > It depends on the type of Callable. If you are talking about Scilab macros, inputs are (hopefully) never copied. However, if you are talking about old-style Scilab 5 C-gateways, yes, there is a wrapper that triggers a copy : https://github.com/opencollab/scilab/blob/master/scilab/modules/ast/src/cpp/types/function.cpp#L333 New cppsci gateways always pass arguments by reference, which allows to modify arguments. This is a feature which is used (at least) in Julia, and the convention they use adds a exclamation mark at the end of the name.? This feature is not used in Scilab, this is a pity... S. > Samuel > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- St?phane Mottelet Ing?nieur de recherche EA 4297 Transformations Int?gr?es de la Mati?re Renouvelable D?partement G?nie des Proc?d?s Industriels Sorbonne Universit?s - Universit? de Technologie de Compi?gne CS 60319, 60203 Compi?gne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Nov 27 13:30:18 2021 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 27 Nov 2021 13:30:18 +0100 Subject: [Scilab-users] Getting the variable name used for a function input argument In-Reply-To: <0a19c887-fb09-1103-aabb-a059dc42c6fb@utc.fr> References: <1989424254.375799.1605881328060.JavaMail.zimbra@insa-rennes.fr> <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> <1250650f-0161-3eff-37ee-1ea69b625508@fceia.unr.edu.ar> <50880f14-0fad-5eb4-b8c3-c79a38c99fe9@free.fr> <0a19c887-fb09-1103-aabb-a059dc42c6fb@utc.fr> Message-ID: Le 24/11/2021 ? 19:34, St?phane Mottelet a ?crit?: > > Hi, > > Le 24/11/2021 ? 18:07, Samuel Gougeon a ?crit?: >> Le 24/11/2021 ? 09:51, St?phane Mottelet a ?crit?: >>> >>> Hi, >>> >>> Le 24/11/2021 ? 01:42, Federico Miyara a ?crit?: >>>> >>>> I'm not completely sure, but I think this is not possible since >>>> what is passed to the function isn't a variable but the value >>>> contained in the variable. >>> No. Internally, input arguments are passed as references to the true >>> object. There is no copy /unless an input argument *is modified*/ in >>> the function (in that case a copy with local scope only). >> >> >> Are you sure about that? Not when they are only reached in read mode? >> >> I might have misunderstood, but i remember a discussion with Cl?ment >> during the last ScilabTech. Cl?ment was categorically stating that >> all input arguments are copied, only and always copied. >> > It depends on the type of Callable. If you are talking about Scilab > macros, inputs are (hopefully) never copied. However, if you are > talking about old-style Scilab 5 C-gateways, yes, there is a wrapper > that triggers a copy : > > https://github.com/opencollab/scilab/blob/master/scilab/modules/ast/src/cpp/types/function.cpp#L333 > 3 years ago, we were talking about macros in Scilab 6.0.(1) This huge improvement of Scilab 6 with respect to Scilab 5 can be actually tested (below). As far as i remember,? it was never advertized when Scilab 6.0.0 alpha or final version were released. Has it? Yet, it drastically improves performances, as in many situations huge arrays are passed while only a tiny part is extracted and used in the function. So, yes, "hopefully", passed inputs are*/no longer/* copied when only addressed, since Scilab 6. Thanks for having clarified it. *With Scilab 5.5.2:* -->a = rand(1000, 1000, 5); -->function test(aa),b = 1, endfunction -->tic(); for i = 1:100, test(a); end; toc() ?ans? = ??? 0.002 -->function test(aa),aa, endfunction ? // aa just addressed, without change -->tic(); for i = 1:100, test(a); end; toc() ?ans? = 3.211 *With Scilab 6.0.0:* --> a = rand(1000, 1000, 5); --> function test(aa),b = 1;, endfunction --> tic(); for i = 1:100, test(a); end; toc() ?ans? = ?? 0.0003982 --> function test(aa), aa, endfunction --> tic(); for i = 1:100, test(a); end; toc() ?ans? = ?? 0.0003522?? !!!! --> function test(aa),b = aa(2,2,2), endfunction --> tic(); for i = 1:100, test(a); end; toc() ?ans? = ?? 0.0006584 --> function test(aa), aa = 3, endfunction --> tic(); for i = 1:100, test(a); end; toc() ?ans? = ?? 0.0003663 --> function test(aa),aa(2,2,2) = 1, endfunction --> tic(); for i = 1:100, test(a); end; toc() ?ans? = ?? 1.7976679???? as expected -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Nov 27 16:07:08 2021 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 27 Nov 2021 16:07:08 +0100 Subject: [Scilab-users] mesh2d - finding identical points In-Reply-To: References: Message-ID: Le 20/11/2020 ? 11:46, St?phane Mottelet a ?crit?: > > Hi again, > > Le 20/11/2020 ? 11:30, P M a ?crit?: >> OK, >> some more background: >> >> I actually want to perform a delaunay triangulation on a set of >> X-Y-Z-coordinates. > I suppose you mean a triangulation of scattered X-Y-Z but you call > mesh2d with X-Y only ? >> >> I know of CGLAB, but it seems only available to Scilab 6.0.x, while I >> am on Scilab 6.1.0 > CGLAB is based on a very old version of CGAL and thus is very hard? to > maintain as is. There is a lot of work... We could certainly expect and understand such a -- potentially blocking -- remark when porting atoms-CGLAB from Scilab 5 to Scilab 6, where the step was very high. After having ported it successfully to Scilab 6 -- that's great! --, the remark is more surprising when dealing with atoms-CGLAB's upgrade for further Scilab 6.x versions, whose code does not changes dramatically. Regards Samuel From sgougeon at free.fr Sat Nov 27 16:24:34 2021 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 27 Nov 2021 16:24:34 +0100 Subject: [Scilab-users] Getting the variable name used for a function input argument In-Reply-To: <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> References: <1989424254.375799.1605881328060.JavaMail.zimbra@insa-rennes.fr> <740fb2a0-d406-6aa5-b02c-0fd2fcb9bf49@hslmg.de> Message-ID: Le 23/11/2021 ? 21:18, Jens Simon Strom a ?crit?: > > Hi Scilab friends, > Given a numeric variable like xNum as an input argument of a function > call, how can I produce the variable name string "xNum" within the > function? That is requested and commented as the still open report #5840 , since 2004. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Mon Nov 29 09:39:04 2021 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 29 Nov 2021 08:39:04 +0000 Subject: [Scilab-users] Reimann Zeta function Message-ID: Hello all, I am interested in the Reimann Zeta function, but it does not appear as an option directly with Scilab (v6.1.1). Has anyone already prepared a function for this? Lester -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Mon Nov 29 09:51:42 2021 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 29 Nov 2021 09:51:42 +0100 Subject: [Scilab-users] Reimann Zeta function In-Reply-To: References: Message-ID: <2E41AB80-176A-492F-99EC-A985070F6107@me.com> Riemann zeta function ! Georg Friedrich Bernhard Riemann (17 September 1826 ? 20 July 1866) was a German mathematician who made contributions to analysis, number theory, and differential geometry. Heinz > On 29.11.2021, at 09:39, Lester Anderson wrote: > > Hello all, > > I am interested in the Reimann Zeta function, but it does not appear as an option directly with Scilab (v6.1.1). > > Has anyone already prepared a function for this? > > Lester > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Mon Nov 29 14:47:36 2021 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 29 Nov 2021 14:47:36 +0100 Subject: [Scilab-users] Atoms toolbox : iodelay toolbox by S.steer In-Reply-To: References: Message-ID: <149d6196-ebdf-d9da-9bda-45cdd38417df@free.fr> Le 05/10/2021 ? 17:24, Lucien Povy a ?crit?: > > Hello all, > > With new version of Scilab >6.1? we cannot use iodelay toolbox : > problem with %rd_string. Hello Lucien, Thanks for reporting this issue. It is now fixed, and the iodelay toolbox can now be installed and used with Scilab 6.1.x --> atomsSystemUpdate() // to be sure to see recent changes < 1 month --> atomsInstall iodelay Best regards Samuel From arctica1963 at gmail.com Mon Nov 29 18:23:26 2021 From: arctica1963 at gmail.com (Lester Anderson) Date: Mon, 29 Nov 2021 17:23:26 +0000 Subject: [Scilab-users] Reimann Zeta function In-Reply-To: <2E41AB80-176A-492F-99EC-A985070F6107@me.com> References: <2E41AB80-176A-492F-99EC-A985070F6107@me.com> Message-ID: Hi all, Found a bit of Matlab/Octave code to solve the Reimann Zeta function for values >= 0, not perfect but it's a start. Need to figure out how to deal with negative values. Lester // Reimann Zeta function: valid for t >= 0 function f=F(x) f = 1./(gamma(t(j))).*x.^(t(j)-1)./(exp(x)-1);endfunction function [z]=zeta(t) global x z = zeros(size(t)); for j = 1:prod(size(t)) if(real(t(j)) >= 0) if(imag(t(j)) == 0 && real(t(j)) > 1) z(j) = intg(0,200,F) elseif(t(j) == 0) z(j) = -0.5; elseif(t(j) == 1) z(j) = %inf; else for k = 1:1:100 z(j) = (-1).^(k-1)./(k.^t(j)); end z(j) = 1./(1-2.^(1-t(j))).*z(j); end else z(j) = 2.^t(j).*%pi.^(t(j)-1).*sin(%pi.*t(j)./2).*gamma(1-t(j)).*zeta(1-t(j)); endend endfunction On Mon, 29 Nov 2021 at 08:51, Heinz Nabielek wrote: > Riemann zeta function ! > > Georg Friedrich Bernhard Riemann (17 September 1826 ? 20 July 1866) was a > German mathematician who made contributions to analysis, number theory, and > differential geometry. > > Heinz > > > > > On 29.11.2021, at 09:39, Lester Anderson wrote: > > > > Hello all, > > > > I am interested in the Reimann Zeta function, but it does not appear as > an option directly with Scilab (v6.1.1). > > > > Has anyone already prepared a function for this? > > > > Lester > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfuttrup at gmail.com Mon Nov 29 18:27:05 2021 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 29 Nov 2021 18:27:05 +0100 Subject: [Scilab-users] Reimann Zeta function In-Reply-To: References: <2E41AB80-176A-492F-99EC-A985070F6107@me.com> Message-ID: Hi Lester Please be reminded of the correct spelling : Riemann Cheers, Claus On 29-11-2021 18:23, Lester Anderson wrote: > Hi all, > > Found a bit of Matlab/Octave code to solve the Reimann Zeta function > for values?>= 0, not perfect but it's a start. Need to figure out how > to deal with negative values. > > Lester > > // Reimann Zeta function: valid for t >= 0 > > function f=F(x) > f = 1./(gamma(t(j))).*x.^(t(j)-1)./(exp(x)-1); > endfunction > > function [z]=zeta(t) > global x > z = zeros(size(t)); > for j = 1:prod(size(t)) > if(real(t(j)) >= 0) > if(imag(t(j)) == 0 && real(t(j)) > 1) > z(j) = intg(0,200,F) > elseif(t(j) == 0) > z(j) = -0.5; > elseif(t(j) == 1) > z(j) = %inf; > else > for k = 1:1:100 > z(j) = (-1).^(k-1)./(k.^t(j)); > end > z(j) = 1./(1-2.^(1-t(j))).*z(j); > end > else > z(j) = 2.^t(j).*%pi.^(t(j)-1).*sin(%pi.*t(j)./2).*gamma(1-t(j)).*zeta(1-t(j)); > end > end > > endfunction > > On Mon, 29 Nov 2021 at 08:51, Heinz Nabielek wrote: > > Riemann zeta function ! > > Georg Friedrich Bernhard Riemann (17 September 1826 ? 20 July > 1866) was a German mathematician who made contributions to > analysis, number theory, and differential geometry. > > Heinz > > > > > On 29.11.2021, at 09:39, Lester Anderson > wrote: > > > > Hello all, > > > > I am interested in the Reimann Zeta function, but it does not > appear as an option directly with Scilab (v6.1.1). > > > > Has anyone already prepared a function for this? > > > > Lester > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From heinznabielek at me.com Mon Nov 29 18:35:39 2021 From: heinznabielek at me.com (Heinz Nabielek) Date: Mon, 29 Nov 2021 18:35:39 +0100 Subject: [Scilab-users] Reimann Zeta function In-Reply-To: References: <2E41AB80-176A-492F-99EC-A985070F6107@me.com> Message-ID: Riemann !!! Do not mutilate names.... > On 29.11.2021, at 18:23, Lester Anderson wrote: > > Hi all, > > Found a bit of Matlab/Octave code to solve the Reimann Zeta function for values >= 0, not perfect but it's a start. Need to figure out how to deal with negative values. > > Lester > > // Reimann Zeta function: valid for t >= 0 > > > > function f=F(x) > > > f = 1./(gamma(t(j))).*x.^(t(j)-1)./(exp(x)-1); > endfunction > > > > function [z]=zeta(t) > > > global x > > > z = zeros(size(t)); > > > for j = 1:prod(size(t)) > > > if(real(t(j)) >= 0) > > > if(imag(t(j)) == 0 && real(t(j)) > 1) > > > z(j) = intg(0,200,F) > > > elseif(t(j) == 0) > > > z(j) = -0.5; > > > elseif(t(j) == 1) > > > z(j) = %inf; > > > else > > > for k = 1:1:100 > > > z(j) = (-1).^(k-1)./(k.^t(j)); > > > end > > > z(j) = 1./(1-2.^(1-t(j))).*z(j); > > > end > > > else > > > z(j) = 2.^t(j).*%pi.^(t(j)-1).*sin(%pi.*t(j)./2).*gamma(1-t(j)).*zeta(1-t(j)); > > > end > end > > > > endfunction > > > On Mon, 29 Nov 2021 at 08:51, Heinz Nabielek wrote: > Riemann zeta function ! > > Georg Friedrich Bernhard Riemann (17 September 1826 ? 20 July 1866) was a German mathematician who made contributions to analysis, number theory, and differential geometry. > > Heinz > > > > > On 29.11.2021, at 09:39, Lester Anderson wrote: > > > > Hello all, > > > > I am interested in the Reimann Zeta function, but it does not appear as an option directly with Scilab (v6.1.1). > > > > Has anyone already prepared a function for this? > > > > Lester > > _______________________________________________ > > users mailing list > > users at lists.scilab.org > > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From stephane.mottelet at utc.fr Mon Nov 29 20:35:12 2021 From: stephane.mottelet at utc.fr (=?utf-8?Q?St=C3=A9phane_Mottelet?=) Date: Mon, 29 Nov 2021 20:35:12 +0100 Subject: [Scilab-users] Reimann Zeta function In-Reply-To: References: Message-ID: <79B1DF04-90C9-4446-B9E7-F4A3ACF59A55@utc.fr> Hello, There is no implementation of the zeta function in Scilab. Beware of naive ways to compute it. You can have a look to this page : http://numbers.computation.free.fr/Constants/Miscellaneous/zeta.html S. > Le 29 nov. 2021 ? 09:39, Lester Anderson a ?crit : > > ? > Hello all, > > I am interested in the Reimann Zeta function, but it does not appear as an option directly with Scilab (v6.1.1). > > Has anyone already prepared a function for this? > > Lester > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From arctica1963 at gmail.com Tue Nov 30 08:25:21 2021 From: arctica1963 at gmail.com (Lester Anderson) Date: Tue, 30 Nov 2021 07:25:21 +0000 Subject: [Scilab-users] Reimann Zeta function In-Reply-To: <79B1DF04-90C9-4446-B9E7-F4A3ACF59A55@utc.fr> References: <79B1DF04-90C9-4446-B9E7-F4A3ACF59A55@utc.fr> Message-ID: Thanks for the info. Sorry about the typo: Riemann! Now corrected. On Mon, 29 Nov 2021 at 19:35, St?phane Mottelet wrote: > Hello, > > There is no implementation of the zeta function in Scilab. Beware of naive > ways to compute it. You can have a look to this page : > > http://numbers.computation.free.fr/Constants/Miscellaneous/zeta.html > > S. > > Le 29 nov. 2021 ? 09:39, Lester Anderson a ?crit : > > ? > Hello all, > > I am interested in the Reimann Zeta function, but it does not appear as an > option directly with Scilab (v6.1.1). > > Has anyone already prepared a function for this? > > Lester > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Tue Nov 30 09:34:21 2021 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Tue, 30 Nov 2021 08:34:21 +0000 Subject: [Scilab-users] Reimann Zeta function In-Reply-To: References: Message-ID: Hello Lester, > De : Lester Anderson > Envoy? : lundi 29 novembre 2021 09:39 > > I am interested in the Reimann Zeta function, but it does not appear as an option directly with Scilab (v6.1.1). Not really an answer to your question, but I'd like to mention that the zeta function is implemented in the R pracma package. https://search.r-project.org/CRAN/refmans/pracma/html/zeta.html https://cran.r-project.org/web/packages/pracma/pracma.pdf It is also in the Python scipy package https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.zeta.html Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.