Re: [Scilab-users] REGTOOLS (Toolbox for linear and nonlinear regression) Not available for SCILAB 2024

2024-11-04 Thread Stéphane Mottelet
https://scilab.discourse.group


On Nov 4, 2024, at 2:29 PM, Samuel Enibe  wrote:

Thanks. Kindly let me have the link to the SCILAB discussion group.
Samuel Enibe

On Mon, 4 Nov 2024, 14:15 Stéphane Mottelet, 
mailto:stephane.motte...@utc.fr>> wrote:
Thank you Samuel. Currently all toolboxes look like they are available and 
working, but this not the case. Many can be rebuilt on-the-fly that’s why this 
behavior has been chosen. However, I understand it can be sometimes misleading. 
Don’t hesitate to use scilab.discourse.group (instead of the mailing list) to 
interact with us and other users.

Best regards,

S.

On Nov 4, 2024, at 1:57 PM, Samuel Enibe 
mailto:samuel.en...@unn.edu.ng>> wrote:

Thank you very much for the response. I believe that this solves the problem.

Samuel Enibe

On Mon, 4 Nov 2024, 11:46 Stéphane Mottelet, 
mailto:stephane.motte...@utc.fr>> wrote:
Hello,

This toolbox has never been compiled since its upload to Atoms portal in 2016.

All its features are currently available in Scilab (see leastsq, datafit, …).

S.

On Oct 30, 2024, at 5:06 PM, Samuel Enibe 
mailto:samuel.en...@unn.edu.ng>> wrote:

Is there any suggestion for the solution to this problem? I have tried to 
install manually but it still doesn't work.

On Fri, 25 Oct 2024, 19:14 Samuel Enibe, 
mailto:samuel.en...@unn.edu.ng>> wrote:
I tried to install the toolbox for linear and nonlinear regression in SCILAB 
known as "regtools" using the command atomsInstall("regtools") in SCILAB 2024 
and found that it cannot be installed. I also tried installing it in version 
6.1.1 and had the same result.

Is there a workaround for this or another toolbox with similar functionality?

Samuel Ogbonna Enibe
University of Nigeria, Nsukka, Nigeria

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org<mailto:users-unsubscr...@lists.scilab.org>>
https://lists.scilab.org/mailman/listinfo/users

—
Stéphane Mottelet
Ingénieur de recherche HDR
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



This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org<mailto:users-unsubscr...@lists.scilab.org>>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data

Re: [Scilab-users] REGTOOLS (Toolbox for linear and nonlinear regression) Not available for SCILAB 2024

2024-11-04 Thread Stéphane Mottelet
Thank you Samuel. Currently all toolboxes look like they are available and 
working, but this not the case. Many can be rebuilt on-the-fly that’s why this 
behavior has been chosen. However, I understand it can be sometimes misleading. 
Don’t hesitate to use scilab.discourse.group (instead of the mailing list) to 
interact with us and other users.

Best regards,

S.

On Nov 4, 2024, at 1:57 PM, Samuel Enibe  wrote:

Thank you very much for the response. I believe that this solves the problem.

Samuel Enibe

On Mon, 4 Nov 2024, 11:46 Stéphane Mottelet, 
mailto:stephane.motte...@utc.fr>> wrote:
Hello,

This toolbox has never been compiled since its upload to Atoms portal in 2016.

All its features are currently available in Scilab (see leastsq, datafit, …).

S.

On Oct 30, 2024, at 5:06 PM, Samuel Enibe 
mailto:samuel.en...@unn.edu.ng>> wrote:

Is there any suggestion for the solution to this problem? I have tried to 
install manually but it still doesn't work.

On Fri, 25 Oct 2024, 19:14 Samuel Enibe, 
mailto:samuel.en...@unn.edu.ng>> wrote:
I tried to install the toolbox for linear and nonlinear regression in SCILAB 
known as "regtools" using the command atomsInstall("regtools") in SCILAB 2024 
and found that it cannot be installed. I also tried installing it in version 
6.1.1 and had the same result.

Is there a workaround for this or another toolbox with similar functionality?

Samuel Ogbonna Enibe
University of Nigeria, Nsukka, Nigeria

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org<mailto:users-unsubscr...@lists.scilab.org>>
https://lists.scilab.org/mailman/listinfo/users

—
Stéphane Mottelet
Ingénieur de recherche HDR
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



This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org<mailto:users-unsubscr...@lists.scilab.org>>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scil

Re: [Scilab-users] REGTOOLS (Toolbox for linear and nonlinear regression) Not available for SCILAB 2024

2024-11-04 Thread Stéphane Mottelet
Hello,

This toolbox has never been compiled since its upload to Atoms portal in 2016.

All its features are currently available in Scilab (see leastsq, datafit, …).

S.

On Oct 30, 2024, at 5:06 PM, Samuel Enibe  wrote:

Is there any suggestion for the solution to this problem? I have tried to 
install manually but it still doesn't work.

On Fri, 25 Oct 2024, 19:14 Samuel Enibe, 
mailto:samuel.en...@unn.edu.ng>> wrote:
I tried to install the toolbox for linear and nonlinear regression in SCILAB 
known as "regtools" using the command atomsInstall("regtools") in SCILAB 2024 
and found that it cannot be installed. I also tried installing it in version 
6.1.1 and had the same result.

Is there a workaround for this or another toolbox with similar functionality?

Samuel Ogbonna Enibe
University of Nigeria, Nsukka, Nigeria

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users

—
Stéphane Mottelet
Ingénieur de recherche HDR
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




This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] plotting a point surrounded by -inf doesn't work

2024-10-24 Thread Stéphane Mottelet
Hello Frederico,

Can you give a graphical illustration of the expected renderings (please, use 
Scilab’s Discourse) ?

S.

On Oct 24, 2024, at 08:41, Federico Miyara  wrote:


Dear All,

When attempting this:

x = 1:3
y = [-%inf 1 -%inf]
plot(x, y)

the plot is blank. I guess this is because there is no second point to draw a 
line. While in some cases it is useful that infinites or NaNs are just excluded 
from representation, in some other cases it would be nice to see the isolated 
points as simple dots, or to see just a vertical line coming from the bottom of 
the graph and ending at the ordinate of the isolated point, like in the case of 
a line spectrum. Is there a way to do this by adjusting axis handle parameters?

Regards,

Federico Miyara

[https://s-install.avcdn.net/ipm/preview/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
  Libre de 
virus.www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users

—
Stéphane Mottelet
Ingénieur de recherche HDR
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


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Precision of ode( )

2024-10-14 Thread Stéphane Mottelet




And, a small plea: you’d better use scilab’s Discourse forum, a very small number of Scilab users use this channel now…


S.

Le 14 oct. 2024 à 22:58, Jens Simon Strom  a écrit :




 Hallo Scilab experts,
If I use ode() to simulate the two-body problem sun-earth (state vector of 12 barycentric coordinates), there is a large discrepancy between the numerical and the analytical solution: In a simulation time of 550 (analytically calculated) orbital periods, the
 Earth completes 551 orbits. The circular orbit shape is fine. I used ode( ) with the default solver and the default tolerances. By narrowing the tolerances, the result becomes not more accurate. Can another solver help here that improves the numerical
 precision? 

Kind regards
Jens

This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer

https://www.3ds.com/privacy-policy/contact/



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://antiphishing.vadesecure.com/v4?f=TmtFVlNVNmxSYnFaWFhxYgPMpQpWvY3HzpPfjps4ZLlMm08-rUJIuwN6mwN6YXXG&i=d09ZU0Z5WTAyTG85WWdYbKbcMRy4OoYRhKDwqdlSH4I&k=DWI7&r=UTEzTUpQcktwRVdhdEg1TLKdOzB5_yuNSWAU2VL5TBMDhe0_ry9mmjfJPFyDdTIO&s=bca9dee2423f7a9da22d28f1f71987d5717f2bfa515be9e310a20ed650f2eced&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers



This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer
https://www.3ds.com/privacy-policy/contact/





___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Precision of ode( )

2024-10-14 Thread Stéphane Mottelet




Hello,

Le 14 oct. 2024 à 22:58, Jens Simon Strom  a écrit :




 Hallo Scilab experts,
If I use ode() to simulate the two-body problem sun-earth (state vector of 12 barycentric coordinates), there is a large discrepancy between the numerical and the analytical solution: In a simulation time of 550 (analytically calculated) orbital periods, the
 Earth completes 551 orbits. The circular orbit shape is fine. I used ode( ) with the default solver and the default tolerances. By narrowing the tolerances, the result becomes not more accurate. Can another solver help here that improves the numerical
 precision? 




Sure. For gravitational simulation use  arkode with ERK_8 method. You will be able to reach a high tolerance up to rtol=1e-14. However, if the results are still not ok for you there may be another problem in your equations.


S.





Kind regards
Jens

This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer

https://www.3ds.com/privacy-policy/contact/



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://antiphishing.vadesecure.com/v4?f=TmtFVlNVNmxSYnFaWFhxYgPMpQpWvY3HzpPfjps4ZLlMm08-rUJIuwN6mwN6YXXG&i=d09ZU0Z5WTAyTG85WWdYbKbcMRy4OoYRhKDwqdlSH4I&k=DWI7&r=UTEzTUpQcktwRVdhdEg1TLKdOzB5_yuNSWAU2VL5TBMDhe0_ry9mmjfJPFyDdTIO&s=bca9dee2423f7a9da22d28f1f71987d5717f2bfa515be9e310a20ed650f2eced&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers



This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer
https://www.3ds.com/privacy-policy/contact/





___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] leastsq kills Scilab

2024-08-29 Thread Stéphane Mottelet
As said in the issue, you can run your script with the x86_64 version to see 
the error.

S.

> Le 29 août 2024 à 18:51, Heinz Nabielek  a écrit :
>
> I need the "`[fopt,xopt,gopt]=leastsq(list(cost,time,value),p)" command for 
> obtaining the necessary model parameters. What can we do? Heinz
>
>
>
>
>> On 29.08.2024, at 08:42, Stéphane Mottelet  wrote:
>>
>> Hello Heinz,
>>
>> See 
>> https://antiphishing.vadesecure.com/v4?f=SnpNUUNxek1BTWh6ZFZjaWS-plicgKLgGmvGdUxygz8_UWQ9sL3me9buN1NHKIg5&i=cHp0TkJvdm11bGhoR250SmgzWyo_pLShMtUzEpeQLkU&k=6xq5&r=Z1RORVRCV0NEb2hhaDhMZMIPJZSFwvTaK32dfs4n6-2Ca_dADhE1rjNSBcQz5I0U&s=4126bbd5157541b6eca40f6d6071ac5b7c90ccc41c42ccdbb55bc41cc8e3c10e&u=https%3A%2F%2Fgitlab.com%2Fscilab%2Fscilab%2F-%2Fissues%2F17285
>>
>> S.
>>
>>>> On Aug 29, 2024, at 03:55, Heinz Nabielek  wrote:
>>>
>>> My last line of code (below) forces Scilab to quit unexpectedly. Why? And 
>>> how can I avoid it?
>>> Heinz
>>>
>>> PS Code and data are massively simplified from my "real" problems.
>>>
>>> // Functional behaviour obtained from integration
>>> function YP=Model2(p,xc)
>>> x=1:300; df2=(exp(-x/p))/p;f2=cumsum(df2);
>>> YP=f2(xc)
>>> endfunction
>>> // Measurements
>>> time=[10 50 7080 100  170  200];
>>> value= [   0.09   0.49   0.6   0.68   0.71   0.89   0.91];
>>> // Cost function
>>> function DV=cost(pv, xv, yv)
>>> DV= Model2(pv,xv)-yv;
>>> endfunction
>>> // Nonlinear least squares fit
>>> p=77; [fopt,xopt,gopt]=leastsq(list(cost,time,value),p);pfit=xopt
>
>
> __
> Dr Heinz Nabielek
> Park Residenz Döbling
> Seniorenheim, App. 134
> Hartäckerstraße 45, 1190 Wien, Österreich
> Tel +43 1 476 20 134
> cell +43 677 616 349 22
> heinznabie...@me.com
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] leastsq kills Scilab

2024-08-28 Thread Stéphane Mottelet
Hello Heinz,

See https://gitlab.com/scilab/scilab/-/issues/17285

S.

> On Aug 29, 2024, at 03:55, Heinz Nabielek  wrote:
>
> My last line of code (below) forces Scilab to quit unexpectedly. Why? And how 
> can I avoid it?
> Heinz
>
> PS Code and data are massively simplified from my "real" problems.
>
> // Functional behaviour obtained from integration
> function YP=Model2(p,xc)
>  x=1:300; df2=(exp(-x/p))/p;f2=cumsum(df2);
>  YP=f2(xc)
> endfunction
> // Measurements
> time=[10 50 7080 100  170  200];
> value= [   0.09   0.49   0.6   0.68   0.71   0.89   0.91];
> // Cost function
> function DV=cost(pv, xv, yv)
>  DV= Model2(pv,xv)-yv;
> endfunction
> // Nonlinear least squares fit
> p=77; [fopt,xopt,gopt]=leastsq(list(cost,time,value),p);pfit=xopt

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Optimizing parameters of a set of ODE on experimental results solved by C++ code

2024-08-27 Thread Stéphane Mottelet
Hello Marc,

Scilab is well fitted for this kind of problem if you use the right tools: we 
now have the sundials ode solvers and the very robust Ipopt, both working with 
Scilab or compiled gateways. I have already used these features for big 
identification problems, so fell free to contact me directly.

Best regards,

S.

> Le 27 août 2024 à 19:14, Marc Bletry  a écrit :
>
> Hello,
>
> I have a problem under the form of a set of 2 ODE that includes 6 free 
> parameters. I need to optimize these parameters based on experimental 
> results. So far, basically, I have implemented a C++ object that solves the 
> problem (using RK4 method), can interpolate these results, can load an 
> experimental file and determine the distance between model and results using 
> the interpolated function. All this is in one big fat class. Its constructor 
> takes 2 filenames: one for the experimental results and the other one for 
> time parameters driving the system (strain and strain rate, to be more 
> precise).
>
> Now, I am looking for a method to adjust my parameters (which differ greatly 
> in magnitude : some are of the order of 1e-28, others 0.02 and others 1e9 or 
> even 1e13). I was wondering whether it would be possible to use Scilab's 
> optim to do this, but I can't find an example using C++ classes : only C and 
> Fortran 90. Would anyone know if there is a way to do this ? I don't want to 
> have to reload the experimental files at each iteration : that would take 
> forever, so it seems to me I need an object to store this... or maybe there 
> are solutions in C, but I'm really not familiar with that language...
>
> Thanks a lot !
>
> Marc
> ___
> users mailing list - users@lists.scilab.org
> Click here to unsubscribe: 
> https://antiphishing.vadesecure.com/v4?f=a01NeVpJUVFuWGRPdUpiU4hIl7CD4oIZ5qZTWkefszSPMI1u6TlC47ZQP1z_GQeV&i=UldjRTVlRUx4UHBhbllkdFA7WGfJB43MDzhO7AXRXaw&k=EnVP&r=VlJpQU1pSUdMSmhaSzdCcpTBAiSOd6CirytNheuI00tnSE4b8Sp1M51JqGqXjbZ2&s=c9135c361ff6b320d36cbcd2ef1e1fbf0cef088a91d9f90f39a12b0041efbb5d&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers
> This email and any attachments are intended solely for the use of the 
> individual or entity to whom it is addressed and may be confidential and/or 
> privileged.
>
> If you are not one of the named recipients or have received this email in 
> error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this 
> email and all attachments,
>
> (iii) Dassault Systèmes does not accept or assume any liability or 
> responsibility for any use of or reliance on this email.
>
>
> Please be informed that your personal data are processed according to our 
> data privacy policy as described on our website. Should you have any 
> questions related to personal data protection, please contact 3DS Data 
> Protection Officer 
> https://antiphishing.vadesecure.com/v4?f=a01NeVpJUVFuWGRPdUpiU4hIl7CD4oIZ5qZTWkefszSPMI1u6TlC47ZQP1z_GQeV&i=UldjRTVlRUx4UHBhbllkdFA7WGfJB43MDzhO7AXRXaw&k=EnVP&r=VlJpQU1pSUdMSmhaSzdCcpTBAiSOd6CirytNheuI00tnSE4b8Sp1M51JqGqXjbZ2&s=64b1259aae0f49f5661b687e48ab952c2f7fccecd480014d1606bd16e950c85b&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F
>
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Problem with function xlread from ATOMS package xlreadwrite on UBUNTU 2022 LTS

2024-07-25 Thread Stéphane Mottelet
Hello,

Did you test it with the latest Scilab version (2024.1.0) ?

S.

On Jul 25, 2024, at 14:36, Samuel Enibe  wrote:

I  installed the xlreadwrite package from the ATOMS  as required. I am using 
the UBUNTU 2022  LTS operating system with SCILAB 6.1 installed.

I then ran the example indicated in the function help as follows

// read specified range of second sheet of xlsx file
filename = 
fullpath(atomsGetLoadedPath("xlreadwrite")+'/demos/xlsx/Testbig.xlsx');
numbers = xlread(filename,2,"B3:D6");

I obtained the following error message;

xlread: cannot find the POI library in Scilab Java path.


Any suggestions for solving the problem will be appreciated.


Samuel Ogbonna Enibe
University of Nigeria, Nsukka, Nigeria

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/<https://antiphishing.vadesecure.com/v4?f=WExObUdsNkxHUTVwMTdKdhdFqB_csQmwbwMji6IzCsbW4ojf5ZlP9V3cEvyl4-L9&i=dktEMmMyTnlid1lsUjVvYvDN_JOWQiuLkonzg1_2L5o&k=dPpv&r=bGMwQ1dycHZ0bUpyOWJIRjF6IflMsGgMoeuPCDLOg38NkhE1DnWCCfv0DmTu4X3Z&s=d1cdccd2fcf8ad23b703b4ee8c94c46246ea6ba99d18ac2eea4174b26c0a06fb&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F>

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=WExObUdsNkxHUTVwMTdKdhdFqB_csQmwbwMji6IzCsbW4ojf5ZlP9V3cEvyl4-L9&i=dktEMmMyTnlid1lsUjVvYvDN_JOWQiuLkonzg1_2L5o&k=dPpv&r=bGMwQ1dycHZ0bUpyOWJIRjF6IflMsGgMoeuPCDLOg38NkhE1DnWCCfv0DmTu4X3Z&s=f310e6cb316673dca1bbeba0df991fa12026d6de908e404c3fc14646ebb35a48&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers

—
Stéphane Mottelet
Ingénieur de recherche HDR
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


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Gridding irregular data to apply contour or Sgrayplot

2024-05-31 Thread Stéphane Mottelet

Hello Lester,

I have answered on discourse:

https://scilab.discourse.group/t/creating-a-contour-plot-of-an-irregular-plot-area/

As the Kaverina plot is very similar to a classical ternary plot, the same 
tools can probably be used, bsesides the fact that the triangle seems to be a 
Reulaux triangle (https://en.wikipedia.org/wiki/Reuleaux_triangle) am I right ?

Best,

S.

On 5/30/24 16:33, Lester Anderson wrote:
Hello,

Given the attached plot example, is it possible to contour or use Sgrayplot on 
such data if it is not on a regular grid?

The plot is a Kaverina earthquake analysis, and I am looking to generate a 
density plot within the Kaverina plot region only.All arrays have the same 
size, X,Y,data1, data2 etc

Any pointers would be helpful.

Thanks
Lester

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/<https://antiphishing.vadesecure.com/v4?f=dFBIQWw5dXgzbWFsM2tsT-0seGx25PNnbhrJCkvkDIuRYLQ9BwXZqRSXbWLLCWuZ&i=SlByS3BFV2F0SDVMendyZlop26W07kQs22xs7O_FpmY&k=Q13M&r=aUNHeWZWOGdPRlB5Z05Zb3bJ4W83T1IsWPf_GzcpxAYKWWz42WlH27em6A6VOYFm&s=0c6370c21ed7244617c54524f17e2c171389b7a57f765e6213011ec4618e5415&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F>




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=dFBIQWw5dXgzbWFsM2tsT-0seGx25PNnbhrJCkvkDIuRYLQ9BwXZqRSXbWLLCWuZ&i=SlByS3BFV2F0SDVMendyZlop26W07kQs22xs7O_FpmY&k=Q13M&r=aUNHeWZWOGdPRlB5Z05Zb3bJ4W83T1IsWPf_GzcpxAYKWWz42WlH27em6A6VOYFm&s=54f9241e658f8419171c9cea1c2e791a2afc8eaa8a0dfd6d1e26d0900f0c4d24&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


--
Stéphane Mottelet
Ingénieur de recherche HDR
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

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Multipage pdf toolbox

2024-05-30 Thread Stéphane Mottelet

Hello,

A new toolbox has been released. Read the details at

https://scilab.discourse.group/t/new-multipage-pdf-toolbox/

--
Stéphane Mottelet
Ingénieur de recherche HDR
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Clipping curves given coordinates

2024-05-16 Thread Stéphane Mottelet

Hello,

See my answer on discourse :

https://scilab.discourse.group/t/fill-a-region-defined-by-the-intersection-of-curves

S.

On 5/15/24 12:42, Lester Anderson wrote:
Hello,

I have a plot which forms the basis of an earthquake focal mechanism solution 
(attached). The code is adapted from the Matlab BB.m code.

What I am looking to do is clip the curves along segments (A-B), (B-C) and 
(A-C), concatenate the x and y values and fill the polygon using xfpoly..

Is there a way to clip the curve paths and circle given the coordinates for A, 
B and C?

The curve paths are stored as X, Y coordinates.
Any pointerts would be helpful.

Thanks

Lester



This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/<https://antiphishing.vadesecure.com/v4?f=aVFvaE0zemx5ajRzSWI0SMjUGzIO-KVx1jyOcm_nLIXCH3NDNuE2y2dsV4r_Trp1&i=ZTM1amZOb3Bjd1dBdXVEc-ZbKLVGV6ShLFjCWb70Ugo&k=zrMx&r=a2R0UHQyNmNpaUxyR0p5WiYlK-1DRJdE45Av5No7SkblWgfYQgYdPzCV1y48D-WW&s=bb4f998accdf3e12b848c1c4bebceca87a8b9ea46812cf8cef85704d0ee4795d&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F>




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=aVFvaE0zemx5ajRzSWI0SMjUGzIO-KVx1jyOcm_nLIXCH3NDNuE2y2dsV4r_Trp1&i=ZTM1amZOb3Bjd1dBdXVEc-ZbKLVGV6ShLFjCWb70Ugo&k=zrMx&r=a2R0UHQyNmNpaUxyR0p5WiYlK-1DRJdE45Av5No7SkblWgfYQgYdPzCV1y48D-WW&s=9cf22f12d0852a16319b3c4cd43da0fd2b10df76e39ffee31fe65b9b6f804e69&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


--
Stéphane Mottelet
Ingénieur de recherche HDR
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

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Clipping curves given coordinates

2024-05-15 Thread Stéphane Mottelet

Hello,

Do you meaning fill the following region ?

[fill]
On 5/15/24 12:42, Lester Anderson wrote:
Hello,

I have a plot which forms the basis of an earthquake focal mechanism solution 
(attached). The code is adapted from the Matlab BB.m code.

What I am looking to do is clip the curves along segments (A-B), (B-C) and 
(A-C), concatenate the x and y values and fill the polygon using xfpoly..

Is there a way to clip the curve paths and circle given the coordinates for A, 
B and C?

The curve paths are stored as X, Y coordinates.
Any pointerts would be helpful.

Thanks

Lester



This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/<https://antiphishing.vadesecure.com/v4?f=aVFvaE0zemx5ajRzSWI0SMjUGzIO-KVx1jyOcm_nLIXCH3NDNuE2y2dsV4r_Trp1&i=ZTM1amZOb3Bjd1dBdXVEc-ZbKLVGV6ShLFjCWb70Ugo&k=zrMx&r=a2R0UHQyNmNpaUxyR0p5WiYlK-1DRJdE45Av5No7SkblWgfYQgYdPzCV1y48D-WW&s=bb4f998accdf3e12b848c1c4bebceca87a8b9ea46812cf8cef85704d0ee4795d&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F>




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=aVFvaE0zemx5ajRzSWI0SMjUGzIO-KVx1jyOcm_nLIXCH3NDNuE2y2dsV4r_Trp1&i=ZTM1amZOb3Bjd1dBdXVEc-ZbKLVGV6ShLFjCWb70Ugo&k=zrMx&r=a2R0UHQyNmNpaUxyR0p5WiYlK-1DRJdE45Av5No7SkblWgfYQgYdPzCV1y48D-WW&s=9cf22f12d0852a16319b3c4cd43da0fd2b10df76e39ffee31fe65b9b6f804e69&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


--
Stéphane Mottelet
Ingénieur de recherche HDR
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

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] I need a numerial procedure to generate Exponentially Modified Gaussian deviates

2024-04-30 Thread Stéphane Mottelet

See my post on Discourse:

https://scilab.discourse.group/t/exponentially-modified-gaussian-distribution

S.

On 4/30/24 08:46, Stéphane Mottelet wrote:

Hello,

As I already said, there is no need for using this technique, as an EMG
random variable is the sum of a Gaussian and an exponential. If your CDF
reads as

f = (a/2)*exp((a/2)*((a*σ^2)-2*h)) .* erfc((a*σ^2-h)/σ/sqrt(2))

then the underlying variable is the sum of Gaussian of mean 0, variance
σ^2, and an exponential of rate a. Then, you can simulate n draws of
this variable in Scilab with

grand(n,1,"nor",0,σ) + grand(n,1,"exp",a)

S.

On 4/30/24 01:44, Heinz Nabielek wrote:

Very useful. I had done a similar thing with the EMG, but much more
clumsy
Heinz


On 29.04.2024, at 16:41, Federico Miyara 
wrote:


Heinz,

I don't know if this might be useful. The function I'm attaching
allows to generate random numbers according to any distribution,
either empirical or analytical. The results may be scaled if necessary.

Regards,

Federico Miyara


On 29/4/2024 00:11, Heinz Nabielek wrote:

Colleagues:

bird flight altitude probabilities are given by the exponentially
modified Gaussian distribution EMG f=f(h), in my case

f = (a/2)*exp((a/2)*((a*σ^2)-2*h)) .* erfc((a*σ^2-h)/σ/sqrt(2))

with h=hmeasured-85 in meters, a=1/60m, σ=30m. See:
<https://antiphishing.vadesecure.com/v4?f=SDlhUlZiaXFEVHROSUhTb0qrO2AR7jfbvbNtVdf1_aC917oIdR0Gc2d8Rd6FD2Bc&i=TFpzSWRVdmRmMGQwa1BoSiimVxxfUPBdU67jVuwVi4s&k=4IV5&r=bzNQRmtWdWVld3VrdkQzNUBU-sIUgBXJ8jKxvWcVsg0fKphq97waH97_kCu1wpxV&s=e2aae9ad20320b735f15a05e15e449b31fb9fc2727a89289de82079d7c61fc15&u=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FExponentially_modified_Gaussian_distribution>.

For bird flight Monte-Carlo simulations, I need random deviates
representing this distribution.
Normally, I generate the cumulative function F of f. Then, I
project uniform random numbers U(0,1) on F^-1, the inverse of the
cumulative.

With the EMG, closed solutions are not available and I need a
numerial procedure to generate EMG deviates.
What is the best way to do this?
Best greetings
Heinz
This email and any attachments are intended solely for the use of
the individual or entity to whom it is addressed and may be
confidential and/or privileged.

If you are not one of the named recipients or have received this
email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according
to our data privacy policy as described on our website. Should you
have any questions related to personal data protection, please
contact 3DS Data Protection Officer
https://antiphishing.vadesecure.com/v4?f=SDlhUlZiaXFEVHROSUhTb0qrO2AR7jfbvbNtVdf1_aC917oIdR0Gc2d8Rd6FD2Bc&i=TFpzSWRVdmRmMGQwa1BoSiimVxxfUPBdU67jVuwVi4s&k=4IV5&r=bzNQRmtWdWVld3VrdkQzNUBU-sIUgBXJ8jKxvWcVsg0fKphq97waH97_kCu1wpxV&s=b5d6e33a0a14988d2e95f8136aae533cede18997ddc7ac3015294495eeebdb35&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F






___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=SDlhUlZiaXFEVHROSUhTb0qrO2AR7jfbvbNtVdf1_aC917oIdR0Gc2d8Rd6FD2Bc&i=TFpzSWRVdmRmMGQwa1BoSiimVxxfUPBdU67jVuwVi4s&k=4IV5&r=bzNQRmtWdWVld3VrdkQzNUBU-sIUgBXJ8jKxvWcVsg0fKphq97waH97_kCu1wpxV&s=3c9b8e836fc56309ec6648e54301842439f5f2e8a78a44013cb50d3010a031b6&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers



--
Este correo electrónico ha sido analizado en busca de virus por el
software antivirus de Avast.
www.avast.com

This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this
email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer
https://antiphishing.vadesecure.com/v4?f=SDlhUlZiaXFEVHROSUhTb0qrO2AR7jfbvbNtVdf1_aC917oIdR0Gc2d8Rd6FD2Bc&i=TFpzSWRVdmRmMGQwa1BoSiimVxxfUPBdU67jVuwVi4s&k=4IV5&r=bzNQRmtWdWVld3VrdkQzNUBU-sIUgBXJ8jKxvWcVsg0fKphq97waH97_kCu1wpxV&s=b5d6e33a0a14988d2e95f8136aae533cede18997ddc7ac3015294495eeebdb

Re: [Scilab-users] I need a numerial procedure to generate Exponentially Modified Gaussian deviates

2024-04-29 Thread Stéphane Mottelet
_
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=SDlhUlZiaXFEVHROSUhTb0qrO2AR7jfbvbNtVdf1_aC917oIdR0Gc2d8Rd6FD2Bc&i=TFpzSWRVdmRmMGQwa1BoSiimVxxfUPBdU67jVuwVi4s&k=4IV5&r=bzNQRmtWdWVld3VrdkQzNUBU-sIUgBXJ8jKxvWcVsg0fKphq97waH97_kCu1wpxV&s=3c9b8e836fc56309ec6648e54301842439f5f2e8a78a44013cb50d3010a031b6&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


--
Stéphane Mottelet
Ingénieur de recherche HDR
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] I need a numerial procedure to generate Exponentially Modified Gaussian deviates

2024-04-29 Thread Stéphane Mottelet

Sorry,

This is just a manifestation of another occurence of the xy problem. You
told about y (drawing from a given PDF) but the original problem was x :
drawing a random variable which is the sum of two random variables for
which we already have  generators. In fact an EMG random variable Z may
be expressed as Z = X + Y, where X and Y are independent, X is Gaussian
with mean μ and variance σ2, and Y is exponential of rate λ
(https://en.wikipedia.org/wiki/Exponentially_modified_Gaussian_distribution).

So you just have to use grand
(https://help.scilab.org/docs/2024.0.0/en_US/grand.html) to make
independant draws of X and Y then make the sum afterwards

S.


On 4/29/24 08:53, Stéphane Mottelet wrote:

Hello,

I think that the best method available for this application (you wil
need a massive number of draws) is the rejection method
(https://antiphishing.vadesecure.com/v4?f=UERGdHg5cm1GRGl1YjhpeIZFujPY8-l5ZKAsVrZPIXrBA1YUJSBwS6v_Z_tlJsgh&i=cFpWc2dOMHdjcFZGMTl4Ng1_zKOb4VfyPb7ITkhLE8Q&k=hNdW&r=bHdDQW5tZDVCemI1ZVczSRLgxDOkCpIXuvcVP3kQ4ZNl3wZFY-aM6EkdaTlJ-T4B&s=a235fcad73b939a4a3e646b9493cfb924ed27ef41d118d10aa17ce462170e545&u=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FRejection_sampling).
Let us continue this
discussion on Scilab's Discourse...

S.

On 4/29/24 05:11, Heinz Nabielek wrote:

Colleagues:

bird flight altitude probabilities are given by the exponentially
modified Gaussian distribution EMG f=f(h), in my case

f = (a/2)*exp((a/2)*((a*σ^2)-2*h)) .* erfc((a*σ^2-h)/σ/sqrt(2))

with h=hmeasured-85 in meters, a=1/60m, σ=30m. See:
<https://antiphishing.vadesecure.com/v4?f=TzBPM05TMWhaUkVuRncwepXXm7aQUUs8a3sBKnOeo3zqzzPE1PUeJxFSe39wh75Y&i=NmhwUWdPbjljNWRxSlVxNUTscW_rXmsdS5CfW3ms-T8&k=Yhxs&r=bGlzcjBDTTd4VWcyWjZtQ6_TAL2evagZ2vYr-1xJf13LwHIc8EKwrvfWFnwxUdMu&s=54fcca2dabb8b02e9b10abb7c1f2938e90f160a2cb53c8e34c8bf8d215ab3a96&u=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FExponentially_modified_Gaussian_distribution>.

For bird flight Monte-Carlo simulations, I need random deviates
representing this distribution.
Normally, I generate the cumulative function F of f. Then, I project
uniform random numbers U(0,1) on F^-1, the inverse of the cumulative.

With the EMG, closed solutions are not available and I need a
numerial procedure to generate EMG deviates.
What is the best way to do this?
Best greetings
Heinz
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this
email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer
https://antiphishing.vadesecure.com/v4?f=TzBPM05TMWhaUkVuRncwepXXm7aQUUs8a3sBKnOeo3zqzzPE1PUeJxFSe39wh75Y&i=NmhwUWdPbjljNWRxSlVxNUTscW_rXmsdS5CfW3ms-T8&k=Yhxs&r=bGlzcjBDTTd4VWcyWjZtQ6_TAL2evagZ2vYr-1xJf13LwHIc8EKwrvfWFnwxUdMu&s=32fd60a5220ff414f060b063dbad3fd497b0262a1a66989e7b8e20f9d7c7a9bb&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F





___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=TzBPM05TMWhaUkVuRncwepXXm7aQUUs8a3sBKnOeo3zqzzPE1PUeJxFSe39wh75Y&i=NmhwUWdPbjljNWRxSlVxNUTscW_rXmsdS5CfW3ms-T8&k=Yhxs&r=bGlzcjBDTTd4VWcyWjZtQ6_TAL2evagZ2vYr-1xJf13LwHIc8EKwrvfWFnwxUdMu&s=fad40986af4782d963cce3e934e1b3a27f33aac0d0c0cf2fc74c3083c7682e2a&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers



--
Stéphane Mottelet
Ingénieur de recherche HDR
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
https://antiphishing.vadesecure.com/v4?f=UERGdHg5cm1GRGl1YjhpeIZFujPY8-l5ZKAsVrZPIXrBA1YUJSBwS6v_Z_tlJsgh&i=cFpWc2dOMHdjcFZGMTl4Ng1_zKOb4VfyPb7ITkhLE8Q&k=hNdW&r=bHdDQW5tZDVCemI1ZVczSRLgxDOkCpIXuvcVP3kQ4ZNl3wZFY-aM6EkdaTlJ-T4B&s=400c609e5d747f0602b75960a3c07a8b840bb89166c364330d50e830fac92ca5&u=http%3A%2F%2Fwww.utc.fr%2F~mottelet


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=UERGdHg5cm1GRGl1YjhpeIZFujPY8-l5ZKAsVrZPIXrBA1YUJSBwS6v_Z_tlJsg

Re: [Scilab-users] I need a numerial procedure to generate Exponentially Modified Gaussian deviates

2024-04-28 Thread Stéphane Mottelet

Hello,

I think that the best method available for this application (you wil
need a massive number of draws) is the rejection method
(https://en.wikipedia.org/wiki/Rejection_sampling). Let us continue this
discussion on Scilab's Discourse...

S.

On 4/29/24 05:11, Heinz Nabielek wrote:

Colleagues:

bird flight altitude probabilities are given by the exponentially modified 
Gaussian distribution EMG f=f(h), in my case

f = (a/2)*exp((a/2)*((a*σ^2)-2*h)) .* erfc((a*σ^2-h)/σ/sqrt(2))

with h=hmeasured-85 in meters, a=1/60m, σ=30m. See: 
<https://antiphishing.vadesecure.com/v4?f=TzBPM05TMWhaUkVuRncwepXXm7aQUUs8a3sBKnOeo3zqzzPE1PUeJxFSe39wh75Y&i=NmhwUWdPbjljNWRxSlVxNUTscW_rXmsdS5CfW3ms-T8&k=Yhxs&r=bGlzcjBDTTd4VWcyWjZtQ6_TAL2evagZ2vYr-1xJf13LwHIc8EKwrvfWFnwxUdMu&s=54fcca2dabb8b02e9b10abb7c1f2938e90f160a2cb53c8e34c8bf8d215ab3a96&u=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FExponentially_modified_Gaussian_distribution>.

For bird flight Monte-Carlo simulations, I need random deviates representing 
this distribution.
Normally, I generate the cumulative function F of f. Then, I project uniform 
random numbers U(0,1) on F^-1, the inverse of the cumulative.

With the EMG, closed solutions are not available and I need a numerial 
procedure to generate EMG deviates.
What is the best way to do this?
Best greetings
Heinz
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://antiphishing.vadesecure.com/v4?f=TzBPM05TMWhaUkVuRncwepXXm7aQUUs8a3sBKnOeo3zqzzPE1PUeJxFSe39wh75Y&i=NmhwUWdPbjljNWRxSlVxNUTscW_rXmsdS5CfW3ms-T8&k=Yhxs&r=bGlzcjBDTTd4VWcyWjZtQ6_TAL2evagZ2vYr-1xJf13LwHIc8EKwrvfWFnwxUdMu&s=32fd60a5220ff414f060b063dbad3fd497b0262a1a66989e7b8e20f9d7c7a9bb&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F





___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=TzBPM05TMWhaUkVuRncwepXXm7aQUUs8a3sBKnOeo3zqzzPE1PUeJxFSe39wh75Y&i=NmhwUWdPbjljNWRxSlVxNUTscW_rXmsdS5CfW3ms-T8&k=Yhxs&r=bGlzcjBDTTd4VWcyWjZtQ6_TAL2evagZ2vYr-1xJf13LwHIc8EKwrvfWFnwxUdMu&s=fad40986af4782d963cce3e934e1b3a27f33aac0d0c0cf2fc74c3083c7682e2a&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


--
Stéphane Mottelet
Ingénieur de recherche HDR
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] structures manipulation

2024-04-09 Thread Stéphane Mottelet

Yes, this would be almost the same code:
obj=struct();
obj.a=1;
obj.b=2;
obj.c=3;

tmp=fieldnames(obj);

for i=1:3
disp(obj(tmp(i)));
end

in Scilab fieldnames yields an array of strings (not a cell array) and struct 
indexing by a string is simpler (the dot is not needed).

S.

On 4/8/24 13:55, Collewet Guylaine wrote:
Hello,

Is it possible to do the same as this matlab code in scilab ?
thank you in advance

obj=struct();
obj.a=1;
obj.b=2;
obj.c=3;

tmp=fieldnames(obj);

for i=1:3
disp(obj.(tmp{i}));
end



Guylaine Collewet
[cid:part1.MthaV5ht.Rk5YK5cq@utc.fr]
ingénieur de recherche équipe 
IRMFOOD<https://antiphishing.vadesecure.com/v4?f=Tjk1V3VNN1ZwOXJ4M1ZtSXYpKhlGklQFIa3ESKachb0fzLLMw7qyodiRY-7VTMyR&i=VUtMcVNzVlVHTVZEbklQWrD9JOSvtlMDgS4ACbqCWAA&k=aZch&r=ckFxODlvdUlOR3V6SFdjZCpcv1LQN58d2fuyHvJXTuFMGwveWarT_FN_zTC2TmlA&s=91f6ba6ea55cb009a3fef6a802f0318b1a2a7f51cb178081fa23889ce5bdcfff&u=https%3A%2F%2Fwww6.rennes.inrae.fr%2Fopaale%2FRECHERCHE%2FEQUIPES-DE-RECHERCHE%2FIRM-Food>
guylaine.colle...@inrae.fr<mailto:guylaine.colle...@inrae.fr>
UR 
OPAALE<https://antiphishing.vadesecure.com/v4?f=Tjk1V3VNN1ZwOXJ4M1ZtSXYpKhlGklQFIa3ESKachb0fzLLMw7qyodiRY-7VTMyR&i=VUtMcVNzVlVHTVZEbklQWrD9JOSvtlMDgS4ACbqCWAA&k=aZch&r=ckFxODlvdUlOR3V6SFdjZCpcv1LQN58d2fuyHvJXTuFMGwveWarT_FN_zTC2TmlA&s=511268892a0a4af586e083fe9238910b9fee19188f134b6bf48c9651741d1a97&u=https%3A%2F%2Fopaale.rennes.hub.inrae.fr%2F>
17 avenue de Cucillé
35 044 Rennes Cedex
02 23 48 21 67 (ligne directe)
02 23 48 21 21 (standard)








This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/<https://antiphishing.vadesecure.com/v4?f=Tjk1V3VNN1ZwOXJ4M1ZtSXYpKhlGklQFIa3ESKachb0fzLLMw7qyodiRY-7VTMyR&i=VUtMcVNzVlVHTVZEbklQWrD9JOSvtlMDgS4ACbqCWAA&k=aZch&r=ckFxODlvdUlOR3V6SFdjZCpcv1LQN58d2fuyHvJXTuFMGwveWarT_FN_zTC2TmlA&s=1f129521d6150c0988c4c9da9117316cf758c3428bd22179f3fef13ed07a634b&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F>




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=Tjk1V3VNN1ZwOXJ4M1ZtSXYpKhlGklQFIa3ESKachb0fzLLMw7qyodiRY-7VTMyR&i=VUtMcVNzVlVHTVZEbklQWrD9JOSvtlMDgS4ACbqCWAA&k=aZch&r=ckFxODlvdUlOR3V6SFdjZCpcv1LQN58d2fuyHvJXTuFMGwveWarT_FN_zTC2TmlA&s=ca66b3a056bf4f65e5ac3f629e6fb7a57ef586399f35764e31826e7004364628&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


--
Stéphane Mottelet
Ingénieur de recherche HDR
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

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Making a polygon fill part-transparent

2024-02-27 Thread Stéphane Mottelet

Hello,

The answer is no: Scilab graphics model does not support transparency. However, 
if you export the figure in svg you will be able to change the transparency for 
a given polygon, e.g. by using Inkscape.

S.

On 2/26/24 16:20, Lester Anderson wrote:
Hello,

Is it possible to make a polygon fill say 50% transparent in a plot? It is easy 
to just leave it as an outline poly.The code plots a stereographic net and  two 
planes with a vector line marking the line of intersection.

Any suggestions would be helpful.

Thanks

Lester



This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/<https://antiphishing.vadesecure.com/v4?f=cEVEckRRVXBqNE85QUxNY_JZg3rCmadAM3QbSsQFmsDR_3gMFn_5Z1n6BxlG3QFI&i=aDkzbzA4cUNkeDdOOUQzWkt7DUxfFDNI279_wQkmu0Y&k=iYVZ&r=dFc5bHZNU3JjRE9pQ1RBNCErFh4IlMxqFrDyz0FoJxix5LZltYchOVsXUkMgM5Jg&s=c7dcf859dad3f3dd6db6413f3f3bbbde3ecb55b3c35a4a3cf32dd17494ff80cb&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F>




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=cEVEckRRVXBqNE85QUxNY_JZg3rCmadAM3QbSsQFmsDR_3gMFn_5Z1n6BxlG3QFI&i=aDkzbzA4cUNkeDdOOUQzWkt7DUxfFDNI279_wQkmu0Y&k=iYVZ&r=dFc5bHZNU3JjRE9pQ1RBNCErFh4IlMxqFrDyz0FoJxix5LZltYchOVsXUkMgM5Jg&s=0a6f7b0c79cd3806b611c1c638c4c6a49e4dab8409671f9ad906ecb0d79829e0&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


--
Stéphane Mottelet
Ingénieur de recherche HDR
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

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab crashes every time

2024-02-04 Thread Stéphane Mottelet
Hello,

Why are you using beta versions of macOS ?

S.

> Le 30 janv. 2024 à 04:55, Heinz Nabielek  a écrit :
>
> Suddenly, Scilab crashes every time I try to start. What happened? Equally 
> so after reinstallation.
> Heinz
>
> Scilab 2024.0.0 - macOS 64 bits (ARM) (dmg)
> Apple M1 macOS Sonoma 14.4 Beta
> ___
> users mailing list - users@lists.scilab.org
> Click here to unsubscribe: 
> https://antiphishing.vadesecure.com/v4?f=RnlZMDJMbzlZZ1hsTmtFVkDccrhAoM7SzRmBq20IJL9IM1Dfz-BjDqrY7ltRDXXI&i=anNVMGFsTWdEV0k3d09ZUybl5aVhDiFd5rBCIEVNi9U&k=AkQR&r=U1U2bFJicVpYWHFiUTEzTbUwYCs7bp9qVR7fTqMpOXVr0W44Q2tUuCYKa-ZRQSGt&s=3777ffbb2d16b9e5b77d440234152d85ea3be33ee6846548c550f3c07fc90edd&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers
> This email and any attachments are intended solely for the use of the 
> individual or entity to whom it is addressed and may be confidential and/or 
> privileged.
>
> If you are not one of the named recipients or have received this email in 
> error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this 
> email and all attachments,
>
> (iii) Dassault Systèmes does not accept or assume any liability or 
> responsibility for any use of or reliance on this email.
>
>
> Please be informed that your personal data are processed according to our 
> data privacy policy as described on our website. Should you have any 
> questions related to personal data protection, please contact 3DS Data 
> Protection Officer 
> https://antiphishing.vadesecure.com/v4?f=RnlZMDJMbzlZZ1hsTmtFVkDccrhAoM7SzRmBq20IJL9IM1Dfz-BjDqrY7ltRDXXI&i=anNVMGFsTWdEV0k3d09ZUybl5aVhDiFd5rBCIEVNi9U&k=AkQR&r=U1U2bFJicVpYWHFiUTEzTbUwYCs7bp9qVR7fTqMpOXVr0W44Q2tUuCYKa-ZRQSGt&s=88aa59a4ef9dc5e12ffc7e7833ddead939352f23c13d533ebab1478db8fc9eed&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F
>
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Scilab crashes every time

2024-01-29 Thread Stéphane Mottelet
Hello,

What did you change ? OS version, startup files, toolboxes installed ? First 
step as usual, launch Scilab from a terminal to see something more.

S.

> Le 30 janv. 2024 à 04:55, Heinz Nabielek  a écrit :
>
> Suddenly, Scilab crashes every time I try to start. What happened? Equally 
> so after reinstallation.
> Heinz
>
> Scilab 2024.0.0 - macOS 64 bits (ARM) (dmg)
> Apple M1 macOS Sonoma 14.4 Beta
> ___
> users mailing list - users@lists.scilab.org
> Click here to unsubscribe: 
> https://antiphishing.vadesecure.com/v4?f=RnlZMDJMbzlZZ1hsTmtFVkDccrhAoM7SzRmBq20IJL9IM1Dfz-BjDqrY7ltRDXXI&i=anNVMGFsTWdEV0k3d09ZUybl5aVhDiFd5rBCIEVNi9U&k=AkQR&r=U1U2bFJicVpYWHFiUTEzTbUwYCs7bp9qVR7fTqMpOXVr0W44Q2tUuCYKa-ZRQSGt&s=3777ffbb2d16b9e5b77d440234152d85ea3be33ee6846548c550f3c07fc90edd&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers
> This email and any attachments are intended solely for the use of the 
> individual or entity to whom it is addressed and may be confidential and/or 
> privileged.
>
> If you are not one of the named recipients or have received this email in 
> error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this 
> email and all attachments,
>
> (iii) Dassault Systèmes does not accept or assume any liability or 
> responsibility for any use of or reliance on this email.
>
>
> Please be informed that your personal data are processed according to our 
> data privacy policy as described on our website. Should you have any 
> questions related to personal data protection, please contact 3DS Data 
> Protection Officer 
> https://antiphishing.vadesecure.com/v4?f=RnlZMDJMbzlZZ1hsTmtFVkDccrhAoM7SzRmBq20IJL9IM1Dfz-BjDqrY7ltRDXXI&i=anNVMGFsTWdEV0k3d09ZUybl5aVhDiFd5rBCIEVNi9U&k=AkQR&r=U1U2bFJicVpYWHFiUTEzTbUwYCs7bp9qVR7fTqMpOXVr0W44Q2tUuCYKa-ZRQSGt&s=88aa59a4ef9dc5e12ffc7e7833ddead939352f23c13d533ebab1478db8fc9eed&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F
>
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Get filename by script command

2024-01-22 Thread Stéphane Mottelet

Hello,

Yes this call form (available since Scilab 6.1.1) is the most portable as it 
does not need to specify a script filename.

S.

On 22/01/2024 09:42, Stefan Du Rietz wrote:

Hello Jens, this line in your function or script returns its file name as you 
requested:

[filepath,filename]=get_absolute_file_path();

Best regards
Stefan

On 2024-01-18 11:42, Jens Simon Strom wrote:

Hi,
I look for a command which -- as part of a script -- returns  a string 
containing the file name or full path name of the current script.

uigetfile() seemed to be close but does something else.

Regards
Jens


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/<https://antiphishing.vadesecure.com/v4?f=dVpnOERZb0JKOFlaRnBNeQqfJFrOJ4Kc8dbn7tq5pEokAUCReNoz6rOuIg3xsXNZ&i=TG56OW16ck5wUlFINGEzQ79EVPKAJyWeDWfAUbTQrkI&k=1ZtS&r=enJEWGxReW5qbm5MS3pxTX0aub0KFoBVaTQE70WGQu3x45WWpYHk8jN23uw0gj-l&s=a9b075455d739309b51b0437661488b8969297ff91987092dbcf4ff08c373f78&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F>




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users<https://antiphishing.vadesecure.com/v4?f=dVpnOERZb0JKOFlaRnBNeQqfJFrOJ4Kc8dbn7tq5pEokAUCReNoz6rOuIg3xsXNZ&i=TG56OW16ck5wUlFINGEzQ79EVPKAJyWeDWfAUbTQrkI&k=1ZtS&r=enJEWGxReW5qbm5MS3pxTX0aub0KFoBVaTQE70WGQu3x45WWpYHk8jN23uw0gj-l&s=8a5edeb8333db7fe857ee3f371baa7dda20d6d5401ed0d5c4d516127e5059735&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers>


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/<https://antiphishing.vadesecure.com/v4?f=dVpnOERZb0JKOFlaRnBNeQqfJFrOJ4Kc8dbn7tq5pEokAUCReNoz6rOuIg3xsXNZ&i=TG56OW16ck5wUlFINGEzQ79EVPKAJyWeDWfAUbTQrkI&k=1ZtS&r=enJEWGxReW5qbm5MS3pxTX0aub0KFoBVaTQE70WGQu3x45WWpYHk8jN23uw0gj-l&s=a9b075455d739309b51b0437661488b8969297ff91987092dbcf4ff08c373f78&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F>




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=dVpnOERZb0JKOFlaRnBNeQqfJFrOJ4Kc8dbn7tq5pEokAUCReNoz6rOuIg3xsXNZ&i=TG56OW16ck5wUlFINGEzQ79EVPKAJyWeDWfAUbTQrkI&k=1ZtS&r=enJEWGxReW5qbm5MS3pxTX0aub0KFoBVaTQE70WGQu3x45WWpYHk8jN23uw0gj-l&s=8a5edeb8333db7fe857ee3f371baa7dda20d6d5401ed0d5c4d516127e5059735&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


--
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

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèm

Re: [Scilab-users] Scilab keeps freezing when trying to save diagram as *.pdf

2023-12-19 Thread Stéphane Mottelet

OK. You should give more context and steps, because I am not able to
reproduce the freeze with default choices, i.e. export with default file
name and default path. What did you change in your computer yesterday ?

S.

On 18/12/2023 16:36, Heinz Nabielek wrote:

On 18.12.2023, at 08:41, Stéphane Mottelet  wrote:

Hello,

Do you have a simple example, with a precise description of the
different steps to reproduce the problem ?

histplot
Export to pdf. —> FREEZE Scilab (not responding)

Now, I have used this export to pdf command successfully for years on a variety 
of Macs and PCS. The FREEZE is new since yesterday.
With save as - same problem.
Heinz




sw_vers
ProductName: macOS
ProductVersion: 14.3
BuildVersion: 23D5033f

uname -a
Darwin AppleSilicon.local 23.3.0 Darwin Kernel Version 23.3.0: Fri Dec  1 
03:16:57 PST 2023; root:xnu-10002.80.11~58/RELEASE_ARM64_T8103 arm64

--> ver
   "Scilab Version: ""2024.0.0.1698152278"
   "Operating System: "  "Mac OS X 14.3"
   "Java version: "  "17.0.8.1"
   "Java runtime information: "  "OpenJDK Runtime Environment (build 
17.0.8.1+1)"
   "Java Virtual Machine information: "  "OpenJDK 64-Bit Server VM (build 
17.0.8.1+1, mixed mode)"
   "Vendor specification: "  "Oracle Corporation"

MESSAGE AFTER FORCED QUIT
Date/Time:2023-12-18 16:23:29.418 +0100
End time: 2023-12-18 16:24:55.663 +0100
OS Version:   macOS 14.3 (Build 23D5033f)
Architecture: arm64e
Report Version:   44
Incident Identifier: 31710C48-FF69-4BBB-9559-1BADEE0DB9AE

Data Source:  Stackshots
Shared Cache: 01283273-9123-3D4C-8494-E5FA1711DEC5 slid base address 
0x182bcc000, slide 0x2bcc000 (System Primary)
Shared Cache: 2612A53C-5071-3956-BFD7-6B75EF2C2607 slid base address 
0x1a4abc000, slide 0x24abc000 (DriverKit)
Shared Cache: F228BFFA-E0C6-3B72-B877-1994D9CBA12F slid base address 
0x7ff817774000, slide 0x17774000 (Rosetta)

Command:  scilab-bin
Path: /Applications/scilab-2024.0.0.app/Contents/bin/scilab-bin
Codesigning ID:   scilab-bin
Team ID:  A2A9VZ4WJT
Architecture: arm64
Parent:   bash [29588] [unique pid 128961]
Responsible:  bash [29588] [unique pid 128961]
PID:  29643
Time Since Fork:  117s

Event:hang
Duration: 86.24s
Duration Sampled: 1.10s (process was unresponsive for 85 seconds before 
sampling)
Steps:11 (100ms sampling interval)

Hardware model:   iMac21,1
Active cpus:  8
HW page size: 16384
VM page size: 16384
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=R2FSUkFhSmYyWGhKMFJNeq81z5mhGnA03XPFV2IFGeqc6jAUzq-IrE7Bsz6unusc&i=cmlEaWhsa2MwZ3E0TndiQ3g0-RN00yh0RuJepjFkBrI&k=e9A7&r=RW5WUFJXY0U1ZUVMeFBwYeCUojCHHsbWKzXKQTgsewt8fMmzBSuR4F-qpaoZCnYD&s=0ad2372775d5803ce0dc36baf46f23a9c4b36c4ae17cd550dbb585d6aa7a7112&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://antiphishing.vadesecure.com/v4?f=R2FSUkFhSmYyWGhKMFJNeq81z5mhGnA03XPFV2IFGeqc6jAUzq-IrE7Bsz6unusc&i=cmlEaWhsa2MwZ3E0TndiQ3g0-RN00yh0RuJepjFkBrI&k=e9A7&r=RW5WUFJXY0U1ZUVMeFBwYeCUojCHHsbWKzXKQTgsewt8fMmzBSuR4F-qpaoZCnYD&s=af6fe72f3b550e34b9ebe093f5180fadc4849b19a58044c2ae0c8a010728c2b3&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to who

Re: [Scilab-users] Scilab keeps freezing when trying to save diagram as *.pdf

2023-12-17 Thread Stéphane Mottelet

Hello,

Do you have a simple example, with a precise description of the
different steps to reproduce the problem ?

S.

On 18/12/2023 02:48, Heinz Nabielek wrote:



__
Dr Heinz Nabielek
Schüttelstrasse 77A/11
A-1020 Wien, Österreich
Tel +43 1 276 56 13
cell +43 677 616 349 22
heinznabie...@me.com
ORCID: -0001-6730-8331
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://antiphishing.vadesecure.com/v4?f=UU1XcHkxazJBTmIySlBBMWF6zOg4rbk1acCTc2DmJG6HQ-GYPCQIQTows_Jj_PyZ&i=RTNLd2NGeE1RTDFrR25iaOm2xB6s18lcAE1xq9J3vLE&k=ywmE&r=ZnVkMm1UMHFmWHNzejI1TkXPqToMjY7gDlf3WBx0USDq_g2UWuNMuQ5CGHTYHcpg&s=09de108fcc20d03ba4adbe5c709ee5770685f45022cfee6eef45fda056a7889d&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=UU1XcHkxazJBTmIySlBBMWF6zOg4rbk1acCTc2DmJG6HQ-GYPCQIQTows_Jj_PyZ&i=RTNLd2NGeE1RTDFrR25iaOm2xB6s18lcAE1xq9J3vLE&k=ywmE&r=ZnVkMm1UMHFmWHNzejI1TkXPqToMjY7gDlf3WBx0USDq_g2UWuNMuQ5CGHTYHcpg&s=d7e30df0e756b4ab5a8e62c22ba99ee7d92845f56ed53c579ef10762f884d4df&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] 2024 Scilab versions do not allow copy and paste into filenames

2023-11-08 Thread Stéphane Mottelet

Hello Heinz,

You may have noticed that save/load dialogs are now native macOS
dialogs, this was a long awaited feature. There may be some features
that have not been tested and it seems that the classical copy/paste
shortcuts do not work between strings in these dialogs, but you should
be able to copy/paste by using right-click on the string to display a
popup menu. I will try to fix this for the next release

S.

Le 08/11/2023 à 23:50, Heinz Nabielek a écrit :

The 2024 Scilab versions do not allow copy and paste into filenames when 
storing a diagram. Both Intel Macs and Apple silicon Macs.

This was no problem in the last 10 years: I always store a graphic file with 
the name from the title of the diagram and this does not work any more.
What happened?
Heinz
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=TmtFVlNVNmxSYnFaWFhxYgPMpQpWvY3HzpPfjps4ZLlMm08-rUJIuwN6mwN6YXXG&i=d09ZU0Z5WTAyTG85WWdYbKbcMRy4OoYRhKDwqdlSH4I&k=DWI7&r=UTEzTUpQcktwRVdhdEg1TLKdOzB5_yuNSWAU2VL5TBMDhe0_ry9mmjfJPFyDdTIO&s=bca9dee2423f7a9da22d28f1f71987d5717f2bfa515be9e310a20ed650f2eced&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://antiphishing.vadesecure.com/v4?f=TmtFVlNVNmxSYnFaWFhxYgPMpQpWvY3HzpPfjps4ZLlMm08-rUJIuwN6mwN6YXXG&i=d09ZU0Z5WTAyTG85WWdYbKbcMRy4OoYRhKDwqdlSH4I&k=DWI7&r=UTEzTUpQcktwRVdhdEg1TLKdOzB5_yuNSWAU2VL5TBMDhe0_ry9mmjfJPFyDdTIO&s=74ccfa2bff4d1608364b082dda187b9ab915f5c1e62852d24bdff68cd3ac2681&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Scilab 2024.0.0 refuses to start up on my Intel iMac

2023-10-25 Thread Stéphane Mottelet

Hello,

See my answer on scilab.discourse.group.

S.

Le 25/10/2023 à 19:30, Heinz Nabielek a écrit :

I am not certain I did it right.
Heinz

(base) heinz@Heinzs-iMac ~ % 
/Applications/scilab-2024.0.0.app/Contents/bin/scilab ; exit;
dyld: Library not loaded: @rpath/libklu.1.dylib
   Referenced from: /Applications/scilab-2024.0.0.app/Contents/bin/scilab-bin
   Reason: no suitable image found.  Did find:
  
/Applications/scilab-2024.0.0.app/Contents/bin/../lib/thirdparty/libklu.1.dylib:
 code signing blocked mmap() of 
'/Applications/scilab-2024.0.0.app/Contents/bin/../lib/thirdparty/libklu.1.dylib'
  /Applications/scilab-2024.0.0.app/Contents/lib/thirdparty/libklu.1.dylib: 
code signing blocked mmap() of 
'/Applications/scilab-2024.0.0.app/Contents/lib/thirdparty/libklu.1.dylib'
/Applications/scilab-2024.0.0.app/Contents/bin/scilab: line 928:  2287 Abort trap: 6   
"$SCILABBIN" "$@"


On 25.10.2023, at 18:53, Stéphane Mottelet  wrote:

Hello Heinz,

Can you start Scilab from the command line and tell me what you see ?

S.

On 25/10/2023 18:47, Heinz Nabielek wrote:

I have downloaded Scilab 2024.0.0 - macOS 64 bits (Intel) (dmg).
But Scilab 2024.0.0 refuses to start up on my Intel iMac macOS 10.15.7 
(19H2026) Darwin 19.6.0

What can I do?
Heinz
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=bHdDQW5tZDVCemI1ZVczSVYUQ55Sw8XPuQVe9hm6kqysUQCM2UGjdKIXACCktR0y&i=UERGdHg5cm1GRGl1YjhpePkNkpYwiHjXsr1SPKiLzhc&k=19x6&r=ZEtPTklHeGR1a0VPT25scWufIKyLsieczpW0GQvrmzYhJoXZ-Jppo4DD58kxr3mQ&s=90d0593ce5c0ca95e0f26ec20c4d05a234e96994f7fdcc71b8ac1bdbb000f9b3&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://antiphishing.vadesecure.com/v4?f=bHdDQW5tZDVCemI1ZVczSVYUQ55Sw8XPuQVe9hm6kqysUQCM2UGjdKIXACCktR0y&i=UERGdHg5cm1GRGl1YjhpePkNkpYwiHjXsr1SPKiLzhc&k=19x6&r=ZEtPTklHeGR1a0VPT25scWufIKyLsieczpW0GQvrmzYhJoXZ-Jppo4DD58kxr3mQ&s=ea4e5e0d14dbdc22b8975351f3b2de774acd096f08f838269726d8d7b511bbba&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F


--
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
https://antiphishing.vadesecure.com/v4?f=VkdiUm9HbkRucnpUNzVMYZQwv0iGstmTP64a0JrIUpCCZNDb_du5cG2L7mPa6jdR&i=OVlEa2psbUR2bkhxRG9xaKk_vLI2kBTH8fknlU3vMx0&k=m0t4&r=WUpXRDdPNDkydWZYcHNsV5dRe06ZXEsTQrvXM8rXJbjkct7ZrxpOgVD-e8V3gSP0&s=242e96d41311678839798aa68eae8dbf94c7940c215d15f742602b806a7b57f7&u=http%3A%2F%2Fwww.utc.fr%2F~mottelet

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=VkdiUm9HbkRucnpUNzVMYZQwv0iGstmTP64a0JrIUpCCZNDb_du5cG2L7mPa6jdR&i=OVlEa2psbUR2bkhxRG9xaKk_vLI2kBTH8fknlU3vMx0&k=m0t4&r=WUpXRDdPNDkydWZYcHNsV5dRe06ZXEsTQrvXM8rXJbjkct7ZrxpOgVD-e8V3gSP0&s=85743f28408b515338b6856082af439b9753dbc5c1246fde90cb79940e7afa3a&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://antiphishing.vadesec

Re: [Scilab-users] Scilab 2024.0.0 refuses to start up on my Intel iMac

2023-10-25 Thread Stéphane Mottelet

Hello Heinz,

Can you start Scilab from the command line and tell me what you see ?

S.

On 25/10/2023 18:47, Heinz Nabielek wrote:

I have downloaded Scilab 2024.0.0 - macOS 64 bits (Intel) (dmg).
But Scilab 2024.0.0 refuses to start up on my Intel iMac macOS 10.15.7 
(19H2026) Darwin 19.6.0

What can I do?
Heinz
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antiphishing.vadesecure.com/v4?f=bHdDQW5tZDVCemI1ZVczSVYUQ55Sw8XPuQVe9hm6kqysUQCM2UGjdKIXACCktR0y&i=UERGdHg5cm1GRGl1YjhpePkNkpYwiHjXsr1SPKiLzhc&k=19x6&r=ZEtPTklHeGR1a0VPT25scWufIKyLsieczpW0GQvrmzYhJoXZ-Jppo4DD58kxr3mQ&s=90d0593ce5c0ca95e0f26ec20c4d05a234e96994f7fdcc71b8ac1bdbb000f9b3&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://antiphishing.vadesecure.com/v4?f=bHdDQW5tZDVCemI1ZVczSVYUQ55Sw8XPuQVe9hm6kqysUQCM2UGjdKIXACCktR0y&i=UERGdHg5cm1GRGl1YjhpePkNkpYwiHjXsr1SPKiLzhc&k=19x6&r=ZEtPTklHeGR1a0VPT25scWufIKyLsieczpW0GQvrmzYhJoXZ-Jppo4DD58kxr3mQ&s=ea4e5e0d14dbdc22b8975351f3b2de774acd096f08f838269726d8d7b511bbba&u=https%3A%2F%2Fwww.3ds.com%2Fprivacy-policy%2Fcontact%2F


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Height of x_choices list box

2023-10-20 Thread Stéphane Mottelet

Hello,

On 19/10/2023 09:13, Lester Anderson wrote:
Hello,

I have code for the periodic table of elements (all 118) and selection is via 
x_choices and a list. Is there any way to control the strat-up height of the 
selection box as at the moment, it stretches top to bottom of the screen and 
you have to manually shrink it to get to the ok/cancel bit at the bottom?

No.

It's not a big problem, but it would be useful to know how to make it start as 
a smaller box..

This is clearly a platform specific problem (under macOS the ok/cancel buttons 
are always visible, I tested i with 118 items). But it should not allowed to 
expand that much. Can you create an issue at 
https://gitlab.com/scilab/scilab/-/issues ?

S.

Thanks

Lester

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 

https://antiphishing.vadesecure.com/v4?f=N2hqZVJralNvRk9nVDdNQxl5DUVTythl-d3sFzMAcM_ers0M_4hSGqUQWwrl01Pf&i=VzVXMGlkODFOOFRBZzI1Yk8axxd0tO7r0S_tom7tO3Q&k=JAuE&r=WVNVMm10RFJQVzZxV2VFZE8E-mgPCDWkt_5eYwr16z1ydtN5wdylOIWLxmJfmq_C&s=7b731ad3f0e194c3509690078390366ab75b6c65fcab601f40a60307642ab02f&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Two problems when using Scilab 2023.1.0 and Xcos

2023-10-20 Thread Stéphane Mottelet

Hello,

On 19/10/2023 09:02, honeysucle...@sina.com 
wrote:


Dear Ms./Mr.

I’ve just installed Scilab 2023.1.0 on my PC.

I met the following two problems:

1)  When running some demos of Xcos, Eg. RLC Circuits, it failed and was with 
the following error notice:

Main Modelica : 
C:\Users\honey\AppData\Local\Temp\SCI_TMP_10848_5881\RLC_Modelica_im.mo





 "c_pass1: build the modelica meta-block failed"

Do you have a compiler on you system (e.g. Microsoft Visual Studio Community) ? 
Modelica blocks need such a compiler.

S.



 "xcos_simulate: Error during block parameters update."

2)  When installing xcos_toolbox_skeleton, it failed and showed following 
errors:

>atomsInstall("xcos_toolbox_skeleton")

atomsInstall: Error while building the toolbox 
'C:\Users\honey\AppData\Roaming\Scilab\scilab-2023.1.0\atoms\x64\xcos_toolbox_skeleton\5.4.0'.

at line28 of executed file 
C:\Users\honey\AppData\Roaming\Scilab\scilab-2023.1.0\atoms\x64\xcos_toolbox_skeleton\5.4.0\builder.sce

at line 4 of function atomsBuild   ( C:\Program 
Files\scilab-2023.1.0\modules\atoms\macros\atoms_internals\atomsBuild.sci line 
4 )

at line   400 of function atomsInstall ( C:\Program 
Files\scilab-2023.1.0\modules\atoms\macros\atomsInstall.sci line 416 )



Would you advice how I figure them out?



Thank you.



Best regards,

Wang RD

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data privacy policy as 
described on our website. Should you have any questions related to personal data protection, please 
contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 

https://antiphishing.vadesecure.com/v4?f=MUo0RzFIRTVvbFhYVGloQqTxxRZTbao0FfwSIiveoLQuUqDwLq-t4ZqMAhaaK-dl&i=RjlVdFI1SVN2VVNOYjFwNQPSJ_s1SRtyxBKaym4HjyY&k=YsP9&r=ODlJNFRJTjZBcWFlaWxQaEb2f_vOKKBieAuaLSuK5jep2JBQY0dXKJ1_iJqX5ty4&s=40b9da42a9c8c5d7d2becc7ffd1ad8fbbd439702547ff11525386c05b4628c4b&u=https%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Periodic Timer

2023-10-10 Thread Stéphane Mottelet

Hello,

You have  the progession bar, i.e.

   progressionbar('Please wait while loading data');

which is incorrectly  named as it cannot show any progression (unlike 
waitbar()) but only a kind of bar which oscillates, showing that something is 
happening. This one will keep oscillating in an asynchronous way (in the 
background) until you delete it.

However, even if Scilab would be able to launch threads at the user level, 
updating a bar showing progression would need to be hardcoded in xls_read, 
because you have to know the current position you are reading w.r.t. the 
overall size ot the data stream.

The only case where something could be done is if your data is organized in 
many sheets within the xls file. In that case you could iterate on sheets and 
update a waitbar().

S,

On 10/10/2023 01:31, Greg James wrote:
Hi
Is there a periodic timer like the Matlab timer function ?  The parallel run 
function does not seem to exist in the 2023.1.0 release , as I thought I may be 
able to use that instead.

I am reading a large excel spreadsheet and it would be good to implement a 
progress bar .  So, a periodic timer that runs in the background could be used 
to check a flag finish flag . If the finish flag is false increment the 
progress and fire the timer off again.

Kind Regards

Greg





This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 

https://lists.scilab.org/mailman/listinfo/users


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Trying to download scilab 5.5.2 for mac - not working

2023-10-09 Thread Stéphane Mottelet

Hello,

Besides the broken link (which should be repaired quickly) may I ask you why do 
you need to use this old version ? It won't work on recent versions of macOS 
(the 5.5.2 binary was compiled for macOS Yosemite (2014)).

S.

On 08/10/2023 14:14, Z. wrote:

Dear Support,

I would like to inform you, that your both links about download Scilab version 
5.5.2 for mac os (.dmg file) not working.

I need this version - so I would be very grateful when you will repair this 
links.

best regards,

Zbigniew T

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 

https://lists.scilab.org/mailman/listinfo/users


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Loop over string vector

2023-10-04 Thread Stéphane Mottelet

Hello,

Here is a one liner solution:

HEX=[
"FF"
"D9"
"CC80FF"
"C2FF00"
"FFB5B5"
"909090"
"3050F8"
"FF0D0D"
"90E050"
"B3E3F5"
]

--> matrix(hex2dec(strsplit(strcat(HEX),2:2:length(strcat(HEX))-1)),3,-1)'
ans  =

  255.   255.   255.
  217.   255.   255.
  204.   128.   255.
  194.   255.   0.
  255.   181.   181.
  144.   144.   144.
  48.80.248.
  255.   13.13.
  144.   224.   80.
  179.   227.   245.


S.

On 02/10/2023 09:52, Lester Anderson wrote:
Hello,

I am trying to loop through a vector of strings but having issues with the 
strsplit function.

The vector consists of HEX values for colours. I created a simple function to 
get RGB values.

function rgb=hex2rgb(x)
   // x=string input
   hexrgb=strsplit(x,[2 4])';
   rgb=hex2dec(hexrgb);
endfunction

--> HEX
HEX  =

 "FF"
 "D9"
 "CC80FF"
 "C2FF00"
 "FFB5B5"
 "909090"
 "3050F8"
 "FF0D0D"
 "90E050"
 "B3E3F5"
etc

The function works fine with single values as that is what strsplit expects, 
but not sure how to make it run through the string vector; indexing causes 
issues. Any pointers would be helpful.

Thanks
Lester

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 

https://lists.scilab.org/mailman/listinfo/users


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] FITS data load and export

2023-06-14 Thread Stéphane Mottelet
hments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://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


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab on the M1/M2 Mac

2023-05-11 Thread Stéphane Mottelet
Ok…. Let us wait for a brand new build (maybe for the next release but will be 
incompatible with some atoms packages).

S.

> Le 11 mai 2023 à 23:14, Heinz Nabielek  a écrit :
>
> I had tested both native builds and I had reported that both crash 
> immediately with a call to cdfnor
> Heinz
>
>
>
>>> scilab-6.1.1-accelerate-arm64.dmg installed and started well
>>> "6.1.1.988271013"
>>> "Mac OS X 13.3.1"
>>> "1.8.0_292"
>>> "OpenJDK Runtime Environment (build 1.8.0_292-b10)"
>>> "OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)"
>>> "Oracle Corporation“
>>>
>>> When I attempted execution speed comparisons, it failed quickly…
>>> NNN=300;
>>> WT=12; hub=150; radius=110; r2=radius^2;
>>> n=60;r=0.9868;a=ones(1:n);m=2;vm=7; vc=vm/(sqrt(%pi)/2);
>>> Z=grand(1,n,'nor',0,1);V=Z;for i=2:n;V(i)=r*V(i-1)+sqrt(1-r^2)*Z(i);end;
>>> [VZ VZ2]=cdfnor("PQ",V,0*a,1*a);v=vc*((-log(VZ))^(1/m))’;
>>>
>>> UNEXPECTED TERMINATION….
>>> Process:   scilab-bin [715]
>>> Path:  
>>> /Applications/scilab-6.1.1.app/Contents/MacOS/scilab-bin
>>> Identifier:scilab-bin
>>> Version:   ???
>>> Code Type: ARM-64 (Native)
>>> Parent Process:Exited process [655]
>>> User ID:   501
>>>
>>> Date/Time: 2023-05-10 01:36:45.6480 +0200
>>> OS Version:macOS 13.3.1 (22E772610a)
>>> Report Version:12
>>> Anonymous UUID:38D39807-3D05-7015-C951-3FAC62AAEA16
>>>
>>> What happened?
>>> Heinz
>>>
>>> heinznabielek@iMac-von-Heinz ~ % sw_vers
>>> ProductName: macOS
>>> ProductVersion: 13.3.1
>>> ProductVersionExtra: (a)
>>> BuildVersion: 22E772610a
>>> heinznabielek@iMac-von-Heinz ~ % uname -a
>>> Darwin iMac-von-Heinz.local 22.4.0 Darwin Kernel Version 22.4.0:
>>> Mon Mar  6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103 
>>> arm64
>
>> On 11.05.2023, at 18:15, Stéphane Mottelet  wrote:
>>
>> Can you also test the two native builds ?
>>
>> S.
>>
>>> Le 11/05/2023 à 05:27, Heinz Nabielek a écrit :
>>> scilab-2023.0.0-x86_64.dmg is running perfectly well on my new M1 iMac, but 
>>> my complex wind-bird swarm-avian mortality simulation code is 30% slower 
>>> than on the old i7 iMac!
>>> Heinz
>>>
>>>
>>>
>>>
>>>
>>>> Am 10/05/2023 um 02:56 schrieb Heinz Nabielek :
>>>>
>>>> [VZ VZ2]=cdfnor("PQ",V,0*a,1*a);
>>>> is the command that kills scilab-6.1.1-accelerate-arm64
>>>> Heinz
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> NNN=300;
>>>> WT=12;
>>>> hub=150;
>>>> radius=110;
>>>> r2=radius^2;
>>>> n=60;
>>>> r=0.9868;
>>>> a=ones(1:n);
>>>> m=2;
>>>> vm=7;
>>>> vc=vm/(sqrt(%pi)/2);
>>>> Z=grand(1,n,'nor',0,1);
>>>> V=Z;
>>>> for i=2:n;
>>>> V(i)=r*V(i-1)+sqrt(1-r^2)*Z(i);
>>>> end;
>>>> [VZ VZ2]=cdfnor("PQ",V,0*a,1*a);
>>>>
>>>>> Am 10/05/2023 um 01:50 schrieb Heinz Nabielek :
>>>>>
>>>>> scilab-6.1.1-accelerate-arm64.dmg installed and started well
>>>>> "6.1.1.988271013"
>>>>> "Mac OS X 13.3.1"
>>>>> "1.8.0_292"
>>>>> "OpenJDK Runtime Environment (build 1.8.0_292-b10)"
>>>>> "OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)"
>>>>> "Oracle Corporation“
>>>>>
>>>>> When I attempted execution speed comparisons, it failed quickly…
>>>>> NNN=300;
>>>>> WT=12; hub=150; radius=110; r2=radius^2;
>>>>> n=60;r=0.9868;a=ones(1:n);m=2;vm=7; vc=vm/(sqrt(%pi)/2);
>>>>> Z=grand(1,n,'nor',0,1);V=Z;for i=2:n;V(i)=r*V(i-1)+sqrt(1-r^2)*Z(i);end;
>>>>> [VZ VZ2]=cdfnor("PQ",V,0*a,1*a);v=vc*((-log(VZ))^(1/m))’;
>>>>>
>>>>> UNEXPECTED TERMINATION….
>>>>> Process:   scilab-bin [715]
>>>>> Path:  
>>>>> /Applications/scilab-6.1.1.app/Contents/M

Re: [Scilab-users] Scilab on the M1/M2 Mac

2023-05-11 Thread Stéphane Mottelet

Can you also test the two native builds ?

S.

Le 11/05/2023 à 05:27, Heinz Nabielek a écrit :

scilab-2023.0.0-x86_64.dmg is running perfectly well on my new M1 iMac, but my 
complex wind-bird swarm-avian mortality simulation code is 30% slower than on 
the old i7 iMac!
Heinz






Am 10/05/2023 um 02:56 schrieb Heinz Nabielek :

[VZ VZ2]=cdfnor("PQ",V,0*a,1*a);
is the command that kills scilab-6.1.1-accelerate-arm64
Heinz






NNN=300;
WT=12;
hub=150;
radius=110;
r2=radius^2;
n=60;
r=0.9868;
a=ones(1:n);
m=2;
vm=7;
vc=vm/(sqrt(%pi)/2);
Z=grand(1,n,'nor',0,1);
V=Z;
for i=2:n;
V(i)=r*V(i-1)+sqrt(1-r^2)*Z(i);
end;
[VZ VZ2]=cdfnor("PQ",V,0*a,1*a);


Am 10/05/2023 um 01:50 schrieb Heinz Nabielek :

scilab-6.1.1-accelerate-arm64.dmg installed and started well
"6.1.1.988271013"
"Mac OS X 13.3.1"
"1.8.0_292"
"OpenJDK Runtime Environment (build 1.8.0_292-b10)"
"OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)"
"Oracle Corporation“

When I attempted execution speed comparisons, it failed quickly…
NNN=300;
WT=12; hub=150; radius=110; r2=radius^2;
n=60;r=0.9868;a=ones(1:n);m=2;vm=7; vc=vm/(sqrt(%pi)/2);
Z=grand(1,n,'nor',0,1);V=Z;for i=2:n;V(i)=r*V(i-1)+sqrt(1-r^2)*Z(i);end;
[VZ VZ2]=cdfnor("PQ",V,0*a,1*a);v=vc*((-log(VZ))^(1/m))’;

UNEXPECTED TERMINATION….
Process:   scilab-bin [715]
Path:  /Applications/scilab-6.1.1.app/Contents/MacOS/scilab-bin
Identifier:scilab-bin
Version:   ???
Code Type: ARM-64 (Native)
Parent Process:Exited process [655]
User ID:   501

Date/Time: 2023-05-10 01:36:45.6480 +0200
OS Version:macOS 13.3.1 (22E772610a)
Report Version:12
Anonymous UUID:38D39807-3D05-7015-C951-3FAC62AAEA16

What happened?
Heinz

heinznabielek@iMac-von-Heinz ~ % sw_vers
ProductName: macOS
ProductVersion: 13.3.1
ProductVersionExtra: (a)
BuildVersion: 22E772610a
heinznabielek@iMac-von-Heinz ~ % uname -a
Darwin iMac-von-Heinz.local 22.4.0 Darwin Kernel Version 22.4.0:
Mon Mar  6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103 arm64




Am 09/05/2023 um 20:59 schrieb Stéphane Mottelet :

Hello,

You can already test the Intel build and the older M1 builds of the 6.1.1 
version, which will already run quite fast (in emulation mode for the Intel 
build). I am not sure we will have an official M1/M2 release before  the 
2024.0.0, but it is likely that we will build it only with refBlas.

S.


Le 8 mai 2023 à 01:15, Heinz Nabielek  a écrit :

Dear Stéphane,

I have ordered a 24" M1 iMac (not yet arrived).

 From the M1 options described in 
<https://www.utc.fr/~mottelet/scilab_for_macOS.html>, which is most 
straightforward for me?
-   I need fast vector operations
-   I do not use atoms
-   I use complex Scilab statistical functions

Heinz


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Scilab on the M1/M2 Mac

2023-05-09 Thread Stéphane Mottelet
Hello,

You can already test the Intel build and the older M1 builds of the 6.1.1 
version, which will already run quite fast (in emulation mode for the Intel 
build). I am not sure we will have an official M1/M2 release before  the 
2024.0.0, but it is likely that we will build it only with refBlas.

S.

> Le 8 mai 2023 à 01:15, Heinz Nabielek  a écrit :
>
> Dear Stéphane,
>
> I have ordered a 24" M1 iMac (not yet arrived).
>
> From the M1 options described in 
> , which is most 
> straightforward for me?
> -   I need fast vector operations
> -   I do not use atoms
> -   I use complex Scilab statistical functions
>
> Heinz
> ___
> users mailing list - users@lists.scilab.org
> Click here to unsubscribe: 
> https://lists.scilab.org/mailman/listinfo/users
> This email and any attachments are intended solely for the use of the 
> individual or entity to whom it is addressed and may be confidential and/or 
> privileged.
>
> If you are not one of the named recipients or have received this email in 
> error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this 
> email and all attachments,
>
> (iii) Dassault Systèmes does not accept or assume any liability or 
> responsibility for any use of or reliance on this email.
>
>
> Please be informed that your personal data are processed according to our 
> data privacy policy as described on our website. Should you have any 
> questions related to personal data protection, please contact 3DS Data 
> Protection Officer https://www.3ds.com/privacy-policy/contact/
>
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] x/y labels formatting

2023-04-11 Thread Stéphane Mottelet

Hello,

You have to use LaTeX markup (and tweak it a little bit for non-math stuff) for 
the whole string:

xlabel('$\mbox{Relative distance in Schwartzschild Radii }(R_s)$')

LaTeX rendering in Scilab is limited to math mode.

S.


Le 08/04/2023 à 16:24, Lester Anderson a écrit :
Hello,

A quick query, how can I make the 's' in (Rs) a subscript?

Thanks

Lester

xlabel 'Relative distance in Schwartzschild Radii (Rs)' fontname 4 fontsize 4




This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://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


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Problems with Scilab routine "conv"

2023-04-04 Thread Stéphane Mottelet

Hello,

I have given a a more detailed answer on scilab discourse, with maths
stuff correctly typeset and plots comparing approximations:

https://scilab.discourse.group/t/approximate-a-convolution-product/

S.

Le 03/02/2023 à 11:52, Heinz Nabielek a écrit :

This is my latest code version: the 'convoluted secondary failure fraction' is 
nicely below primary failure,  but seems too low.
Heinz


m=2; // Weibull modulus in mechanism  #1
k=1E-7;  // corrosion rate(s-1) in mechanism  #1
n=500;   // number of time steps in hourly intervals
t=(1:n)';// timesteps in hours
ts= 3600*t;  // timesteps in seconds
PHI= 1 - exp(-((k*ts)^m)); // failure fraction in mechanism #1
deriv=m*k*((k*ts)^(m-1)) .* exp(-((k*ts)^m)); //derivative of PHI
phi=3600*deriv;  //derivative of PHI integrated over an hour
f= 1 - exp(-ts/3E5); // "pure" failure fraction in mechanism #2
F=(convol(phi,f)/n)(1:n);   //"convoluted" failure fraction mechanism #2
plot("nl",t, [PHI phi f F'],'-');xgrid;
legend('PHI primary failure','phi primary failure rate','pure secondary failure 
fraction','convoluted secondary failure fraction',4);
xlabel('time (hours)');
ylabel('failure fraction/ failure rate');




On 03.02.2023, at 11:24, Heinz Nabielek  wrote:

On 03.02.2023, at 11:13, Stéphane Mottelet  wrote:

Thanks for the code.

Just a remark on the notations, you should write :

F(T)  = Int_{0}^{T}  PHI(t) . f(T-t) . dt

i.e. not F(t) since t is mute.

However, you should pay attention to the delay notion associated with 
convolution and the relationships between discrete convolution and continuous 
convolution. I am not sure that the output of conv matches with a given 
discretization of the integral above. Maybe rectangle method, but I am not sure 
at all. Anyway, you should have F(0)=0 which does not seem to be the case in 
your graph.

F(t), of course.

But the formula is fundamentally wrong and one should have seen it already from 
a dimensional consideration.

Correct should be F(t)  = Int_{0}^{T}  (d PHI(t)/dt) . f(T-t) . dt

Hope you can help between conv and convol and possible something else.
Heinz







Dear SciLab Friends:

I have an object consisting of many (~10,000) small components that can fail in 
a statistical way during long-term operation at extreme conditions.

My primary failure model is described by PHI(t) going monotonically from zero 
to one at times from t=0 to T. In the computer, this is realized in n timesteps.

Mechanism 2: There is a secondary failure mechanism that starts only when a 
component has previously failed by mechanism 1 and occurs after some delay. The 
delay function is f(t) and final expression for the evolution of the mechanism 
2 failure is given by:

F(t)  = Int_{0}^{T}  PHI(t) . f(T-t) . dt

a classical convolution Faltungsintegral.

In Scilab, I write

F= conv(PHI, f, "same")/ n;

and the resulting function F looks reasonable for most of the time. Under some 
conditions, however, I can have

F>PHI

at early stages, but this is physically impossible. Because it comes later, F 
must always be below PHI.
What do I do wrong?
Heinz

_
PS: massively simplified code below..

k=1E-7;  // corrosion rate(s-1) in mechanism #1
n=100;   // number of timesteps
t=(1:n)'; // time in days
ts= 3600*t;  // time in seconds
PHI= 1 - exp(-((k*ts)^2));   // failure fraction in mechanism #1
plot("nl", t, PHI, 'r--');
f= 1 - exp(-ts/3E5); // "pure" failure fraction in mechanism #2
F=conv(PHI,f,"same")/length(t); //"convoluted" failure fraction mechanism #2
plot(t,F,'b--');
legend('failure fraction #1','subsequent failure fraction #2',4);
xlabel('time (hours)');
ylabel('failure fraction');
title('Component failure evolution #1 is followed by #2');


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accep

[Scilab-users] Scilab discourse

2023-03-23 Thread Stéphane Mottelet

Hello Scilab users and developpers,

I would like to inform you that the Scilab project has been found eligible for "Free 
Hosting for Open Source v2" plan 
(https://blog.discourse.org/2018/11/free-hosting-for-open-source-v2/). As a consequence, 
the fully qualified name of the scilab discourse has changed to

https://scilab.discourse.group

and the previous url (https://discourse.scilab.utc.fr, redirected from my 
University DNS) is no longer valid.

I would like to thank the actual users of this forum for having started using 
it, which helped to show that a community still exists and needed a modern 
place to discuss. I hope  that more and more users of the legacy Scilab mailing 
lists will join this place in a near future.

S.

--
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


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Generic plot command draws automatically _which_ coloured curves

2023-03-21 Thread Stéphane Mottelet

The colors and order of color cycling when using multiple pairs (x,y)
(or plotting (x,y) when at least y is a matrix) is arbitrary in Scilab.
Scilab mimics (very approximately) Matlab behavior, but Matlab has a
"ColorOrder" property (even a "LineStyleOrder") which defines the colors
(by r,g,b triplet) and their order. Scilab does not have this property,
that's why I said "approximately"...

S.

Le 21/03/2023 à 17:17, Jean-Yves Baudais a écrit :

Hello,

Le 20/03/2023 à 14:40, Samuel Gougeon a écrit :

getcolor() tells it to you, in the infobar for the selected color:


> plot((1:10)',rand(10,6),"-*");legend("1","2","3","4","5","6")
> gcf().color_map

gvf().color_map gives the same color as getcolor() does, but it is not
the six colors used by the plot (the first color in the plot it's not
the black given by getcolor(), the green in the plot is not the primary
green in getcolor...). Why?

Jean-Yves
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antispam.utc.fr/proxy/v3?i=WjB4M1dJWGJJMnNGTHV5MuAPDwEdQko7KGyaWIIeme0&r=Skk2OVhvdXl2cm1uOWJtRLRPDrgr4YiCABksjbHu_Gv8eNkcUiMzd6MxV8KbAPI5&f=M2FwZHlGNnU1aUlkc09ZNN6FtQAZUfRagBYPQiUfaoT45ZkXHKKVm0cOGvv2yMCS&u=https%3A//lists.scilab.org/mailman/listinfo/users&k=CXOq

This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer
https://antispam.utc.fr/proxy/v3?i=WjB4M1dJWGJJMnNGTHV5MuAPDwEdQko7KGyaWIIeme0&r=Skk2OVhvdXl2cm1uOWJtRLRPDrgr4YiCABksjbHu_Gv8eNkcUiMzd6MxV8KbAPI5&f=M2FwZHlGNnU1aUlkc09ZNN6FtQAZUfRagBYPQiUfaoT45ZkXHKKVm0cOGvv2yMCS&u=https%3A//www.3ds.com/privacy-policy/contact/&k=CXOq


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Scatter plot with fixed marker dimension and overlap analysis

2023-03-20 Thread Stéphane Mottelet
Thanks Charles, but can you be more precise about your sentence

2. is there a way to calculate the overlap on the area through the chart with a 
heat map for example?

because the “heat map” is just a way of representing a scalar field, and what 
is exactly this scalar field you are interested in is not that clear.

My first understanding was that you were interested in the total covered area, 
which is associated to a binary map. If you are interested in a quantified map 
counting for each (x,y) coordinate pair the number of impacts covering it, then 
you can define such a map, but what is the computation to compute “the overlap 
on the area”.

S.

Le 20 mars 2023 à 13:58, charles marcotte  a écrit :


Stephane, Federico,

Thank you very much for answering my questions.
I have seen the first message from Federico and implemented such an idea.
So now I have a working impact visualization.

I had first to translate the curves onto a matrix, then for the adjacent points 
part of the impact area were colored. Using Matplot it was easy to plot the 
matrix but annoyingly it is mixing up x and y but nothing horrible for now.
I have not yet implemented the heat map. I will read through the comments.
Probably not the most efficient code but I started scilab one week ago and last 
time I used Matlab was more than 20 years ago so I am ok with that.


//modeling the impact
mega(x1(1,i),y1(1,i))=8
mega(x2(1,i),y2(1,i))=8
for q=1:1:R
for m=0:0.03:%pi
tempx1=round(x1(1,i)+q*cos(m));
tempy1=round(y1(1,i)+q*sin(m));
tempx2=round(x2(1,i)+q*cos(m));
tempy2=round(y2(1,i)+q*sin(m));
if tempx1<0 | tempy1<0 then
else
mega(tempx1,tempy1)=8
end
 if tempx2<0 | tempy2<0 then
else
mega(tempx2,tempy2)=8
end
end
end
end
Matplot(mega)
end


On Thu, Mar 16, 2023 at 11:45 AM charles marcotte 
mailto:charles.marco...@gmail.com>> wrote:
Hello,

I have 2d scatter plot where each marker represents an impact point. The impact 
point has a defined area.
1.  I am trying to assign each point the impact area to visualize how much of 
the surface is impacted.
Defining the marker size does not work because I change the scale between 
simulations and I can't find a definition of the marker size vs diameter or 
perimeter.

2. is there a way to calculate the overlap on the area through the chart with a 
heat map for example?

Thank you
Charles

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scatter plot with fixed marker dimension and overlap analysis

2023-03-17 Thread Stéphane Mottelet
uld you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://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


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scatter plot with fixed marker dimension and overlap analysis

2023-03-16 Thread Stéphane Mottelet

Hello Charles,

Le 16/03/2023 à 04:45, charles marcotte a écrit :
Hello,

I have 2d scatter plot where each marker represents an impact point. The impact 
point has a defined area.
1.  I am trying to assign each point the impact area to visualize how much of 
the surface is impacted.
Defining the marker size does not work because I change the scale between 
simulations and I can't find a definition of the marker size vs diameter or 
perimeter.

You should rather use xfarc 
(https://help.scilab.org/docs/6.1.1/en_US/xfarc.html) if you want the diameters 
in user units (not pixels). I suppose that you want to plot circular markers, 
is that the case ?

2. is there a way to calculate the overlap on the area through the chart with a 
heat map for example?

What do you mean by heat map as a computation technique (rather than a scalar 
field visualization method) ?

S.

Thank you
Charles

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://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


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab 2023.0.0 release

2023-03-10 Thread Stéphane Mottelet
Hello Heinz,

Yes please use the latest official  release. The version you have was just a 
continuous build artefact which is now outdated !

S.

> Le 10 mars 2023 à 23:25, Heinz Nabielek  a écrit :
>
> Friends,
>
> presently very happy with scilab-mr3-190bf2ee.app on my Mac.
>  "6.1.2.1676533517"
>  "Mac OS X 10.15.7"
>
> Should there be a good reason to change to Scilab 2023.0.0 - macOS 64 bits 
> (dmg)?
> Heinz
>
>
>
>> On 10.03.2023, at 18:50, COUVERT Vincent  wrote:
>>
>> Dear Scilab users,
>>
>> We are pleased to announce the release of Scilab 2023.0.0 as a joint effort 
>> between Scilab contributors and the Scilab team at Dassault Systèmes.
>>
>> Scilab 2023.0.0 is the first version released following the new numbering 
>> and schedule.
>> It fixes more than a hundred bugs, improve stability and contains new 
>> features.
>>
>> For the complete list of changes and bugs fixed, please take a look 
>> athttps://help.scilab.org/docs/2023.0.0/en_US/CHANGES.html.
>>
>> Download this brand new version at https://www.scilab.org/download/2023.0.0.
>>
>> Best regards,
>> Vincent
>>
>>
>> This email and any attachments are intended solely for the use of the 
>> individual or entity to whom it is addressed and may be confidential and/or 
>> privileged.
>> If you are not one of the named recipients or have received this email in 
>> error,
>> (i) you should not read, disclose, or copy it,
>> (ii) please notify sender of your receipt by reply email and delete this 
>> email and all attachments,
>> (iii) Dassault Systèmes does not accept or assume any liability or 
>> responsibility for any use of or reliance on this email.
>>
>> Please be informed that your personal data are processed according to our 
>> data privacy policy as described on our website. Should you have any 
>> questions related to personal data protection, please contact 3DS Data 
>> Protection Officer https://www.3ds.com/privacy-policy/contact/
>>
>> ___
>> users mailing list - users@lists.scilab.org
>> Click here to unsubscribe: 
>> https://lists.scilab.org/mailman/listinfo/users
>
> ___
> users mailing list - users@lists.scilab.org
> Click here to unsubscribe: 
> https://lists.scilab.org/mailman/listinfo/users
> This email and any attachments are intended solely for the use of the 
> individual or entity to whom it is addressed and may be confidential and/or 
> privileged.
>
> If you are not one of the named recipients or have received this email in 
> error,
>
> (i) you should not read, disclose, or copy it,
>
> (ii) please notify sender of your receipt by reply email and delete this 
> email and all attachments,
>
> (iii) Dassault Systèmes does not accept or assume any liability or 
> responsibility for any use of or reliance on this email.
>
>
> Please be informed that your personal data are processed according to our 
> data privacy policy as described on our website. Should you have any 
> questions related to personal data protection, please contact 3DS Data 
> Protection Officer https://www.3ds.com/privacy-policy/contact/
>
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



[Scilab-users] About discourse.scilab.utc.fr

2023-03-08 Thread Stéphane Mottelet

Hello,

Some of the members of this mailing list already joined
discourse.scilab.utc.fr, the new discussion place for Scilab users and
contributors. This discourse forum allows the use of rich media, as
shown in the following post (using video):

https://discourse.scilab.utc.fr/t/interactive-graphics-is-easy-in-scilab/52

If you want to just have a look you don't need an account (which is
needed to create new posts).

Best,

--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Arrow on line from (x1, y1) to (x2, y2)

2023-03-06 Thread Stéphane Mottelet

Hello Guys,

If you have time you could have this discussion on
discourse.scilab.utc.fr, which is a *much* better place, where you have
many formatting options, easy graphics inclusion, and so on.

S.

Le 06/03/2023 à 21:57, Heinz Nabielek a écrit :

A simple demo:
yy=0.01;
x1=[580 56]; x2=[yy yy];
xarrows(x1,x2,555,6);
Heinz

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




On 06.03.2023, at 18:53, Samuel Enibe  wrote:

I need to attach an arrow to a line pointing from (x1, y1) to (x2, y2).

How can this be done?

Your assistance will be greatly appreciated.

Samuel Enibe
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.
If you are not one of the named recipients or have received this email in error,
(i) you should not read, disclose, or copy it,
(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,
(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://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

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] error in starting scilab from terminal

2023-03-02 Thread Stéphane Mottelet


Le 02/03/2023 à 18:22, Wolfgang Engelmann a écrit :



Am 02.03.23 um 16:52 schrieb Stéphane Mottelet:

Scilab 6.1.1 (you should upgrade your Debian packages) should start with
Java 11.

S.


Could it be that Scilab 5.5.2 needs java 8?

yes

I need both Scilab 5.5.2
(for older scilab models) and 6.1.1.

Wolfgang



Le 02/03/2023 à 15:32, Wolfgang Engelmann a écrit :



Am 02.03.23 um 15:10 schrieb Stéphane Mottelet:

Hello Wolfgang,

Thank you for using Scilab. Can you precise the exact number of Debian
distribution you have ?


uname -v
#1 SMP Debian 5.10.162-1 (2023-01-21)

and thanks a lot for all your help.

Wolfgang


 From the problems you had I suppose that you installed scilab with

sudo apt-get install scilab

and the java-8 dependency was installed, but not activated by default
(java-11 was active instead) that's it ?

If so, I will create a post in discourse.scilab.utc.fr explaining
this.

S.

Le 02/03/2023 à 14:42, Wolfgang Engelmann a écrit :



Am 02.03.23 um 14:24 schrieb Stéphane Mottelet:

Can you remove the JAVA_HOME definition from your ~/.bash_profile,
open
a new terminal window, then try to launch Scilab and tell me if it
starts ?

S.


yes, it does start

I outcommented the JAVA_HOME definition from your ~/.bash_profile

Wolfgang


Le 02/03/2023 à 13:57, Wolfgang Engelmann a écrit :

Thanks, Masaru,

but got now
 echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64

see below between



Wolfgang

Am 02.03.23 um 11:38 schrieb Masaru Nomiya:

Hello,

In the Message;

   Subject: Re: [Scilab-users] error in starting scilab from
terminal
   Message-ID :
<82590bf9-3e6b-adac-152b-cf39fd9e5...@uni-tuebingen.de>
   Date & Time: Thu, 2 Mar 2023 10:42:22 +0100

[WE] == Wolfgang Engelmann  has
written:

[...]
WE> > $ sudo update-alternatives --config java

WE> sudo update-alternatives --config java
WE> Es gibt 2 Auswahlmöglichkeiten für die Alternative java
(welche
WE> /usr/bin/java bereitstellen).

WE>   Auswahl  Pfad
WE> Priorität Status
WE> 
WE> * 0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
WE>  automatischer Modus
WE>   1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
WE>   manueller Modus
WE>   2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081
WE>   manueller Modus

WE> Drücken Sie die Eingabetaste, um die aktuelle Wahl[*]
beizubehalten,
WE> oder geben Sie die Auswahlnummer ein:

WE> Drücken Sie die Eingabetaste, um die aktuelle Wahl[*]
beizubehalten,
WE> oder geben Sie die Auswahlnummer ein: 1081
WE> Es gibt 2 Auswahlmöglichkeiten für die Alternative java
(welche
WE> /usr/bin/java bereitstellen).

WE>   Auswahl  Pfad
WE> Priorität Status
WE> 
WE> * 0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
WE>  automatischer Modus
WE>   1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
WE>   manueller Modus
WE>   2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081
WE>   manueller Modus

WE> entering 1081 does not help; leads again to the chosing

The installation of java is complete, with configuration issues
remaining.

You must use update-alternatives for java and javac.

  $  sudo update-alternatives --config java
  $  sudo update-alternatives --config javac

What you have to enter is the previous number (2 in the table
above),
not the back number.
Maybe even 2 in javac.

And put the following in your .bash_profile.

JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JAVA_HOME

Then, execute as follows

$ source ~/.bash_profile

After this , by

$ echo $JAVA_HOME



###
wolfgang@Fuji:~$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64

in my .bash_profile is:

JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JAVA_HOME

#


Confirm that it returns following

/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0

This completes the JAVA setup.

Regards.

---
┏━━┓彡 野宮  賢 mail-to: nomiya @
lake.dti.ne.jp
┃\/彡
┗━━┛   "A bachelor’s degree still holds prestige as a
ticket to
the
middle class, but its value has received
increasing
scrutiny.
In the last several years, rising tuition and
student
loan debt
have led more Americans to reconsider an
investment in
postsecondary education."

--
Washington Post --
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe:
<mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of
the
individual or entity to whom it is addressed and may be
confidential
and/or privileged.

If you are not one of the named recipients or have received this
email in e

Re: [Scilab-users] error in starting scilab from terminal

2023-03-02 Thread Stéphane Mottelet

Scilab 6.1.1 (you should upgrade your Debian packages) should start with
Java 11.

S.

Le 02/03/2023 à 15:32, Wolfgang Engelmann a écrit :



Am 02.03.23 um 15:10 schrieb Stéphane Mottelet:

Hello Wolfgang,

Thank you for using Scilab. Can you precise the exact number of Debian
distribution you have ?


uname -v
#1 SMP Debian 5.10.162-1 (2023-01-21)

and thanks a lot for all your help.

Wolfgang


 From the problems you had I suppose that you installed scilab with

sudo apt-get install scilab

and the java-8 dependency was installed, but not activated by default
(java-11 was active instead) that's it ?

If so, I will create a post in discourse.scilab.utc.fr explaining this.

S.

Le 02/03/2023 à 14:42, Wolfgang Engelmann a écrit :



Am 02.03.23 um 14:24 schrieb Stéphane Mottelet:

Can you remove the JAVA_HOME definition from your ~/.bash_profile,
open
a new terminal window, then try to launch Scilab and tell me if it
starts ?

S.


yes, it does start

I outcommented the JAVA_HOME definition from your ~/.bash_profile

Wolfgang


Le 02/03/2023 à 13:57, Wolfgang Engelmann a écrit :

Thanks, Masaru,

but got now
 echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64

see below between



Wolfgang

Am 02.03.23 um 11:38 schrieb Masaru Nomiya:

Hello,

In the Message;

   Subject: Re: [Scilab-users] error in starting scilab from
terminal
   Message-ID :
<82590bf9-3e6b-adac-152b-cf39fd9e5...@uni-tuebingen.de>
   Date & Time: Thu, 2 Mar 2023 10:42:22 +0100

[WE] == Wolfgang Engelmann  has written:

[...]
WE> > $ sudo update-alternatives --config java

WE> sudo update-alternatives --config java
WE> Es gibt 2 Auswahlmöglichkeiten für die Alternative java (welche
WE> /usr/bin/java bereitstellen).

WE>   Auswahl  Pfad
WE> Priorität Status
WE> 
WE> * 0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
WE>  automatischer Modus
WE>   1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
WE>   manueller Modus
WE>   2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081
WE>   manueller Modus

WE> Drücken Sie die Eingabetaste, um die aktuelle Wahl[*]
beizubehalten,
WE> oder geben Sie die Auswahlnummer ein:

WE> Drücken Sie die Eingabetaste, um die aktuelle Wahl[*]
beizubehalten,
WE> oder geben Sie die Auswahlnummer ein: 1081
WE> Es gibt 2 Auswahlmöglichkeiten für die Alternative java (welche
WE> /usr/bin/java bereitstellen).

WE>   Auswahl  Pfad
WE> Priorität Status
WE> 
WE> * 0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
WE>  automatischer Modus
WE>   1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 
WE>   manueller Modus
WE>   2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081
WE>   manueller Modus

WE> entering 1081 does not help; leads again to the chosing

The installation of java is complete, with configuration issues
remaining.

You must use update-alternatives for java and javac.

  $  sudo update-alternatives --config java
  $  sudo update-alternatives --config javac

What you have to enter is the previous number (2 in the table
above),
not the back number.
Maybe even 2 in javac.

And put the following in your .bash_profile.

JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JAVA_HOME

Then, execute as follows

$ source ~/.bash_profile

After this , by

$ echo $JAVA_HOME



###
wolfgang@Fuji:~$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64

in my .bash_profile is:

JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JAVA_HOME

#


Confirm that it returns following

/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0

This completes the JAVA setup.

Regards.

---
┏━━┓彡 野宮  賢 mail-to: nomiya @
lake.dti.ne.jp
┃\/彡
┗━━┛   "A bachelor’s degree still holds prestige as a ticket to
the
middle class, but its value has received increasing
scrutiny.
In the last several years, rising tuition and
student
loan debt
have led more Americans to reconsider an
investment in
postsecondary education."

--
Washington Post --
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe:
<mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of
the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this
email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility

Re: [Scilab-users] error in starting scilab from terminal

2023-03-02 Thread Stéphane Mottelet
or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] error in starting scilab from terminal

2023-03-02 Thread Stéphane Mottelet

One you have chosen the alternative (check that java -version answers
something with 1.8) you don't need to set JAVA_HOME.

Did you try to launch Scilab again ?

S.

Le 02/03/2023 à 12:38, Wolfgang Engelmann a écrit :




What you have to enter is the previous number (2 in the table above),
not the back number.
Maybe even 2 in javac.

And put the following in your .bash_profile.


I have no bash_profile (Debian)

can I create one (via touch?) and where (home? home/wolfgang?)?

Wolfgang


JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JAVA_HOME

Then, execute as follows

$ source ~/.bash_profile

After this , by

$ echo $JAVA_HOME

Confirm that it returns following

/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0

This completes the JAVA setup.

Regards.

---
┏━━┓彡 野宮  賢 mail-to: nomiya @ lake.dti.ne.jp
┃\/彡
┗━━┛   "A bachelor’s degree still holds prestige as a ticket to the
middle class, but its value has received increasing
scrutiny.
In the last several years, rising tuition and student
loan debt
have led more Americans to reconsider an investment in
postsecondary education."

 --
Washington Post --
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this
email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] error in starting scilab from terminal

2023-03-02 Thread Stéphane Mottelet

Choose "2" not "1081" !

Le 02/03/2023 à 10:42, Wolfgang Engelmann a écrit :



Am 02.03.23 um 10:25 schrieb Stéphane Mottelet:

You need a Java 1.8 jdk to run Scilab. Please follow the following
instructions :

$ sudo apt-get install openjdk-8-jdk


sudo apt-get install openjdk-8-jdk
[sudo] Passwort für wolfgang:
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paket openjdk-8-jdk ist nicht verfügbar, wird aber von einem anderen
Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.

E: Für Paket »openjdk-8-jdk« existiert kein Installationskandidat.

Wolfgang


then

$ sudo update-alternatives --config java



sudo update-alternatives --config java
Es gibt 2 Auswahlmöglichkeiten für die Alternative java (welche
/usr/bin/java bereitstellen).

  Auswahl  Pfad
Priorität Status

* 0/usr/lib/jvm/java-11-openjdk-amd64/bin/java 
 automatischer Modus
  1/usr/lib/jvm/java-11-openjdk-amd64/bin/java 
  manueller Modus
  2/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081
  manueller Modus

Drücken Sie die Eingabetaste, um die aktuelle Wahl[*] beizubehalten,
oder geben Sie die Auswahlnummer ein:

Drücken Sie die Eingabetaste, um die aktuelle Wahl[*] beizubehalten,
oder geben Sie die Auswahlnummer ein: 1081
Es gibt 2 Auswahlmöglichkeiten für die Alternative java (welche
/usr/bin/java bereitstellen).

  Auswahl  Pfad
Priorität Status

* 0/usr/lib/jvm/java-11-openjdk-amd64/bin/java 
 automatischer Modus
  1/usr/lib/jvm/java-11-openjdk-amd64/bin/java 
  manueller Modus
  2/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081
  manueller Modus

entering 1081 does not help; leads again to the chosing

I probably need to install the java-8 version manually, but have to find
out how to do that

Thanks for your help, Stéphane

WEolfgang


choose the java 8 line then check that Java 8 is correctly set :

$ java -version

should yield something like:

openjdk version "1.8.0_352"
OpenJDK Runtime Environment (build 1.8.0_352-8u352-ga-1~20.04-b08)
OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)

Then try again to start Scilab.

S.

Le 02/03/2023 à 10:12, Wolfgang Engelmann a écrit :



Am 02.03.23 um 09:57 schrieb Stéphane Mottelet:

What is the output of

java -version

on the command line ?

S.



java -version
openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Debian-1deb11u1, mixed
mode, sharing)

Wolfgang

>


Le 02/03/2023 à 09:45, Wolfgang Engelmann a écrit :



Am 02.03.23 um 08:36 schrieb Stéphane Mottelet:

Hello,

What is your Linux distribution (I guess Ubuntu or Debian ?) and
which
Scilab version did you install ?


Debian and Scilab 6.1.0, sorry, forgot to mention it

Wolfgang



S.

Le 02/03/2023 à 07:27, Wolfgang Engelmann a écrit :

If I try to start scilab from a terminal, it won't start and I get
this
error

.
g.scilab.modules.types.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:




WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.scilab.modules.jvm.LibraryPath
(file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar)
to
method java.lang.ClassLoader.initLibraryPaths()
WARNING: Please consider reporting this to the maintainers of
org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further
illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future
release

What is wrong?

Wolfgang
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe:
<mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use
of the
individual or entity to whom it is addressed and may be
confidential
and/or privileged.

If you are not one of the named recipients or have received this
email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed
ac

Re: [Scilab-users] error in starting scilab from terminal

2023-03-02 Thread Stéphane Mottelet

You need a Java 1.8 jdk to run Scilab. Please follow the following
instructions :

$ sudo apt-get install openjdk-8-jdk

then

$ sudo update-alternatives --config java

choose the java 8 line then check that Java 8 is correctly set :

$ java -version

should yield something like:

openjdk version "1.8.0_352"
OpenJDK Runtime Environment (build 1.8.0_352-8u352-ga-1~20.04-b08)
OpenJDK 64-Bit Server VM (build 25.352-b08, mixed mode)

Then try again to start Scilab.

S.

Le 02/03/2023 à 10:12, Wolfgang Engelmann a écrit :



Am 02.03.23 um 09:57 schrieb Stéphane Mottelet:

What is the output of

java -version

on the command line ?

S.



java -version
openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment (build 11.0.18+10-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.18+10-post-Debian-1deb11u1, mixed
mode, sharing)

Wolfgang

>


Le 02/03/2023 à 09:45, Wolfgang Engelmann a écrit :



Am 02.03.23 um 08:36 schrieb Stéphane Mottelet:

Hello,

What is your Linux distribution (I guess Ubuntu or Debian ?) and which
Scilab version did you install ?


Debian and Scilab 6.1.0, sorry, forgot to mention it

Wolfgang



S.

Le 02/03/2023 à 07:27, Wolfgang Engelmann a écrit :

If I try to start scilab from a terminal, it won't start and I get
this
error

.
g.scilab.modules.types.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:



WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.scilab.modules.jvm.LibraryPath
(file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar)
to
method java.lang.ClassLoader.initLibraryPaths()
WARNING: Please consider reporting this to the maintainers of
org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further
illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future
release

What is wrong?

Wolfgang
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe:
<mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this
email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this
email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you
have any
questions related to personal data protection, please contact 3DS Data
Protection Officer https://www.3ds.com/privacy-policy/contact/


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received

Re: [Scilab-users] error in starting scilab from terminal

2023-03-02 Thread Stéphane Mottelet

The question was for Wolfgang !

Le 02/03/2023 à 10:03, Heinz Nabielek a écrit :

heinz@Heinzs-iMac ~ % java -version

openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+10)
OpenJDK 64-Bit Server VM (build 11.0.15+10, mixed mode)

   System Version:   macOS 10.15.7 (19H2026)
   Kernel Version:   Darwin 19.6.0





On 02.03.2023, at 09:57, Stéphane Mottelet  wrote:

What is the output of

java -version

on the command line ?

S.


Le 02/03/2023 à 09:45, Wolfgang Engelmann a écrit :


Am 02.03.23 um 08:36 schrieb Stéphane Mottelet:

Hello,

What is your Linux distribution (I guess Ubuntu or Debian ?) and which
Scilab version did you install ?

Debian and Scilab 6.1.0, sorry, forgot to mention it

Wolfgang


S.

Le 02/03/2023 à 07:27, Wolfgang Engelmann a écrit :

If I try to start scilab from a terminal, it won't start and I get this
error

.
g.scilab.modules.types.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.scilab.modules.jvm.LibraryPath
(file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to
method java.lang.ClassLoader.initLibraryPaths()
WARNING: Please consider reporting this to the maintainers of
org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further
illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future
release

What is wrong?

Wolfgang
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this
email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have any
questions related to personal data protection, please contact 3DS Data
Protection Officer https://www.3ds.com/privacy-policy/contact/


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our websi

Re: [Scilab-users] error in starting scilab from terminal

2023-03-02 Thread Stéphane Mottelet

What is the output of

java -version

on the command line ?

S.


Le 02/03/2023 à 09:45, Wolfgang Engelmann a écrit :



Am 02.03.23 um 08:36 schrieb Stéphane Mottelet:

Hello,

What is your Linux distribution (I guess Ubuntu or Debian ?) and which
Scilab version did you install ?


Debian and Scilab 6.1.0, sorry, forgot to mention it

Wolfgang



S.

Le 02/03/2023 à 07:27, Wolfgang Engelmann a écrit :

If I try to start scilab from a terminal, it won't start and I get this
error

.
g.scilab.modules.types.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.scilab.modules.jvm.LibraryPath
(file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to
method java.lang.ClassLoader.initLibraryPaths()
WARNING: Please consider reporting this to the maintainers of
org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further
illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future
release

What is wrong?

Wolfgang
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this
email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have any
questions related to personal data protection, please contact 3DS Data
Protection Officer https://www.3ds.com/privacy-policy/contact/


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/


--
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

Re: [Scilab-users] error in starting scilab from terminal

2023-03-01 Thread Stéphane Mottelet

Hello,

What is your Linux distribution (I guess Ubuntu or Debian ?) and which
Scilab version did you install ?

S.

Le 02/03/2023 à 07:27, Wolfgang Engelmann a écrit :

If I try to start scilab from a terminal, it won't start and I get this
error

.
g.scilab.modules.types.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.scilab.modules.jvm.LibraryPath
(file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to
method java.lang.ClassLoader.initLibraryPaths()
WARNING: Please consider reporting this to the maintainers of
org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release

What is wrong?

Wolfgang
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] macOS Scilab users, help needed ! (Stéphane Mottelet)

2023-02-16 Thread Stéphane Mottelet

OK that's nice. Scilab starts with its own embedded jre.

S.

Le 16/02/2023 à 12:14, Heinz Nabielek a écrit :

-->  jre_path
   "/Applications/scilab-mr3-190bf2ee.app/Contents/thirdparty/jre"


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] macOS Scilab users, help needed !

2023-02-16 Thread Stéphane Mottelet

Great, can you also give the result of

--> jre_path

?

Le 16/02/2023 à 11:18, Heinz Nabielek a écrit :
Works!
Any special properties?
Heinz


iMac 21.5-inch, Late 2013 3,1 GHz Quad-Core Intel Core i7
Darwin Heinzs-iMac.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Jun 21 
21:18:39 PDT 2022; root:xnu-6153.141.66~1/RELEASE_X86_64 x86_64
System Software Overview:
 System Version: macOS 10.15.7 (19H2026)
 Kernel Version: Darwin 19.6.0
 Boot Volume: Macintosh HD
 Boot Mode: Normal
 Computer Name: Heinz’s iMac



[cid:part1.JCSQV0JZ.jGGV4uwN@utc.fr]

--> r = ver()
column 1

 "Scilab Version: "
 "Operating System: "
 "Java version: "
 "Java runtime information: "
 "Java Virtual Machine information: "
 "Vendor specification: "

column 2

 "6.1.2.1676533517"
 "Mac OS X 10.15.7"
 "1.8.0_332"
 "OpenJDK Runtime Environment (build 1.8.0_332-b09)"

 "OpenJDK 64-Bit Server VM (build 25.332-b09, mixed mode)"

 "Oracle Corporation"

On 16.02.2023, at 08:59, Stéphane Mottelet 
mailto:stephane.motte...@utc.fr>> wrote:

Hello macOS Scilab users,

Can you test the latest CI (continuous integration) buid of macOS
version of Scilab ? The dmg archive is there :

https://gitlab.com/mottelet/scilab/-/jobs/3780913723/artifacts/file/scilab-mr3-190bf2ee-unsigned-x86_64.dmg

As the archive is not signed you will have to allow the execution of
Scilab in System Preferences/Security and Privacy. Please report if
Scilab opens or not and mention your macOS version.

Thanks in advance

--
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@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



--
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


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users


[Scilab-users] macOS Scilab users, help needed !

2023-02-16 Thread Stéphane Mottelet

Hello macOS Scilab users,

Can you test the latest CI (continuous integration) buid of macOS
version of Scilab ? The dmg archive is there :

https://gitlab.com/mottelet/scilab/-/jobs/3780913723/artifacts/file/scilab-mr3-190bf2ee-unsigned-x86_64.dmg

As the archive is not signed you will have to allow the execution of
Scilab in System Preferences/Security and Privacy. Please report if
Scilab opens or not and mention your macOS version.

Thanks in advance

--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Problems with Scilab routine "conv"

2023-02-03 Thread Stéphane Mottelet

I can't figure out weither the problem resides in your model or in the 
computations, but when I had (many years ago) to use discrete convolution to 
approximate continuous convolution, I noticed that the best way to obtain 
coherent results is to use the composed midpoint rule to approximate the 
integral

h(t)=\int_0^t f(\tau) g(t-\tau) d\tau.

For two causal signals t->f(t)], t-> g(t) with respective support [0,N*δ] and  
[0,M*δ], sampled in the middle of each [i*δ,(i+1)*δ] interval, define the discrete 
sequences

f_i = f((i-1/2)*δ), i=1...N
g_i = g((i-1/2)*δ), i=1..M

then define h_i = h((i*δ) for i=0...N+M by

h_0 = 0
h_i  = δ*\sum_{k=1}^i \tilde f_{i-k+1}*g_k, i = 1...N+M-1
h_{N+M} = 0

h_i for i = 1...N+M-1 is the approximation of the integral by the composed 
midpoint rule and is directly given in Scilab by δ*conv(f,g) where f and g are 
defined above. Here is an example:

function y=f(t)
   y=sin(2*%pi*t);
endfunction

function y=g(t)
   y=sin(%pi*t);
endfunction

δ=0.01;
N=50;  // t->f(t) has support [0,0.5]
M=100; // t->g(t) has support [0,1]

h=[0 δ*conv(f((1/2:N)*δ), g((1/2:M)*δ)) 0];

th=(0:N+M)*δ; // t->h(t) has support [0,1.5]
tf=(0:N)*δ;
tg=(0:M)*δ;

clf
plot(tf,f(tf),tg,g(tg),th,h)
legend f g f*g


S.

Le 03/02/2023 à 11:52, Heinz Nabielek a écrit :

This is my latest code version: the 'convoluted secondary failure fraction' is 
nicely below primary failure,  but seems too low.
Heinz


m=2; // Weibull modulus in mechanism  #1
k=1E-7;  // corrosion rate(s-1) in mechanism  #1
n=500;   // number of time steps in hourly intervals
t=(1:n)';// timesteps in hours
ts= 3600*t;  // timesteps in seconds
PHI= 1 - exp(-((k*ts)^m)); // failure fraction in mechanism #1
deriv=m*k*((k*ts)^(m-1)) .* exp(-((k*ts)^m)); //derivative of PHI
phi=3600*deriv;  //derivative of PHI integrated over an hour
f= 1 - exp(-ts/3E5); // "pure" failure fraction in mechanism #2
F=(convol(phi,f)/n)(1:n);   //"convoluted" failure fraction mechanism #2
plot("nl",t, [PHI phi f F'],'-');xgrid;
legend('PHI primary failure','phi primary failure rate','pure secondary failure 
fraction','convoluted secondary failure fraction',4);
xlabel('time (hours)');
ylabel('failure fraction/ failure rate');





On 03.02.2023, at 11:24, Heinz Nabielek 
<mailto:heinznabie...@gmail.com> wrote:

On 03.02.2023, at 11:13, Stéphane Mottelet 
<mailto:stephane.motte...@utc.fr> wrote:


Thanks for the code.

Just a remark on the notations, you should write :

F(T)  = Int_{0}^{T}  PHI(t) . f(T-t) . dt

i.e. not F(t) since t is mute.

However, you should pay attention to the delay notion associated with 
convolution and the relationships between discrete convolution and continuous 
convolution. I am not sure that the output of conv matches with a given 
discretization of the integral above. Maybe rectangle method, but I am not sure 
at all. Anyway, you should have F(0)=0 which does not seem to be the case in 
your graph.


F(t), of course.

But the formula is fundamentally wrong and one should have seen it already from 
a dimensional consideration.

Correct should be F(t)  = Int_{0}^{T}  (d PHI(t)/dt) . f(T-t) . dt

Hope you can help between conv and convol and possible something else.
Heinz








Dear SciLab Friends:

I have an object consisting of many (~10,000) small components that can fail in 
a statistical way during long-term operation at extreme conditions.

My primary failure model is described by PHI(t) going monotonically from zero 
to one at times from t=0 to T. In the computer, this is realized in n timesteps.

Mechanism 2: There is a secondary failure mechanism that starts only when a 
component has previously failed by mechanism 1 and occurs after some delay. The 
delay function is f(t) and final expression for the evolution of the mechanism 
2 failure is given by:

F(t)  = Int_{0}^{T}  PHI(t) . f(T-t) . dt

a classical convolution Faltungsintegral.

In Scilab, I write

F= conv(PHI, f, "same")/ n;

and the resulting function F looks reasonable for most of the time. Under some 
conditions, however, I can have

F>PHI

at early stages, but this is physically impossible. Because it comes later, F 
must always be below PHI.
What do I do wrong?
Heinz

_
PS: massively simplified code below..

k=1E-7;  // corrosion rate(s-1) in mechanism #1
n=100;   // number of timesteps
t=(1:n)'; // time in days
ts= 3600*t;  // time in seconds
PHI= 1 - exp(-((k*ts)^2));   // failure fraction in mechanism #1
plot("nl", t, PHI, 'r--');
f= 1 - exp(-ts/3E5); // "pure" failure fraction in mechanism #2
F=conv(PHI,f,"same")/length(t); //"convoluted" failure fraction mechanism #2
plot(t,F,'b--');
legend('failure fraction #1',&

Re: [Scilab-users] Problems with Scilab routine "conv"

2023-02-03 Thread Stéphane Mottelet

I can't figure out weither the problem resides in your model or in the 
computations, but when I had (many years ago) to use discrete convolution to 
approximate continuous convolution, I noticed that the best way to obtain 
coherent results is to use the composed midpoint rule to approximate the 
integral

h(t)=\int_0^t f(\tau) g(t-\tau) d\tau.

For two causal signals t->f(t)], t-> g(t) with respective support [0,N*δ] and  
[0,M*δ], sampled in the middle of each [i*δ,(i+1)*δ] interval, define the discrete 
sequences

f_i = f((i-1/2)*δ), i=1...N
g_i = g((i-1/2)*δ), i=1..M

then define h_i = h((i*δ) for i=0...N+M by

h_0 = 0
h_i  = δ*\sum_{k=1}^i \tilde f_{i-k+1}*g_k, i = 1...N+M-1
h_{N+M} = 0

h_i for i = 1...N+M-1 is the approximation of the integral by the composed 
midpoint rule and is directly given in Scilab by δ*conv(f,g) where f and g are 
defined above. Here is an example:

function y=f(t)
   y=sin(2*%pi*t);
endfunction

function y=g(t)
   y=sin(%pi*t);
endfunction

δ=0.01;
N=50;  // t->f(t) has support [0,0.5]
M=100; // t->g(t) has support [0,1]

h=[0 δ*conv(f((1/2:N)*δ), g((1/2:M)*δ)) 0];

th=(0:N+M)*δ; // t->h(t) has support [0,1.5]
tf=(0:N)*δ;
tg=(0:M)*δ;

clf
plot(tf,f(tf),tg,g(tg),th,h)
legend f g f*g

[cid:part1.Q0mLKf6X.Y7yxiCKD@utc.fr]


S.


Le 03/02/2023 à 11:52, Heinz Nabielek a écrit :

This is my latest code version: the 'convoluted secondary failure fraction' is 
nicely below primary failure,  but seems too low.
Heinz


m=2; // Weibull modulus in mechanism  #1
k=1E-7;  // corrosion rate(s-1) in mechanism  #1
n=500;   // number of time steps in hourly intervals
t=(1:n)';// timesteps in hours
ts= 3600*t;  // timesteps in seconds
PHI= 1 - exp(-((k*ts)^m)); // failure fraction in mechanism #1
deriv=m*k*((k*ts)^(m-1)) .* exp(-((k*ts)^m)); //derivative of PHI
phi=3600*deriv;  //derivative of PHI integrated over an hour
f= 1 - exp(-ts/3E5); // "pure" failure fraction in mechanism #2
F=(convol(phi,f)/n)(1:n);   //"convoluted" failure fraction mechanism #2
plot("nl",t, [PHI phi f F'],'-');xgrid;
legend('PHI primary failure','phi primary failure rate','pure secondary failure 
fraction','convoluted secondary failure fraction',4);
xlabel('time (hours)');
ylabel('failure fraction/ failure rate');





On 03.02.2023, at 11:24, Heinz Nabielek 
<mailto:heinznabie...@gmail.com> wrote:

On 03.02.2023, at 11:13, Stéphane Mottelet 
<mailto:stephane.motte...@utc.fr> wrote:



Thanks for the code.

Just a remark on the notations, you should write :

F(T)  = Int_{0}^{T}  PHI(t) . f(T-t) . dt

i.e. not F(t) since t is mute.

However, you should pay attention to the delay notion associated with 
convolution and the relationships between discrete convolution and continuous 
convolution. I am not sure that the output of conv matches with a given 
discretization of the integral above. Maybe rectangle method, but I am not sure 
at all. Anyway, you should have F(0)=0 which does not seem to be the case in 
your graph.



F(t), of course.

But the formula is fundamentally wrong and one should have seen it already from 
a dimensional consideration.

Correct should be F(t)  = Int_{0}^{T}  (d PHI(t)/dt) . f(T-t) . dt

Hope you can help between conv and convol and possible something else.
Heinz








Dear SciLab Friends:

I have an object consisting of many (~10,000) small components that can fail in 
a statistical way during long-term operation at extreme conditions.

My primary failure model is described by PHI(t) going monotonically from zero 
to one at times from t=0 to T. In the computer, this is realized in n timesteps.

Mechanism 2: There is a secondary failure mechanism that starts only when a 
component has previously failed by mechanism 1 and occurs after some delay. The 
delay function is f(t) and final expression for the evolution of the mechanism 
2 failure is given by:

F(t)  = Int_{0}^{T}  PHI(t) . f(T-t) . dt

a classical convolution Faltungsintegral.

In Scilab, I write

F= conv(PHI, f, "same")/ n;

and the resulting function F looks reasonable for most of the time. Under some 
conditions, however, I can have

F>PHI

at early stages, but this is physically impossible. Because it comes later, F 
must always be below PHI.
What do I do wrong?
Heinz

_
PS: massively simplified code below..

k=1E-7;  // corrosion rate(s-1) in mechanism #1
n=100;   // number of timesteps
t=(1:n)'; // time in days
ts= 3600*t;  // time in seconds
PHI= 1 - exp(-((k*ts)^2));   // failure fraction in mechanism #1
plot("nl", t, PHI, 'r--');
f= 1 - exp(-ts/3E5); // "pure" failure fraction in mechanism #2
F=conv(PHI,f,"same")/length(t); //"convoluted" failure fraction mechanism #2
plot(t,F,'b--')

Re: [Scilab-users] Problems with Scilab routine "conv"

2023-02-03 Thread Stéphane Mottelet

Thanks for the code.

Just a remark on the notations, you should write :

F(T)  = Int_{0}^{T}  PHI(t) . f(T-t) . dt

i.e. not F(t) since t is mute.

However, you should pay attention to the delay notion associated with
convolution and the relationships between discrete convolution and
continuous convolution. I am not sure that the output of conv matches
with a given discretization of the integral above. Maybe rectangle
method, but I am not sure at all. Anyway, you should have F(0)=0 which
does not seem to be the case in your graph.

S.

Le 03/02/2023 à 04:53, Heinz Nabielek a écrit :

Dear SciLab Friends:

I have an object consisting of many (~10,000) small components that can fail in 
a statistical way during long-term operation at extreme conditions.

My primary failure model is described by PHI(t) going monotonically from zero 
to one at times from t=0 to T. In the computer, this is realized in n timesteps.

Mechanism 2: There is a secondary failure mechanism that starts only when a 
component has previously failed by mechanism 1 and occurs after some delay. The 
delay function is f(t) and final expression for the evolution of the mechanism 
2 failure is given by:

F(t)  = Int_{0}^{T}  PHI(t) . f(T-t) . dt

a classical convolution Faltungsintegral.

In Scilab, I write

F= conv(PHI, f, "same")/ n;

and the resulting function F looks reasonable for most of the time. Under some 
conditions, however, I can have

F>PHI

at early stages, but this is physically impossible. Because it comes later, F 
must always be below PHI.
What do I do wrong?
Heinz

_
PS: massively simplified code below..

k=1E-7;  // corrosion rate(s-1) in mechanism #1
n=100;   // number of timesteps
t=(1:n)'; // time in days
ts= 3600*t;  // time in seconds
PHI= 1 - exp(-((k*ts)^2));   // failure fraction in mechanism #1
plot("nl", t, PHI, 'r--');
f= 1 - exp(-ts/3E5); // "pure" failure fraction in mechanism #2
F=conv(PHI,f,"same")/length(t); //"convoluted" failure fraction mechanism #2
plot(t,F,'b--');
legend('failure fraction #1','subsequent failure fraction #2',4);
xlabel('time (hours)');
ylabel('failure fraction');
title('Component failure evolution #1 is followed by #2');


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] (no subject)

2023-01-10 Thread Stéphane Mottelet

Chat GPT answer (with a few inexact facts removed):

Scilab and MATLAB are both powerful mathematical computing environments, 
but they have some key differences that may make one more suitable for a 
particular use case than the other. Here are a few potential advantages 
of Scilab over MATLAB:


 *

   Open-source: Scilab is open-source software, which means that it is
   free to download and use, and the source code is available for users
   to modify and distribute. MATLAB, on the other hand, is proprietary
   software, and requires a license to use.

 *

   Cross-platform compatibility: Scilab is available for Windows,
   macOS, and Linux, which makes it more accessible for users on
   different operating systems.

 *

   Interoperability: Scilab can call functions from other programming
   languages, such as C and Fortran, which can be useful for
   interfacing with existing code.

 *

   Cost: As mentioned before, Scilab is open source, which means you
   can use it without any license cost unlike Matlab which require
   purchasing a license to use it.

It is also worth noting that Scilab and MATLAB are both based on similar 
ideas and share a similar syntax, so users familiar with one system 
should be able to pick up the other relatively easily.


In general, Scilab might be a good option for users who are looking for 
a free or low-cost alternative to MATLAB, or for those who need to 
interface with existing code written in other languages. However, in 
terms of the functionality, Matlab is often considered as more mature 
and have a wider range of toolboxes for advanced functionality.


So the choice between Scilab and MATLAB would depend on the specific 
needs and constraints of the user.


Le 10/01/2023 à 15:43, chukwuemeka anyaoha a écrit :

what is the advantage of scilab over matlab


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] LATEX: easy help?

2022-12-27 Thread Stéphane Mottelet

Hi,

The following should render the labels as you want:

xlabel('$\mbox{inverse temperature}\,[10^4/T(K)]$');  
ylabel('$\log_{10} D\,[m^2/s]$'); S.


Le 24/12/2022 à 05:16, Heinz Nabielek a écrit :


xlabel('inverse temperature [1E4/T(K)]');
ylabel('log10 D [m2/s]');


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] scicolpack toolbox

2022-11-30 Thread Stéphane Mottelet

Hello,

A new version of scicolpack toolbox is available from atoms (for all 
platforms, thanks to the Scilab Team for its help for the Windows build) 
and gitlab:


https://atoms.scilab.org/toolboxes/scicolpack/0.4
https://gitlab.com/mottelet/scicolpack

Scicolpack is is the Scilab interface to CSCsw/ColPack 
(https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/github.com/CSCsw/ColPack), 
a Graph Coloring Algorithm Package applied to efficient computation of 
sparse Jacobian and Hessian.


The new 0.4 version brings some improvements (and a few bug fixes), as 
well as some nice demos using matrices from the Harwell-Boeing collection.


Don't hesitate to report successful uses, bugs or whishes.

Best,

--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] GitLab : Official Platform for Scilab development

2022-10-10 Thread Stéphane Mottelet
Thank you Scilab team for opening Scilab development through a modern 
platform like GitLab and congratulations for the HUGE migration work of 
Bugzilla issues !


Stéphae

Le 10/10/2022 à 12:23, COUVERT Vincent a écrit :


Hi all,

Our migration to GitLab is now completed and Scilab development can 
start again.


Starting from today, all contributions to Scilab (development, issues, 
…) must be done using GitLab:


-Development/Merge requests: 
https://gitlab.com/scilab/scilab/-/wikis/Developers/contribute-to-Scilab


-Issues: https://gitlab.com/scilab/scilab/-/issues

-Wiki: https://gitlab.com/scilab/scilab/-/wikis/home

If you want to have a look to what has been done with historical 
contents (Wiki, Codereview, …), please have a look at: 
https://gitlab.com/scilab/scilab/-/wikis/Legacy


All legacy tools will be stopped by the end of the year so we need you 
help to:


-Switch changes under review (https://codereview.scilab.org) to merge 
request,


-Move files from https://fileexchange.scilab.org/ to GitLab Snippets:

oIn Scilab project: https://gitlab.com/scilab/scilab/-/snippets: you 
will have to request access,


oIn your own GitLab account (you can ask us to create a link to it)

Stay tuned for next steps!

Best regards,

Scilab operational team

/Cordialement / Best Regards, /

*Vincent COUVERT *

Numerical Computation / Scripting Application Senior Manager

Office: +33 2 9927 1857

Dassault Systèmes SE | 15 Rue Claude Chappe, Zac des Champs Blancs, 
Batiment B | 35510 Cesson Sevigne | France


3DS Logo

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential 
and/or privileged.


If you are not one of the named recipients or have received this email 
in error,


(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete 
this email and all attachments,


(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.



Please be informed that your personal data are processed according to 
our data privacy policy as described on our website. Should you have 
any questions related to personal data protection, please contact 3DS 
Data Protection Officer at 3ds.compliance-priv...@3ds.com



For other languages, go to https://www.3ds.com/terms/email-disclaimer


___
users mailing list -users@lists.scilab.org
Click here to unsubscribe:<mailto:users-unsubscr...@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
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] running Windows (win32 terminal) program in scilab

2022-10-05 Thread Stéphane Mottelet

Hello,

I think that the following attempt could be a quick and dirty solution. 
The trick is to launch the command in the background and to redirect the 
output in a text file, whose length is checked every dt seconds, which 
allows to print the new content during the command execution. The 
command stops when there is no change after 2 seconds (can be ajusted 
below):


function cmd(cmdstr)
    tmpfile=fullfile(TMPDIR,"out.txt");
    host("start /B "+cmdstr +" > "+tmpfile)
    s=0;
    ns=0;
    dt=1;
    fd=mopen(tmpfile,"rb");
    while %t
    info=fileinfo(tmpfile)
    if info(1) > s
    ns = 0;
    str = mgetstr(info(1)-s,fd)
    mprintf("%s",str);
    s=info(1)
    elseif ns < 2
    sleep(dt,"s")
    ns = ns+1;
    else
    break
    end
    end
    mclose(fd);
    mdelete(tmpfile);
endfunction

--> cmd("ping www.google.fr")

Pinging www.google.fr [216.58.206.227] with 32 bytes of data:
Reply from 216.58.206.227: bytes=32 time=2ms TTL=118
Reply from 216.58.206.227: bytes=32 time=2ms TTL=118
Reply from 216.58.206.227: bytes=32 time=2ms TTL=118
Reply from 216.58.206.227: bytes=32 time=2ms TTL=118

Ping statistics for 216.58.206.227:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 2ms, Maximum = 2ms, Average = 2ms

-->

Le 05/10/2022 à 11:11, jp.ko...@cyberia.pl a écrit :

Hi,
I need to run external (win32) terminal program inside scilab. I've tried 
scilab functions like: host(), dos(), unix in different variants (unix_w, etc).
The problem is that all of them are not showing output of the program during 
execution. Unfortunatelly I need to show info from win32 terminal program 
during execution (showing it after execution is too late).

In Octave there is function system(), which shows outputs during program is 
run. Both standard input and ouputs are passed to Octave Command Window, (i.e. 
program is really waiting for pressing a key)

system("pause");

Press any key to continue . . .
Is there any possibility to achieve something similar in Scilab? At least if 
interaction not possible, is it possible to show standard output before called 
program is ended?

Kind regards,
Jan
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
https://antispam.utc.fr/proxy/v3?i=WjB4M1dJWGJJMnNGTHV5MuAPDwEdQko7KGyaWIIeme0&r=Skk2OVhvdXl2cm1uOWJtRLRPDrgr4YiCABksjbHu_Gv8eNkcUiMzd6MxV8KbAPI5&f=M2FwZHlGNnU1aUlkc09ZNN6FtQAZUfRagBYPQiUfaoT45ZkXHKKVm0cOGvv2yMCS&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=CXOq


--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Long delay before callback

2022-09-20 Thread Stéphane Mottelet
Depending on what you want to do, some have to be interruptible, and 
some have to prioritary. For example in the following example, where you 
can start/stop incrementing a slider,  the "start" callback must be 
interruptible but the "stop" callback must be prioritary :


function stop() set("button","userdata",%t) endfunction function start() 
try but = get("button") but.string="stop" but.callback="stop()" 
but.callback_type=10; but.userdata = %f; sl = get("slider"); for 
t=tuser(tuser>=sl.value) if but.userdata break; end sl.value = t; 
title(msprintf("t=%g",t)) end but.callback_type=0; 
but.callback="start()" but.string="start" catch end endfunction 
tuser=0:0.001:1; sl=uicontrol("style","slider",... "tag","slider",... 
"units","normalized",... "position",[0.1 0 0.9 0.05],... "background",[1 
1 1],... "min",t(1),"max",t($),"sliderstep",(t(2)-t(1))*[1 1]); 
but=uicontrol("style","pushbutton",... "units","normalized",... 
"position",[0 0 0.1 0.05],... "string","start",... "tag","button",... 
"string","start",... "callback","start()")


Le 20/09/2022 à 13:41, Stefan Du Rietz a écrit :

Hi, thanks.
Yes, but it doesn't seem to make much difference. And I don't exactly 
understand the different options.


Stefan


On 2022-09-20 12:03, Stéphane Mottelet wrote:

Hi,

Did you try to play wth callback_type (interruptible or not) ?

Le 20/09/2022 à 10:48, Stefan Du Rietz a écrit :

Hello Stéphane,

a minimal example works OK all the time ...

So, there must be something in my rather complex GUI environment, 
with many private functions, that does not. But since I get no 
warning or error messages, I don't know how to proceed.


Can the delays be due to timeouts?

Regards
Stefan


On 2022-09-19 08:45, Stéphane Mottelet wrote:

Hello Stefan,

Can you  give a minimal and reproductible example ?

S.

Le 18/09/2022 à 12:18, Stefan Du Rietz a écrit :

Hello,
I have a problem with GUI: when I choose a menu or press a button, 
sometimes it takes half a minute before the callback starts. 
Scilab is then using 100% of CPU, according to Bash top. I suppose 
it has something to do with Java? What can I do?


--> ver
 ans  =
  "Scilab Version: "    "6.1.1.1626343451"
  "Operating System: "  "Linux 5.4.0-125-generic"
  "Java version: "  "1.8.0_292"
  "Java runtime information: "  "OpenJDK Runtime 
Environment (build 1.8.0_292-b10)"
  "Java Virtual Machine information: "  "OpenJDK 64-Bit Server VM 
(build 25.292-b10, mixed mode)"

  "Vendor specification: "  "Oracle Corporation"

Regards
Stefan
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org>

http://lists.scilab.org/mailman/listinfo/users



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@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
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Long delay before callback

2022-09-20 Thread Stéphane Mottelet

Hi,

Did you try to play wth callback_type (interruptible or not) ?

Le 20/09/2022 à 10:48, Stefan Du Rietz a écrit :

Hello Stéphane,

a minimal example works OK all the time ...

So, there must be something in my rather complex GUI environment, with 
many private functions, that does not. But since I get no warning or 
error messages, I don't know how to proceed.


Can the delays be due to timeouts?

Regards
Stefan


On 2022-09-19 08:45, Stéphane Mottelet wrote:

Hello Stefan,

Can you  give a minimal and reproductible example ?

S.

Le 18/09/2022 à 12:18, Stefan Du Rietz a écrit :

Hello,
I have a problem with GUI: when I choose a menu or press a button, 
sometimes it takes half a minute before the callback starts. Scilab 
is then using 100% of CPU, according to Bash top. I suppose it has 
something to do with Java? What can I do?


--> ver
 ans  =
  "Scilab Version: "    "6.1.1.1626343451"
  "Operating System: "  "Linux 5.4.0-125-generic"
  "Java version: "  "1.8.0_292"
  "Java runtime information: "  "OpenJDK Runtime Environment 
(build 1.8.0_292-b10)"
  "Java Virtual Machine information: "  "OpenJDK 64-Bit Server VM 
(build 25.292-b10, mixed mode)"

  "Vendor specification: "  "Oracle Corporation"

Regards
Stefan
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@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

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Long delay before callback

2022-09-18 Thread Stéphane Mottelet

Hello Stefan,

Can you  give a minimal and reproductible example ?

S.

Le 18/09/2022 à 12:18, Stefan Du Rietz a écrit :

Hello,
I have a problem with GUI: when I choose a menu or press a button, 
sometimes it takes half a minute before the callback starts. Scilab is 
then using 100% of CPU, according to Bash top. I suppose it has 
something to do with Java? What can I do?


--> ver
 ans  =
  "Scilab Version: "    "6.1.1.1626343451"
  "Operating System: "  "Linux 5.4.0-125-generic"
  "Java version: "  "1.8.0_292"
  "Java runtime information: "  "OpenJDK Runtime Environment 
(build 1.8.0_292-b10)"
  "Java Virtual Machine information: "  "OpenJDK 64-Bit Server VM 
(build 25.292-b10, mixed mode)"

  "Vendor specification: "  "Oracle Corporation"

Regards
Stefan
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@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

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] How to change the default pause prompt?

2022-09-14 Thread Stéphane Mottelet

Does it solve the prompt issue ?

Le 14/09/2022 à 09:44, Jean-Yves Baudais a écrit :

Hi,

It has been solved using the official Scilab build with OpenJDK8, 
insteand of the Ubuntu 22.04 Scilab version.


Thanks,

Jean-Yves

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@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

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] org.scilab.modules.jvm.LibraryPath reporting bug?

2022-09-14 Thread Stéphane Mottelet

Hello Jean-Yves,

I suppose you just updated your Ubuntu dist to 22.04 and have the 
following configuration:


Scilab 6.1.1.988271013
Linux 5.15.0-47-generic
Java 11.0.16
OpenJDK Runtime Environment build 11.0.16+8-post-Ubuntu-0ubuntu122.04
OpenJDK 64-Bit Server VM build 11.0.16+8-post-Ubuntu-0ubuntu122.04, 
mixed mode, sharing


Scilab needs a Java 8 runtime. So, the first step should be to install 
OpenJDK8, however, you should use the official Scilab build (containing 
all dependencies, Java 8 runtime, ...) provided as a tar.gz archive:


wget https://www.scilab.org/download/6.1.1/scilab-6.1.1_x64.exe
tar xvf scilab-6.1.1_x64.exe
cd scilab-6.1.0
./bin/scilab

S.

Le 14/09/2022 à 08:42, Jean-Yves Baudais a écrit :

Hello,

I get the following message when I execute Scilab (in the shell window)

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.scilab.modules.jvm.LibraryPath 
(file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to 
method java.lang.ClassLoader.initLibraryPaths()
WARNING: Please consider reporting this to the maintainers of 
org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further 
illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

And when I try to open the Edit/Preferences window I get the message 
(in the shell window)


ERROR:  'Impossible de compiler la feuille de style'

with a long message that finishes with

Caused by: java.lang.NullPointerException
at 
org.scilab.modules.preferences.XCommonManager.generateViewDOM(Unknown 
Source)
at 
org.scilab.modules.preferences.XCommonManager.refreshDisplay(Unknown 
Source)
at 
org.scilab.modules.preferences.XConfigManager.displayAndWait(Unknown 
Source)
at 
org.scilab.modules.preferences.XConfigManager.openPreferences(Unknown 
Source)

... 43 more


and nothing appends, the Edit/Preferences window is not opened. (I 
don't know if there is a link between the WARNING message and the 
ERROR one!)


What can I do?

Thanks,

Jean-Yves
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [Scilab-Dev] Atoms down

2022-09-13 Thread Stéphane Mottelet

Thanks !

Le 13/09/2022 à 11:21, DAVID Clément a écrit :

Server disk was full ; this is working now !

Sorry for the inconvenience,

Clément


-Original Message-
From: users  On Behalf Of Stéphane
Mottelet
Sent: Monday, September 12, 2022 9:41 AM
To: users@lists.scilab.org
Subject: Re: [Scilab-users] [Scilab-Dev] Atoms down

EXTERNAL EMAIL : The sender of this email is external to 3DS. Be wary of the
content and do not open unexpected attachments or links. If you consider
this email as spam, you can click the following link https://spam-
report.3ds.com/?linktext=https://www.mailcontrol.com/sr/6nfrbbzU6Q_GX
2PQPOmvUnWT5wH6X0A_28CtVZhZBCXqfbNaqSDUaLwnvla3fe4gCz_PdXzfC
_YbMAc-oOGgZg==  (no login or additional action will be requested).


Hello,

It worked until this morning. I have created several bookmarks of this kind in
my navigator, a long time ago.

The corresponding link is "All versions of this toolbox" in the left side of a
module page.

S.

Le 12/09/2022 à 09:20, DAVID Clément a écrit :

https://atoms.scilab.org/ is working
https://atoms.scilab.org/toolboxes/IPD/8.3.3 (first link) is also
working

as you wrote in private email, https://atoms.scilab.org/toolboxes/IPD does

not work however I am not sure it was ever working. Was it ?

Cordialement / Best Regards,
Clément DAVID
Numerical Computation / Scripting Software Engineering Manager

–––
Office: +33 2 9927 1858
clement.da...@3ds.com
http://www.3ds.com
–––
Dassault Systèmes SE | 15 Rue Claude Chappe, Zac des Champs Blancs,
Batiment B | 35510 Cesson Sevigne | France




-Original Message-
From: dev  On Behalf Of Stéphane
Mottelet
Sent: lundi 12 septembre 2022 09:06
To: Users mailing list for Scilab ; List
dedicated to the development of Scilab 
Subject: [Scilab-Dev] Atoms down

EXTERNAL EMAIL : The sender of this email is external to 3DS. Be wary
of the content and do not open unexpected attachments or links. If
you consider this email as spam, you can click the following link
https://spam-


report.3ds.com/?linktext=https://www.mailcontrol.com/sr/MZbqvYs5QwJv
p

eaetUwhCQ==
PQPOmvUu5IOqjkaUP4_DMeMHhPP4Is0OePt-
Aa3FtmfggudCxPCz_PdXzfC_YbMAc-oOGgZg==  (no login or additional
action will be requested).


Hello,

Is Atoms down this morning ?

S.

--
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

___
dev mailing list
d...@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev

This email and any attachments are intended solely for the use of the

individual or entity to whom it is addressed and may be confidential and/or
privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or

responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer at
3ds.compliance-priv...@3ds.com<mailto:3DS.compliance-

priv...@3ds.com>


For other languages, go to https://www.3ds.com/terms/email-disclaimer
___
users mailing list - users@lists.scilab.org Click here to unsubscribe:
<mailto:users-unsubscr...@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

___
users mailing list - users@lists.scilab.org Click here to unsubscribe:
<mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as describe

Re: [Scilab-users] [Scilab-Dev] Atoms down

2022-09-12 Thread Stéphane Mottelet

Hello,

It worked until this morning. I have created several bookmarks of this 
kind in my navigator, a long time ago.


The corresponding link is "All versions of this toolbox" in the left 
side of a module page.


S.

Le 12/09/2022 à 09:20, DAVID Clément a écrit :

https://atoms.scilab.org/ is working
https://atoms.scilab.org/toolboxes/IPD/8.3.3 (first link) is also working

as you wrote in private email, https://atoms.scilab.org/toolboxes/IPD does not 
work however I am not sure it was ever working. Was it ?

Cordialement / Best Regards,
Clément DAVID
Numerical Computation / Scripting Software Engineering Manager

–––
Office: +33 2 9927 1858
clement.da...@3ds.com
http://www.3ds.com
–––
Dassault Systèmes SE | 15 Rue Claude Chappe, Zac des Champs Blancs, Batiment B 
| 35510 Cesson Sevigne | France




-Original Message-
From: dev  On Behalf Of Stéphane Mottelet
Sent: lundi 12 septembre 2022 09:06
To: Users mailing list for Scilab ; List dedicated to 
the
development of Scilab 
Subject: [Scilab-Dev] Atoms down

EXTERNAL EMAIL : The sender of this email is external to 3DS. Be wary of the
content and do not open unexpected attachments or links. If you consider
this email as spam, you can click the following link https://spam-
report.3ds.com/?linktext=https://www.mailcontrol.com/sr/n9E3tx39ysDGX2
PQPOmvUu5IOqjkaUP4_DMeMHhPP4Is0OePt-
Aa3FtmfggudCxPCz_PdXzfC_YbMAc-oOGgZg==  (no login or additional action
will be requested).


Hello,

Is Atoms down this morning ?

S.

--
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

___
dev mailing list
d...@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev

This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions related to 
personal data protection, please contact 3DS Data Protection Officer at 
3ds.compliance-priv...@3ds.com<mailto:3ds.compliance-priv...@3ds.com>


For other languages, go to https://www.3ds.com/terms/email-disclaimer
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@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

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Atoms down

2022-09-12 Thread Stéphane Mottelet

Hello,

Is Atoms down this morning ?

S.

--
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@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Undefined variable: vers?

2022-06-16 Thread Stéphane Mottelet

Hi Heinz,

You need a compiler. Either Visual Studio or MinGW should do it.

S.

Le 16/06/2022 à 20:47, Heinz Nabielek a écrit :

Win10 Scilab does not run some Demonstrations.
What happened?
Heinz



Startup execution:
   loading initial environment

--> ver
  ans  =

  column 1

   "Scilab Version: "
   "Operating System: "
   "Java version: "
   "Java runtime information: "
   "Java Virtual Machine information: "
   "Vendor specification: "

  column 2

   "6.1.1.1626343451"
   "Windows 10 10.0"
   "1.8.0_292"
   "OpenJDK Runtime Environment (build 1.8.0_292-b10)"
   "OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)"
   "Oracle Corporation"
at line38 of function getVsWhereInformation ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\windows\getVsWhereInformation.sci
 line 38 )
at line 3 of function dlwIsVc141Express ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\windows\dlwIsVc141Express.sci 
line 16 )
at line31 of function dlwFindMsVcCompiler   ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\windows\dlwFindMsVcCompiler.sci 
line 45 )
at line12 of function findmsvccompiler  ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\findmsvccompiler.sci line 26 )
at line 2 of function dlwHaveCompiler   ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\windows\dlwHaveCompiler.sci line 
15 )
at line 7 of function haveacompiler ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\haveacompiler.sci line 20 )
at line   109 of function demo_pendulum ( C:\Program 
Files\scilab-6.1.1\modules\differential_equations\demos\n_pendulum\n_pendulum.sci
 line 117 )
at line11 of executed file C:\Program 
Files\scilab-6.1.1\modules\differential_equations\demos\n_pendulum\n_pendulum.dem.sce

Undefined variable: vers
at line38 of function getVsWhereInformation ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\windows\getVsWhereInformation.sci
 line 38 )
at line 3 of function dlwIsVc141Express ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\windows\dlwIsVc141Express.sci 
line 16 )
at line31 of function dlwFindMsVcCompiler   ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\windows\dlwFindMsVcCompiler.sci 
line 45 )
at line12 of function findmsvccompiler  ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\findmsvccompiler.sci line 26 )
at line 2 of function dlwHaveCompiler   ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\windows\dlwHaveCompiler.sci line 
15 )
at line 7 of function haveacompiler ( C:\Program 
Files\scilab-6.1.1\modules\dynamic_link\macros\haveacompiler.sci line 20 )
at line10 of function demo_wheel2   ( C:\Program 
Files\scilab-6.1.1\modules\differential_equations\demos\wheel\wheel2.dem.sce 
line 18 )
at line73 of executed file C:\Program 
Files\scilab-6.1.1\modules\differential_equations\demos\wheel\wheel2.dem.sce

Undefined variable: vers
_______
users mailing list
users@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

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Native file and directory chooser under macOS

2022-06-14 Thread Stéphane Mottelet

Hello,

macOS Scilab users, did you all die from the COVID ?

S.

Le 07/06/2022 à 15:56, Stéphane Mottelet a écrit :

Hi,

I think that macOS have been bothered by the Swing file/directory 
chooser since Java is used in Scilab. Under Windows or Linux these 
widgets are native (or almost native) and allow to simply select a 
disk, go to home directory, ... I have been working on this problem 
and found a solution which took some time to be applied to every 
places where it may be applicable (Scinotes, Xcos, graphical export, 
...). You can experiment this new feature by downloading the new 
build, available at the usual macOS Scilab page:


https://www.utc.fr/~mottelet/scilab/download/branch-6.1/scilab-branch-6.1-x86_64-nativeFileChooser.dmg 



Enjoy !


--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Native file and directory chooser under macOS

2022-06-07 Thread Stéphane Mottelet

Hi,

I think that macOS have been bothered by the Swing file/directory 
chooser since Java is used in Scilab. Under Windows or Linux these 
widgets are native (or almost native) and allow to simply select a disk, 
go to home directory, ... I have been working on this problem and found 
a solution which took some time to be applied to every places where it 
may be applicable (Scinotes, Xcos, graphical export, ...). You can 
experiment this new feature by downloading the new build, available at 
the usual macOS Scilab page:


https://www.utc.fr/~mottelet/scilab/download/branch-6.1/scilab-branch-6.1-x86_64-nativeFileChooser.dmg

Enjoy !

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Riemann Zeta update

2022-05-25 Thread Stéphane Mottelet

Hi,

For real argument, we could easily interface std::riemann_zeta :

https://en.cppreference.com/w/cpp/numeric/special_functions/riemann_zeta

If you have a compiler (under windows you can install the minGW atoms 
module), you can run the following script:


code=[
"#define __STDCPP_WANT_MATH_SPEC_FUNCS__ 1 "
"#include "
"#include ""double.hxx"" "
"#include ""function.hxx"" "
"extern ""C"" "
"{ "
"#include ""Scierror.h"" "
"#include ""localization.h"" "
"} "
"/*  
*/ "
"types::Function::ReturnValue sci_zeta(types::typed_list &in, int 
_iRetCount, types::typed_list &out) "

"{ "
"types::Double* pDblOut; "
"types::Double* pDblIn; "
"if (in.size() != 1) "
"{ "
"Scierror(77, _(""%s: Wrong number of input argument(s): %d 
expected.\n""), ""zeta"", 1); "

"return types::Function::Error; "
"} "
"if (_iRetCount >1) "
"{ "
"Scierror(78, _(""%s: Wrong number of output argument(s): %d 
expected.""), ""zeta"", 1); "

"return types::Function::Error; "
"} "
"if (in[0]->isDouble() == false || 
in[0]->getAs()->isComplex()) "

"{ "
"Scierror(999, _(""%s: Wrong type for input argument #%d: real 
expected.\n""), ""zeta"", 1); "

"return types::Function::Error; "
"} "
"pDblIn = in[0]->getAs(); "
"pDblOut = pDblIn->clone(); "
"for (int i = 0 ; i getSize() ; ++i) "
"{ "
"pDblOut->set(i,std::riemann_zeta(pDblIn->get(i))); "
"} "
"out.push_back(pDblOut); "
"return types::Function::OK; "
"} "
];
ulink
files  =  fullfile(TMPDIR,"sci_zeta.cpp");
mputl(code,files)
ilib_verbose(1)
ilib_build("zeta",  ["zeta"  "sci_zeta"  "cppsci"],files,[])
exec  loader.sce

tic
disp(zeta(0.5))
disp(toc())


Le 22/05/2022 à 08:31, Lester Anderson a écrit :

Hi all,

After a lot of trial and error, I have managed to get a set of 
functions to compute the approximations of Riemann's Zeta for negative 
and positive real values; values of n > 1e6 seem to give better results:


function  zs=zeta_s(z, n)
 // Summation loop
 zs=1;
 if  z  ==  0  
zs  =  -0.5

 elseif  z  ==  1
zs  =  %inf
 else
 for  i  =  2:  n-1
 zs  =  zs  +  i.^-z;
 end
 end
endfunction

function  zfn=zeta_functional_eqn(s)
// Riemann's functional equation
// Analytic continuation for negative values
 zfn  =  2.^s  .*  %pi.^(s  -  1)  .*  sin(%pi.*s./2)  .*  gamma(1  -  s)  
.*  zeta_s((1  -  s),n)
endfunction
For even values of s < -20 the values of Zeta(s) increase in value and 
are not as close to zero as expected e.g. zeta_functional_eqn(-40) 
gives 7.5221382. At small even values e.g. -10, the result is of the 
order of ~1e-18 (close enough to zero). Any ideas why the even zeta 
values increase or how to reduce that response?


The solution over the critical strip (zero to one) is not so efficient 
unless n is very large( > 1e8), and there seems to be a performance 
issue when using a for-loop compared to vectorisation. Vectorised n 
speeds things up quite a bit.


function  zs2=zeta_0_1(s, n)
zs2=0
for  i  =  1:  n
  zs2  =  zs2  +  (-1).^(i  +  1)./(i.^s  );
end
  zs2  =  1./(1  -  2.^(  1-s  )).*zs2; 
endfunction


function  zs1=zeta_0_1(s, n)
// Vectorised version
zs1=0
k=linspace(1,n,n);
   zs1  =  sum((-1).^(k+  1)./(k.^s  ));
   zs1  =  1./(1  -  2.^(  1-s  )).*zs1;
endfunction
For example, calculating the approximation of Zeta(0.5) using a 
for-loop takes ~150s to give a value of -1.4602337981325388 (quite 
close), whereas the vectorised version does the computation in under 
20s, both tested using n=1e8. Can the functions be optimised to 
improve speed and accuracy?


Using Scilab 6.1.1 on Windows 10 (16 Gb RAM).

Thanks
Lester

___
users mailing list
users@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
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] mailing lists archive and subscription disabled

2022-05-25 Thread Stéphane Mottelet

Hi David,

Le 25/05/2022 à 10:28, CHEZE David 227480 a écrit :


Hi,

It’s not possible anymore to browse

Yes, I already gave a solution to this problem, the list is also 
archived there:


https://www.mail-archive.com/users@lists.scilab.org

the whole thread is available at

https://www.mail-archive.com/users@lists.scilab.org/msg10628.html

or to subscribe to users mailing lists from the links displayed in 
Scilab website https://www.scilab.org/about/community/mailing-lists 
<https://antispam.utc.fr/proxy/v3?i=WG91eXZybW45Ym1EZEZCbdLWaANujcLcgsFkB3F7dzg&r=bnJjU3hQT3pQSmNQZVE3aHi0e9tBMT9ll7ukw_G-zVkmPCTRUjeyB5560oG7uBEr&f=SGI0YVJGNmxZNE90Z2thMND4NUJUIHsVzjiyBeFmyAEyW-lenoPpNM8ZjDD6Ns-Z&u=https%3A//www.scilab.org/about/community/mailing-lists&k=JI69>


You are not right, the subscription links work 
(http://lists.scilab.org/mailman/listinfo/users)


And search on lists.scilab.org domain doesn’t return clear location of 
the archive. This issue was already raised a few years ago and is for 
sure reason for preventing new unregistered users to take part to the 
community, to get support from community and to suggest .


Is ESI still taking care of keeping Scilab and its website alive in 
any way ?


I don't know (although I am very concerned about Scilab, I don't work at 
ESI...). I hope that the situation will be clarified before the end of 
2022.


S.


David


___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/v3?i=WG91eXZybW45Ym1EZEZCbdLWaANujcLcgsFkB3F7dzg&r=bnJjU3hQT3pQSmNQZVE3aHi0e9tBMT9ll7ukw_G-zVkmPCTRUjeyB5560oG7uBEr&f=SGI0YVJGNmxZNE90Z2thMND4NUJUIHsVzjiyBeFmyAEyW-lenoPpNM8ZjDD6Ns-Z&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=JI69


--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Sundials module, Windows preview

2022-05-17 Thread Stéphane Mottelet

Hi Michael,

Le 15/05/2022 à 16:05, Michael J. McCann a écrit :
Currently I'm not using the ODE solvers but it's an area of interest 
since mathematical modelling is the core of my business. I'd like to 
see that in Xcos I can get the full range of ODE solvers (at least for 
'real-only' as distinct from 'complex-number' issues).


In fact among actual available solvers in Sundials, the only missing in 
Xcos is ARK/ERKODE, since IDA and CVODE are already available. We 
already have a few Runge-Kutta methods but this is a home made 
fixed-stepimplementation of these, hence the integration in Xcos could 
be the next step if new solvers are really needed.


S.


On 13/05/2022 12:03, Federico Miyara wrote:


Stéphane,

I don't regularly use ODE solvers for the time being, but I think any 
improvement is valuable and is worth the effort. The lack or paucity 
of feedback in this list is not an evidence of lack of interest for 
the Scilab users community. It may also encourage other potential 
users to move to Scilab. I'm grateful for your effort and feel 
reassured that in the event I need the feature, I'll have better solvers.


Regards,

Federico Miyara

On 13/05/2022 11:45, Stéphane Mottelet wrote:


Hello,

Did anybody give a try to the Windows build ?

Frankly speaking, if nobody cares about improved numerical methods 
in Scilab, things can be left as is, and time could be spent on 
other features (but not by me...).


I can also prepare a Linux build, if users of this os want to test...

Regards,

S.

Le 27/04/2022 à 17:32, Stéphane Mottelet a écrit :


Hi all,

The next version of scilab will include a new module "Sundials". 
This module provides new full featured  ODE solvers: arkode(), 
cvode() and DAE solver ida(), all handling complex numbers and 
dense/sparse/banded Jacobians. Each solver has specific features, 
e.g. ida() handles DAE, arkode() handles mixed implicit/explicit 
Runge-Kutta methods and cvode() can do forward sensitivity 
computation.


The module also includes a general-purpose nonlinear system solver: 
kinsol(), who takes advantage of the module architecture (parsing, 
computation engine and SUNDIALS abstraction of various linear 
solvers).


Current help pages can be found @ 
https://www.utc.fr/~mottelet/scilab/sundials/ and a *Windows* build 
of Scilab (in addition to the already available macOS build) 
including the new module is available at


https://www.utc.fr/~mottelet/scilab_for_macOS.html

The help pages propose a lot of examples and two demos (this 
section is to be enriched) are available.


Comments are welcome !

--
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@lists.scilab.org
https://antispam.utc.fr/proxy/v3?i=SHV0Y1JZQjNyckJFa3dUQiblhF5YcUqtiWCaK_ri0kk&r=T0hnMlUyVEgwNmlmdHc1NTiGTQVgIg9a1MYkHb_GeosOO-jCQ_NnAucfYCLceioT&f=V3p0eFlQOUZ4czh2enpJS67gBdM2WVME2HqVPefA4FpGU6HeKhrEzrhzAHs-d_Wu&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=ZVd0

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> 
	Libre de virus. www.avast.com 
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@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
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Sundials module, Windows preview

2022-05-15 Thread Stéphane Mottelet

Hi,

Le 13/05/2022 à 17:16, CHEZE David 227480 a écrit :


Dear Stephane, I did give a try to windows build, limited to my use 
case, and it works like a charm !


I just ran a previous use case with cvode() (solar thermal panel 
quasi-dynamic model, comparison with experimental data set ), as it 
was written for the external Sundials module you developed previously 
(~January 2022) : same performance in execution time as expected since 
relying on the same code isn’t it ?


Yes, the Sundials module is mostly based on the Atoms Sundials module, 
but many internal improvements have been made since the last release 
(upgrade to Sundials 2.6.0 allowing the use of ARKODE, sparse solvers, ...)


I appreciated the improved documentation details and I just started 
reading documentation of the new features from the windows Sundials 
Scilab builtin : arkode, ida, kinsol : it looks exciting for future 
use cases.


Thanks again for introducing these key features, is there any news 
about the next Scilab release ?



Not yet


David

Ps: windows users might be confused by the url stating only mac_os : 
https://www.utc.fr/~mottelet/scilab_for_macOS.html 
<https://antispam.utc.fr/proxy/v3?i=Z09lbVhROVBaOHd3NjZZMVfTogSUUCLtvQYv_TI7-Qg&r=eVVJWkdic3NtZTdZV2pycc8oEJBVcQfwoAgOILbixruFQP-mXZOvGI-Awo-iPm4W&f=UU9IMnpkdmJmSk9YOHVtc4JNomkUGubf8DA_bzrUn-Hiq5VuGo_VlJP1TQC7yyVL&u=https%3A//antispam.utc.fr/proxy/v3%3Fi%3DSHV0Y1JZQjNyckJFa3dUQiblhF5YcUqtiWCaK_ri0kk%26r%3DT0hnMlUyVEgwNmlmdHc1NTiGTQVgIg9a1MYkHb_GeosOO-jCQ_NnAucfYCLceioT%26f%3DV3p0eFlQOUZ4czh2enpJS67gBdM2WVME2HqVPefA4FpGU6HeKhrEzrhzAHs-d_Wu%26u%3Dhttps%253A//www.utc.fr/~mottelet/scilab_for_macOS.html%26k%3DZVd0&k=eFRI>



OK maybe should I create a dedicated page... thanks for the remark

S.

*De :*users  *De la part de* Stéphane 
Mottelet

*Envoyé :* vendredi 13 mai 2022 16:46
*À :* users@lists.scilab.org
*Objet :* Re: [Scilab-users] Sundials module, Windows preview

Hello,

Did anybody give a try to the Windows build ?

Frankly speaking, if nobody cares about improved numerical methods in 
Scilab, things can be left as is, and time could be spent on other 
features (but not by me...).


I can also prepare a Linux build, if users of this os want to test...

Regards,

S.

Le 27/04/2022 à 17:32, Stéphane Mottelet a écrit :

Hi all,

The next version of scilab will include a new module "Sundials".
This module provides new full featured  ODE solvers: arkode(),
cvode() and DAE solver ida(), all handling complex numbers and
dense/sparse/banded Jacobians. Each solver has specific features,
e.g. ida() handles DAE, arkode() handles mixed implicit/explicit
Runge-Kutta methods and cvode() can do forward sensitivity
computation.

The module also includes a general-purpose nonlinear system
solver: kinsol(), who takes advantage of the module architecture
(parsing, computation engine and SUNDIALS abstraction of various
linear solvers).

Current help pages can be found @
https://www.utc.fr/~mottelet/scilab/sundials/

<https://antispam.utc.fr/proxy/v3?i=Z09lbVhROVBaOHd3NjZZMVfTogSUUCLtvQYv_TI7-Qg&r=eVVJWkdic3NtZTdZV2pycc8oEJBVcQfwoAgOILbixruFQP-mXZOvGI-Awo-iPm4W&f=UU9IMnpkdmJmSk9YOHVtc4JNomkUGubf8DA_bzrUn-Hiq5VuGo_VlJP1TQC7yyVL&u=https%3A//antispam.utc.fr/proxy/v3%3Fi%3DSHV0Y1JZQjNyckJFa3dUQiblhF5YcUqtiWCaK_ri0kk%26r%3DT0hnMlUyVEgwNmlmdHc1NTiGTQVgIg9a1MYkHb_GeosOO-jCQ_NnAucfYCLceioT%26f%3DV3p0eFlQOUZ4czh2enpJS67gBdM2WVME2HqVPefA4FpGU6HeKhrEzrhzAHs-d_Wu%26u%3Dhttps%253A//www.utc.fr/~mottelet/scilab/sundials/%26k%3DZVd0&k=eFRI>
and a *Windows* build of Scilab (in addition to the already
available macOS build) including the new module is available at

https://www.utc.fr/~mottelet/scilab_for_macOS.html

<https://antispam.utc.fr/proxy/v3?i=Z09lbVhROVBaOHd3NjZZMVfTogSUUCLtvQYv_TI7-Qg&r=eVVJWkdic3NtZTdZV2pycc8oEJBVcQfwoAgOILbixruFQP-mXZOvGI-Awo-iPm4W&f=UU9IMnpkdmJmSk9YOHVtc4JNomkUGubf8DA_bzrUn-Hiq5VuGo_VlJP1TQC7yyVL&u=https%3A//antispam.utc.fr/proxy/v3%3Fi%3DSHV0Y1JZQjNyckJFa3dUQiblhF5YcUqtiWCaK_ri0kk%26r%3DT0hnMlUyVEgwNmlmdHc1NTiGTQVgIg9a1MYkHb_GeosOO-jCQ_NnAucfYCLceioT%26f%3DV3p0eFlQOUZ4czh2enpJS67gBdM2WVME2HqVPefA4FpGU6HeKhrEzrhzAHs-d_Wu%26u%3Dhttps%253A//www.utc.fr/~mottelet/scilab_for_macOS.html%26k%3DZVd0&k=eFRI>


The help pages propose a lot of examples and two demos (this
section is to be enriched) are available.

Comments are welcome !

-- 


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  
<https://antispam.utc.fr/proxy/v3?i=Z09lbVhROVBaOHd3NjZZMVfTogSUUCLtvQYv_TI7-Qg&r=eVVJWkdic3NtZTdZV2pycc8oEJBVcQfwoAgOILbixruFQP-mXZOvGI-Awo-

Re: [Scilab-users] Sundials module, Windows preview

2022-05-13 Thread Stéphane Mottelet

Hello,

Did anybody give a try to the Windows build ?

Frankly speaking, if nobody cares about improved numerical methods in 
Scilab, things can be left as is, and time could be spent on other 
features (but not by me...).


I can also prepare a Linux build, if users of this os want to test...

Regards,

S.

Le 27/04/2022 à 17:32, Stéphane Mottelet a écrit :


Hi all,

The next version of scilab will include a new module "Sundials". This 
module provides new full featured  ODE solvers: arkode(), cvode() and 
DAE solver ida(), all handling complex numbers and dense/sparse/banded 
Jacobians. Each solver has specific features, e.g. ida() handles DAE, 
arkode() handles mixed implicit/explicit Runge-Kutta methods and 
cvode() can do forward sensitivity computation.


The module also includes a general-purpose nonlinear system solver: 
kinsol(), who takes advantage of the module architecture (parsing, 
computation engine and SUNDIALS abstraction of various linear solvers).


Current help pages can be found @ 
https://www.utc.fr/~mottelet/scilab/sundials/ and a *Windows* build of 
Scilab (in addition to the already available macOS build) including 
the new module is available at


https://www.utc.fr/~mottelet/scilab_for_macOS.html

The help pages propose a lot of examples and two demos (this section 
is to be enriched) are available.


Comments are welcome !

--
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@lists.scilab.org
https://antispam.utc.fr/proxy/v3?i=SHV0Y1JZQjNyckJFa3dUQiblhF5YcUqtiWCaK_ri0kk&r=T0hnMlUyVEgwNmlmdHc1NTiGTQVgIg9a1MYkHb_GeosOO-jCQ_NnAucfYCLceioT&f=V3p0eFlQOUZ4czh2enpJS67gBdM2WVME2HqVPefA4FpGU6HeKhrEzrhzAHs-d_Wu&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=ZVd0


--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Changing properties of mark_mode polyline in param3d1

2022-04-29 Thread Stéphane Mottelet

Hello,

You should rather use scatter3d, which allows to give different colors 
to markers (and scale the color wrt a given color vector)


S.

Le 29/04/2022 à 12:49, Izabela Wójcik-Grząba a écrit :


Hello,

I have a simple example of param3d1 graph:

param3d1([1 2 3],[3 4 2],[5 2 4]);

h=gce();

h.line_mode="off";

h.mark_mode="on";

h.mark_sytle=9;

h.mark_size=1;

h.mark_foreground=13;

h.mark_background=13;

I would like to ask if it's possible to change properties of marks 
individually? My main goal is to change colors using colormap 
according to the values assigned to each mark (point on the graph). As 
an illustration of my problem I give a vector of values and colors for 
the 3 points:


[1 2 3]

[red green blue]

I know how to do it for line_mode="on", but for mark_mode the 
structure of figure is different.


Thanks in advance for any help. Regards,

Iza

--
Izabela Wójcik-Grząba
Zespół Konstrukcji Metalowych
ZKBiM IIB WIL Politechnika Warszawska


___
users mailing list
users@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
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Sundials module, Windows preview

2022-04-27 Thread Stéphane Mottelet

Hi all,

The next version of scilab will include a new module "Sundials". This 
module provides new full featured  ODE solvers: arkode(), cvode() and 
DAE solver ida(), all handling complex numbers and dense/sparse/banded 
Jacobians. Each solver has specific features, e.g. ida() handles DAE, 
arkode() handles mixed implicit/explicit Runge-Kutta methods and cvode() 
can do forward sensitivity computation.


The module also includes a general-purpose nonlinear system solver: 
kinsol(), who takes advantage of the module architecture (parsing, 
computation engine and SUNDIALS abstraction of various linear solvers).


Current help pages can be found @ 
https://www.utc.fr/~mottelet/scilab/sundials/ and a *Windows* build of 
Scilab (in addition to the already available macOS build) including the 
new module is available at


https://www.utc.fr/~mottelet/scilab_for_macOS.html

The help pages propose a lot of examples and two demos (this section is 
to be enriched) are available.


Comments are welcome !

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Strange behavior of explicit vs implicit iteration

2022-04-25 Thread Stéphane Mottelet

Hi Frederico,

Rouding stuff is not a simple issue, but it's clear that your are not 
doing the computations in the same order, which could explain the 
difference. Here is a simpler example showing that the result depends on 
the order in which computations are done:


--> x=rand(10,1,"normal");

--> sum([1;x])-sum([x;1])
 ans  =

  -2.220D-16

Floating point addition is NOT associative. See e.g. 
https://en.wikipedia.org/wiki/Round-off_error


S.

Le 25/04/2022 à 10:00, Federico Miyara a écrit :


Dear All,

Here I have the following script, where I compute the same thing using 
two iteration methods:


alfa  =  rand(1,10);
Rpr  =  rand();
R  =  rand();
Z  =  rand(10,200);  


G  =  zeros(1,200);
for  i=1:200
A  =  0;
B  =  0;
for  k  =  1:10
   A  =  A  +  Rpr*alfa(k)  /  (Z(k,i)  +  alfa(k)*(1  -  alfa(k))*R);   
   B  =  B  +  Rpr*(1  -  alfa(k))  /  (Z(k,i)  +  alfa(k)*(1  -  alfa(k))*R);

end
G(i)  =  (1  +  A)  /  (1  +  B);
end

A  =  1;
B  =  1;
for  k  =  1:10
A  =  A  +  Rpr*alfa(k)  ./  (Z(k,:)  +  alfa(k)*(1  -  alfa(k))*R);   
B  =  B  +  Rpr*(1  -  alfa(k))  ./  (Z(k,:)  +  alfa(k)*(1  -  alfa(k))*R);

end
G1  =  A  ./  B;

[M,  ind]  =  max(abs(G- G1))
However, the last line shows that there are differences between both 
methods. They are tiny (near %eps), but I can't find nor imagine which 
is the reason.


NOTE: I kept the original formulas as in the script where the problem 
arised but changed the data. When I tried to use a simpler formula 
there was no difference.


Any idea?

Regards,

Federico Miyara

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> 
	Libre de virus. www.avast.com 
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

___
users mailing list
users@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
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Visualising Collatz sequences

2022-04-14 Thread Stéphane Mottelet

You can also enjoy the 3d version:

function  X=anglePath3(r, th, ph)
cumth  =  cumsum(th);
cumph  =  cumsum(ph);
X  =  cumsum([0  r.*sin(cumph)
0  r.*sin(cumth).*cos(cumph)
0  r.*cos(cumth).*cos(cumph)],  2);
end

function  N=collatz(n)
N  =  n;
while  n<>1
if  modulo(n,2)  ==  0
n  =  n/2;
else
n  =  3*n+1;
end
N  =  [n  N];
end
end

a=0.1;
e=1.3;

clf
NCOL=512;
gcf().color_map=parulacolormap(NCOL);
drawlater
for  i=1:200
r=collatz(grand(1,1,'uin',1,100));
m1=modulo(r,4);
m2=m1;
m1(m1>1)=0;
m2(m2<=1)=0;

X=anglePath3(r./(1+r.^e),a*%pi*(0.352-modulo(m1,2)),a*%pi*(0.352-modulo(m2,2)));
x=rand(3,1)/8;
param3d(x(1)+X(1,:),x(2)+X(2,:),x(3)+2*X(3,:))
gce().foreground=min(NCOL,length(r))
end
isoview  on
drawnow


Le 14/04/2022 à 09:46, Stéphane Mottelet a écrit :


Hi again,

Here is a small code doing the graphic job:

function  X=anglePath(r, th)
 cumth  =  cumsum(th);
 X  =  cumsum([0  r.*cos(cumth);0  r.*sin(cumth)],  2);
end

function  N=collatz(n)
 N  =  n;
 while  n<>1
 if  modulo(n,2)  ==  0
 n  =  n/2;
 else
 n  =  3*n+1;
 end
 N  =  [n  N];
 end
end

a=0.08;
e=1.2;

clf
gcf().color_map=graycolormap(128);
for  i=1:100
 r=collatz(ceil(rand()*20));
 X=anglePath(r./(1+r.^1.2),a*%pi*(0.35-modulo(r,2)));
 plot(0.01+X(1,:),-0.01+X(2,:));
end
--
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@lists.scilab.org
https://antispam.utc.fr/proxy/v3?i=Zk92VEFKaGQ4Ums4cnZEUWMTpfHaXFQGRw1_CnOoOH0&r=bHA1dGV3NWJQVUloaWNFUYH-0fCrCfKNwGzaHK3mGAF34Dbd5QpdXfVRjdiNrR7K&f=SlhDbE9uS2laS2JaZFpNWvypxfeihkZF7xphlFhpLfOsI1HEbZ2YCuIwSI8iQL53&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=XRKU


--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Combinatorics

2022-04-14 Thread Stéphane Mottelet

Hi,

Le 14/04/2022 à 13:12, Claus Futtrup a écrit :


Dear Scilabers

I hope you can help me out. My combinatorics is a bit rusty.

So, the spouse has purchased a lock and I wondered how many 
combinations are available?


The lock has 10 push buttons, they are numbered 1-2-3-4-5-6-7-8-9-0.

From a programming point of view, any of the numbers can be set on or 
off, meaning there are 2^10 = 1024 combinations, as far as I can see.


I wonder how they are distributed, and how many of the numbers I 
should activate in the lock to maximize the number of combinations?


The number of different subsets of k distincts elements of a set 
composed of n elements is the binomial coefficient (n,k). When n is 
even, it is maximized for k=n/2. Here


-->  nchoosek(10, 5)
 ans  =

   252.

S.


Let's see, we have:

None (none of the buttons are activated), there's exactly 1 
combination for this situation. The lock is delivered from the 
manufacturer in this state.


All (all of the buttons are activated), there's exactly 1 combination 
for this situation as well (no variability).


One button pushed. There's obviously 10 possible combinations (push 
any one of the 10 buttons).


Two buttons pushed. There's 10 * 9 / 2 = 45 combinations. Each button 
can only be pushed once, so once you've selected the first button, 
there's only 9 left, but also we divide by two because the combination 
are doubled, I mean for example the combination 1-2 = 2-1 ... the lock 
doesn't know the difference. If you spread out the possibilities in a 
2D plane, it's like ignoring the diagonal (like pushing the same 
button twice) and also we either ignore the upper or lower triangle. 
Makes sense?


Here starts my trouble. Three buttons pushed. Instead of looking at a 
2D plane, I guess you spread out in 3D. The diagonal line is more than 
that - we have several planes where two of the three numbers are the 
same (and which are not allowed).


To help myself out, I've tried to write all combinations where one of 
the push buttons is number 1. We select all combinations with the 
second button being either 2-3-4 and so on, and how many combinations 
do we then have for the third option? See table below:


1-2-x   8
1-3-x   7
1-4-x   6
1-5-x   5
1-6-x   4
1-7-x   3
1-8-x   2
1-9-0   1

36

We can then do the same for the first button = number 2, and we get : 
7 + 6 + 5 + 4 + 3 + 2 + 1 = 28 combinations and so on. We get:


1-x-y   36
2-x-y   28
3-x-y   21
4-x-y   15
5-x-y   10
6-x-y   6
7-x-y   3
8-9-0   1

120

OK, so that was with three buttons pushed. It's always good to know 
the answer (if it's correct :-/ I hope it is), but it's a tedious 
process and I was wondering if you could point me to an easy 
calculation instead? ... Ideally something that expands to 4 and 5 
buttons.


I can 'invent' a calculation, which could be : =10*9*8/(3*2*1) = 120 
... if this indeed shows the internal workings, I'd like to know why. 
Sorry my combinatorics is so bad ... I haven't played in this field 
for a while.


Best regards,

Claus


___
users mailing list
users@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
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Visualising Collatz sequences

2022-04-14 Thread Stéphane Mottelet

Hi again,

Here is a small code doing the graphic job:

function  X=anglePath(r, th)
cumth  =  cumsum(th);
X  =  cumsum([0  r.*cos(cumth);0  r.*sin(cumth)],  2);
end

function  N=collatz(n)
N  =  n;
while  n<>1
if  modulo(n,2)  ==  0
n  =  n/2;
else
n  =  3*n+1;
end
N  =  [n  N];
end
end

a=0.08;
e=1.2;

clf
gcf().color_map=graycolormap(128);
for  i=1:100
r=collatz(ceil(rand()*20));
X=anglePath(r./(1+r.^1.2),a*%pi*(0.35-modulo(r,2)));
plot(0.01+X(1,:),-0.01+X(2,:));
end collatz

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Visualising Collatz sequences

2022-04-13 Thread Stéphane Mottelet

Hi,

Maybe some hints there:

https://community.wolfram.com/groups/-/m/t/558256

hth

S.

Le 13/04/2022 à 17:36, Lester Anderson a écrit :

Hello all,

I have prepared a code to generate Collatz sequences based on the even 
(n/2) and odd ((3n+1)/2) rules.


clear

function [ns, seq] = collatz(n)
// Reference: https://en.wikipedia.org/wiki/Collatz_conjecture
//ns =number of steps; seq=Collatz sequence
seq(1) = n;
// Position an index on the next element of the sequence
i = 2;

// Repeat the iteration until you find a 1
while seq(i-1) ~= 1
    // Use modulo to define even/odd numbers
    if modulo(seq(i-1), 2) == 0
        // Step taken if even
        seq(i) = seq(i-1)/2;
    else
        // Step taken if odd
        // seq(i) = 3*seq(i-1) + 1 // "3n+1 Collatz"
        seq(i) = (3*seq(i-1) + 1)/2; // "shortcut form Collatz"
    end
    // Increment index
    i = i+1;
end
// Find the length of the sequence
ns = length(seq);
endfunction

n = input('Enter a positive integer: ')
tic()

for  i = 1:n
   [nsi, seqi] = collatz(i);
   ns(i) = nsi;
   seq(1:nsi, i) = seqi;
end

// Find maxima in each Collatz sequence
peak_values = max(seq, 'r')

t=toc()
mprintf('Elapsed time: %4.8f\n',t)

What I would like to try is apply a further rule to generate a plot
based on the Collatz sequences using left/right angular turn depending on
whether the number is odd or even, going in reverse (starting at 1) 
and branching out.


I can easily define the odd/even numbers in the sequence (modulo), but 
not sure how to
apply the angle rotation for the graphic plot. Any pointers would be 
helpful.


Attached an example image by way of reference.

On a secondary point, the Collatz conjecture can be applied to 
negative values, but would be interested to know how the code has to 
be tweaked. If you stick a negative value in the code as is, it gets 
stuck in a loop.


Thanks
Lester


___
users mailing list
users@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

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Sundials module, macOS preview

2022-04-06 Thread Stéphane Mottelet

Hi all,

The next version of scilab will include a new module "Sundials". This 
module provides new full featured  ODE solvers: arkode(), cvode() and 
DAE solver ida(), all handling complex numbers and dense/sparse/banded 
Jacobians. Each solver has specific features, e.g. ida() handles DAE, 
arkode() handles mixed implicit/explicit Runge-Kutta methods and cvode() 
can do forward sensitivity computation.


The module also includes a general-purpose nonlinear system solver: 
kinsol(), who takes advantage of the module architecture (parsing, 
computation engine and SUNDIALS abstraction of various linear solvers).


Current help pages can be found @ 
https://www.utc.fr/~mottelet/scilab/sundials/ and a macOS build 
including the new module is available at


https://www.utc.fr/~mottelet/scilab_for_macOS.html

I hope that a Windows build will be available in a near future, but in 
the meantime, comments from macOS users are welcome !


Enjoy !

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Cannot start Scilab 6.1.1

2022-03-29 Thread Stéphane Mottelet

Hi Stefan,

Did you try to google with

"libtinfo.so.5: cannot open shared object file: No such file or directory"

There is a bunch of possible fixes. did you try :

sudo apt install libtinfo5

?

S.

Le 29/03/2022 à 15:32, Stefan Du Rietz a écrit :

Hello all,
I am trying to get Scilab 6.1.1 running in a new Computer (Xubuntu 
Linux 20-04, nVidia T-600 with proprietary driver) from 
scilab-6.1.1.bin.linux-x86_64.tar.gz in the same way as in another 
computer with the same OS but with Java 8,


But when I try to start from the terminal:

stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ ./bin/scilab &
[1] 261325
stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ X Error of failed 
request:  BadValue (integer parameter out of range for operation)

  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  110
  Current serial number in output stream:  111
scilab-bin: error while loading shared libraries: libtinfo.so.5: 
cannot open shared object file: No such file or directory


I have uninstalled Java 11 and installed Java 8 to no avail.

If I install Scilab from Ubuntu repositories with

  $ sudo apt install scilab

I get a working version 6.1.0 (including graphics!), except for 
Preferences in both command window and Scinotes! So I can't change 
font in either of them.


Can anybody help?

Regards
Stefan
___
users mailing list
users@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
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Bugzilla

2022-03-21 Thread Stéphane Mottelet

Hi all,

My previous message was sent to the list by mistake, but now you should 
guess that I am planning to migrate the Scilab bugzilla database to 
github issues (to a repository that is still to create).


S.

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] berestovskyy/bugzilla2github: Bugzilla bug reports to GitHub Issue Tracker convertor

2022-03-21 Thread Stéphane Mottelet


https://github.com/berestovskyy/bugzilla2github

--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] scicv toolbox

2022-03-07 Thread Stéphane Mottelet

Hi Philipp,

The active tolbox using OpenCV is IPCV, and the author is 
chinluh@bytecode-asia.com


Le 07/03/2022 à 08:40, P M a écrit :

Dear developers,

in the help page of the scicv toolbox, I find following statement:

"The purpose of this toolbox is to provide an access to all the 
functions and objects of OpenCV in Scilab."



Now, although I do very much like this statement in itself, I do not 
think that all functions are already covered.


So my question of interest:

Is Scilab planning an update with more functions?


who is "Scilab" ?

S.



Best Regards,

Philipp





___
users mailing list
users@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

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [question] xcos yielding different result than SIMULINK

2022-02-10 Thread Stéphane Mottelet
In Xcos the results are virtually the same with a plain PID block (with 
the same parameters). The chosen solver (CVODE/BDF) is OK to me.


Le 10/02/2022 à 11:06, Samuel Gougeon a écrit :

Hello,

Le 10/02/2022 à 10:35, Foad Sojoodi Farimani a écrit :
I had initially asked the question here 
<https://discordapp.com/channels/384316553497280512/384325768685027328/941093238436134912> 
on xcos Discord channel <https://discord.gg/KeG3rdQ>.
Basically, I want to replicate this SIMULINK tutorial 
<https://youtu.be/PRFCBVTFy90> in xcos, and so far you may see the 
.zcox file in the attachment. However, my plots in xcos are quite 
different from the ones in the above YouTube video.



The video is 26mn long, with several versions of the diagram. Which 
version are you addressing?
Wrt to the version at 19:00, why do you skip the 1/s block and adds an 
INTEGRAL_m block in your sent version ?


Regards

___
users mailing list
users@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
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scinotes background color

2022-01-25 Thread Stéphane Mottelet

Hello Stefan,

First if all, please create a new issue in bugzilla.scilab.org. Then, 
can you try a with a different window manager (other than xfce) ?


S.

Le 25/01/2022 à 13:09, Stefan Du Rietz a écrit :

Hello,
with Scilab 6.1.1 and Linux (Ubuntu with XFCE) the background color in 
Scinotes turned grey, which makes almost all text unreadable. In 
Scinotes Preferences and in the Command window it is white.


Is there anything I can do?

Regards
Stefan


___
users mailing list
users@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

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] xdel replaced by close()

2022-01-22 Thread Stéphane Mottelet
Hi,

This is fixed for the next release:

https://codereview.scilab.org/#/c/21803/

In the meantime, if you really need it you can download the patched version of 
findobj.

S.

> Le 21 janv. 2022 à 23:54, Samuel Gougeon  a écrit :
> 
> 
> Hello Claus,
> 
>> Le 21/01/2022 à 20:58, Claus Futtrup a écrit :
>> Hi Scilabers 
>> 
>> Today I tried to replace xdel(winsid()) in one of my scripts with 
>> close(winsid()) because Scilab shows a warning in the console: 
>> 
>> Warning: Feature xdel(...) is obsolete and will be permanently removed in 
>> Scilab 6.2 
>> 
>> Warning: Please use close(...) instead. 
>> 
>> I am negatively surprised that the close() command takes a long time to 
>> execute with 5-10 windows open (a few seconds per window). The xdel() 
>> command can do it in a split second. 
>> 
> 
> The issue comes not from close() but from the change of findobj() that it 
> calls, noticeably to perform findobj("figure_id",id) in 6.1.1.
> It does not impact only close() for this case, that was processed as a 
> special accelerated case in the former findobj().
> This downgrading was reported 7 months before releasing 6.1.1, and knowingly 
> ignored, while it is perfectly fixable by restoring the fast special case.
> 
> 
>> 
>> What is the motivation for replacing xdel with close? 
> 
> Both do the same thing. Scilab does not need duplicates.
> 
> Regards
> Samuel
> 
> ___
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Sundials ode solvers

2021-12-17 Thread Stéphane Mottelet

Dear Scilab users,

A new version 0.2 of sci-sundials has been just released:

https://atoms.scilab.org/toolboxes/sci_sundials/0.2

Among other internal improvements and code factorization

-the differential-algebraic solver IDA is now available
-the documentation is now exhaustive about the features of solvers and 
the options


There has been an important change in the api. For example for CVODE, 
the two gateways cvode_solve() and cvode_extend() have been fused in 
cvode() and the extension is done by giving the solution as first argument:


    [t,y] = cvode(f,tspan,y0,options)
    [t,y,te,ye,ie] = cvode(f,tspan,y0,options)
    sol = cvode(...)
    solext = cvode(sol,tfinal,options)

Still no gateway for ARKODE but I will now focus on the upgrade of 
SUNDIALS in Sscilab itself.


Merry Christmas (in advance).

S.

Le 25/10/2021 à 16:35, Stéphane Mottelet a écrit :


Hi all,

As discussed in this thread last month

https://www.mail-archive.com/users@lists.scilab.org/msg10679.html

I am glad to annouce that a first version of the  sci-sundials toolbox 
(maybe part of Scilab in the future) is available on Atoms in the 
"Differential Equations" category (refresh the package list if you 
don't see it).  To have an idea of its features I pasted below the 
content of the README.md file on the gitlab project of sci-sundials 
(https://gitlab.com/mottelet/sci-sundials/).


If you appreciate the work and want to help, doc, demos, or even more 
if you know how to code in C and C++ you are welcome !


S.


What has been done and what is to be done

Until now only CVODE has been interfaced but many common features have 
been developped in the OdeManager class, hence interfacing IDA will be 
quite easy. ARKODE (various modern explicit, implicit and mixed 
explicit/implicit Runge-Kutta solvers) does not exist in the old 2.4.0 
version of Sundials which is used in Scilab hence won't be interfaced 
unless an upgrade is done (Sundials is now at version 5.7.0). The 
support of Sparse Jacobians is also missing for the same reason.



Features

The CVODE gateway cvode_solve() implements the following features 
which were missing by the legacy LSODE/LSODA/LSODAR/... ode() gateway :


  * full a posteriori access to solver continuous extension of
solution at arbitrary points via a MList output when only one lhs
is given:

|sol = cvode_solve(f, [t0 tf], y0) t = linspace(t0, tf, 1000) plot(t, 
sol(t)) |


The |sol| MList fields gathers all information related to the obtained 
solution (time steps, solution at time steps, events, ...). The solver 
can be restarted by giving the MLlist as first argument to 
|cvode_extend| :


|sol2 = cvode_extend(sol, tx, ...)|

where |tx| is the time point to which solution has to be extended. The 
options of the call that yielded |sol| are used and can be changed as 
optional named parameters after |tx|.


  * a user-friendly access to solver options via optional named
parameters in cvode_solve call, i.e.

|cvode_solve(f, tspan, y0, h0=0.01, rtol=1e-3)|

  * a really simpler way to give time span of integration allowing to
choose between error driven solver internal time steps and user
fixed time steps, i.e.

|[t,y] = cvode_solve(f, [t0 tf], y0) [t,y] = cvode_solve(f, [t0 t1 ... 
tf], y0) [t,t] = cvode_solve(f, tspan, y0, t0=0)|


the latter style being the closest to actual |ode()| behavior where 
solution is by default given at user time steps and |t0| is not 
necessarily equal to |tspan(1)|, which is the default in the two 
former calls above.


  * a better and user-friendly specification of events via a variable
number of outputs event function (giving value of event equations,
wheter to stop integration for a given event and event direction
selection), minimal style beeing a single output. Information
about events is also simpler to get:

|function [eq,term,dir] = evfun(t,y) eq = y(1)-1.7; term = %f; dir = 
1; end [t,y,te,ye,ie] = cvode_solve(f, tspan, y0, events = evfun) sol 
= cvode_solve(f, tspan, y0, events = evfun)|


in the latter call information about events is recovered in 
|sol.te,sol.ye,sol.ie|.


  * support of complex solution with detection of complexity in |y0|
or |f(t0,y0)|, e.g.

|function out = crhs(t,y) out = 10*exp(2*%i*%pi*t)*y; end [t,y] = 
cvode_solve(crhs, [0,5], 1) plot(t,real(y),t,imag(y))|


  * Support of a callback function called after each successfull step,
giving access to current solver statistics and allowing to stop
integration (e.g. by a "stop" button on a GUI), e.g.

|function stop = scicallback(t,y,flag,stats) stop = %f if flag == 
"step" mprintf("%s : hlast=%g\n", flag, stats.hlast) end end [t,y] = 
cvode_solve(f, tspan, y0, intcb=scicallback);|


  * support of an arbitrary number of dimensions of ode state


Performance

|cvode_solve()| is roughly two times faster than |ode()| for both 
fixed methods (Ad

Re: [Scilab-users] Getting the variable name used for a function input argument

2021-12-06 Thread Stéphane Mottelet

Hello Jens.

Nothing sophisticated here.

print myVar

is considered by the parser as

print("myVar")

See "Calling function"/item 4.

https://help.scilab.org/docs/6.1.1/en_US/functions.html

S.

Le 06/12/2021 à 10:40, Jens Simon Strom a écrit :

Hi Samuel,
Your solution is quite sophisticated. To me it was confusing to call a 
function without the input being bracketed. And on top of this, that a 
variable of type /constant/ is accepted as a /string/ within the 
function. Scilab seems to be more flexible than I would dare to 
imagine before now. However it works fine. Thanks again.


Regards
Jens
- 



Am 05.12.2021 um 20:02 schrieb Samuel Gougeon:

Le 04/12/2021 à 20:59, Samuel Gougeon a écrit :


So, /unless you need to know the name *inside* printc() for some 
unsaid purpose/, what would be the difference between in one hand


[name, mag, arg] = printc(myvar, "myvar")

and on the other hand

name = "myvar";
[mag, arg] = printc(myvar)

?



So, after your mail in private, you actually needs the variable's 
name inside the function.
Then, the easiest way to do what you expect could be to pass only the 
name:


function  printc(name)
   execstr("c = "+name)
   //Drucken einer komplexen Zahl mit Betrag und Winkel/°
   mprintf([name+': %f /_%7.2f°\n'],abs(c),  180/%pi*atan(imag(c),real(c)))
endfunction
--> myVar = 3 - 2*%i
myVar =
3. - 2.i

--> printc myVar
myVar: 3.605551 /_ -33.69°

Regards
Samuel


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/v3?i=SHV0Y1JZQjNyckJFa3dUQiblhF5YcUqtiWCaK_ri0kk&r=T0hnMlUyVEgwNmlmdHc1NTiGTQVgIg9a1MYkHb_GeosOO-jCQ_NnAucfYCLceioT&f=V3p0eFlQOUZ4czh2enpJS67gBdM2WVME2HqVPefA4FpGU6HeKhrEzrhzAHs-d_Wu&u=http%3A//lists.scilab.org/mailman/listinfo/users&k=ZVd0


--
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


  1   2   3   4   5   6   7   >