From delphine-emilie.martin at edf.fr Wed Dec 1 14:49:15 2010 From: delphine-emilie.martin at edf.fr (Delphine-Emilie MARTIN) Date: Wed, 1 Dec 2010 14:49:15 +0100 Subject: [scilab-Users] optimization : general question Message-ID: Accus? de r?ception Votre document : RE: [scilab-Users] optimization : general question a ?t? re?u par : delphine-emilie.martin at edf.fr le : 01/12/2010 14:49:15 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Thu Dec 2 09:44:41 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Thu, 2 Dec 2010 09:44:41 +0100 Subject: fminsearch function question Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFEE@exchsrv.AUXITROL1> dear all, I'm using either fminsearch function of nmplot one following the scheme hereafter : level 1- call of the fminsearch function level 2 - cost function level 3 - call of sub-function As you can see herebellow I would like to link constant parameters from the level 1 to the level 3 (i.e. nu1 and nu2 values) => how can I do this ? I had a look in optimset/optimget function but It not seems to be the write ones ! I hope it's clear enough Regards Paul ### level 1 optimized_parameters = fminsearch(optimization,initial_parameters); poisson = 0.495; mu1 = 0.0438055; alpha1 = 2.86504; mu2 = 0.061838; alpha2 = 1.34878; nu1 = poisson; nu2 = poisson; initial_parameters = [mu1 alpha1 mu2 alpha2]; ### level 2 function SSE = optimization(x) nu1 = 0.495; nu2 = 0.495; ADDITIONAL = [nu1 nu2]; printf("#########################################################\n"); printf(" * mu1 = %g\n",x(1)); printf(" * alpha1 = %g\n",x(2)); printf(" * mu2 = %g\n",x(3)); printf(" * alpha2 = %g\n",x(4)); printf(" * nu1 = %g\n",nu1); printf(" * nu2 = %g\n",nu2); ### level 3 status = write_ccx_file(PATH_DATA,INPUT_FILE_NAME,x,ADDITIONAL); -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.laurant at gmail.com Fri Dec 3 08:05:39 2010 From: yann.laurant at gmail.com (Yann Laurant) Date: Fri, 3 Dec 2010 08:05:39 +0100 Subject: Multi-task and dos('start /b prog') Message-ID: Hello, I'm trying to call a program from Scilab (esay with the dos function), but as this program is very long, I want to continue to use scilab during its execution. The program is launch from an interface, so I don't want to launch another scilab session. With MS-DOS, the command "start /b" seems to be able to launch a command line in background (just as the & in unix system). But if I'm using this command : dos('start /b command_line'), I am able to continue to use scilab, but just a few second because scilab is becoming unstable and close after a while. Do you know if there is other solution for having some multi task in Scilab ? Thanks for your answer. Yann LAURANT -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Fri Dec 3 10:58:43 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 03 Dec 2010 10:58:43 +0100 Subject: [scilab-Users] optimization : general question In-Reply-To: <000001cb90ce$a2704300$e750c900$@carrico@free.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFDD@exchsrv.AUXITROL1> <4CF4F56B.2040000@scilab.org> <000001cb90ce$a2704300$e750c900$@carrico@free.fr> Message-ID: <4CF8BF53.2000205@scilab.org> Hi, Thanks for your report : you just found a bug. In the tests which were done, the objective function was always defined, whatever x. I just created a bug report for this: http://bugzilla.scilab.org/show_bug.cgi?id=8546 As a workaround, we may use the following method. * Use the -simplex0method = "randbounds" initial simplex so that the initial simplex is inside the bounds, by design. * Penalize the objective function, so that the objective function is always defined, but equal to infinity if the point is outside the bounds. Notice how the additionnal input argument data is used to pass the bounds to the function. function [ f , index , data ] = myquad ( x , index , data ) mprintf("index=%d, x=[%.2f %.2f]\n",index,x(1),x(2)) xmin = data(1)' xmax = data(2)' if ( or(x < xmin) | or(x > xmax) ) then f = %inf else f = x(1)^2 + x(2)^2 end endfunction rand("seed" , 0) x0 = [1.2 1.9].'; xmin = [1 1]; xmax = [2 2]; data = list(xmin,xmax); nm = nmplot_new (); nm = nmplot_configure(nm,"-numberofvariables",2); nm = nmplot_configure(nm,"-function",myquad); nm = nmplot_configure(nm,"-costfargument",data); nm = nmplot_configure(nm,"-x0",x0); nm = nmplot_configure(nm,"-method","box"); nm = nmplot_configure(nm,"-boundsmin",xmin); nm = nmplot_configure(nm,"-boundsmax",xmax); nm = nmplot_configure(nm,"-simplex0method","randbounds"); nm = nmplot_search(nm); xcomp = nmplot_get(nm,"-xopt") // Should be [1 1] fcomp = nmplot_get(nm,"-fopt") // Should be 2 nm = nmplot_destroy(nm); But this is a workaround: as the algorithm is designed to manage bounds, defining the function outside the bounds is unacceptable. A complete update of neldermead/fminsearch is planned in a future release: I will fix these issues there. Best regards, Micha?l Baudin PS By the way, I discovered a similar issue for the management of nonlinear constraints: http://bugzilla.scilab.org/show_bug.cgi?id=8547 As I was using the function, I discovered various minor flaws: http://bugzilla.scilab.org/show_bug.cgi?id=8542 http://bugzilla.scilab.org/show_bug.cgi?id=8543 http://bugzilla.scilab.org/show_bug.cgi?id=8544 http://bugzilla.scilab.org/show_bug.cgi?id=8545 http://bugzilla.scilab.org/show_bug.cgi?id=8549 Le 30/11/2010 21:39, Paul CARRICO a ?crit : > > Micha?l, > > The calculations run with the code herebelllow ... nevertheless the > parameters do not remain in the range defined by the brackets nay it > leads to FEA failure ! > > I suppose consequently they are too far from the optimized value isn't > it (or there's a problem in my code) ?could you confirm ? > > Regards > > Paul > > ################################################################## > > initial_parameters = [C10 C01]'; // BE CAREFUL : [C10 C01]' = > transposed matrix > > nm = nmplot_new (); > > nm = nmplot_configure(nm,"-numberofvariables",2); // Number of > variables => C10 & C01 > > nm = nmplot_configure(nm,"-function",optimization2); > > nm = nmplot_configure(nm,"-x0",initial_parameters); // BE CAREFUL : > [C10 C01]' = transposed matrix > > nm = nmplot_configure(nm,"-method","box"); // box => > brackets are taken into account > > nm = nmplot_configure(nm,"-boundsmin",[0 0]); > > nm = nmplot_configure(nm,"-boundsmax",[1 1]); > > [nm,SSE] = nmplot_function(nm,initial_parameters); > > nm = nmplot_configure(nm,"-simplexfn","history.simplex.dat"); > > ################################################################# > > The inital value of the C10 parameters are : > > - C10 = 0.0623844 > > - C01 = 0.01 > > ######################################################### > > * C10 = 0.0623844 > > * C01 = 0.01 > > * SSE = 0.640828 > > Optimization in progress (please wait) ... > > ######################################################### > > * C10 = 0.0623844 > > * C01 = 0.01 > > -->mode(0); > > -->mode(0); > > * SSE = 0.640828 > > ######################################################### > > * C10 = 0.0623844 > > * C01 = 0.01 > > -->mode(0); > > -->mode(0); > > * SSE = 0.640828 > > ######################################################### > > * C10 = 0.0623844 > > * C01 = 0.01 > > * SSE = 0.640828 > > ######################################################### > > * C10 = 1.06238 > > * C01 = 0.01 > > * SSE = 3097.29 > > ######################################################### > > * C10 = 0.0623844 > > * C01 = 1.01 > > * SSE = 1390.08 > > ######################################################### > > * C10 = -1.23762 > > * C01 = 1.16 > > * SSE = 0.218768 > > ######################################################### > > * C10 = 1e-006 > > * C01 = 1.16 > > * SSE = 1525.15 > > ######################################################### > > * C10 = 0.143483 > > * C01 = -0.335 > > * SSE = 42.4482 > > ######################################################### > > * C10 = 0.143483 > > * C01 = 1e-006 > > * SSE = 23.5783 > > ######################################################### > > * C10 = 0.155648 > > * C01 = -1.3015 > > * SSE = 1807.92 > > ######################################################### > > * C10 = 0.129291 > > * C01 = -0.648249 > > * SSE = 356.971 > > ######################################################### > > * C10 = 0.129291 > > * C01 = 1e-006 > > * SSE = 16.6268 > > ######################################################### > > * C10 = 0.0338986 > > * C01 = 0.0114998 > > * SSE = 0.56774 > > ######################################################### > > * C10 = -0.0573523 > > * C01 = 0.0247235 > > * SSE = 18.4969 > > ######################################################### > > * C10 = -0.00460543 > > * C01 = 0.0177367 > > * SSE = 4.48301 > > ######################################################### > > * C10 = 1e-006 > > * C01 = 0.0177367 > > * SSE = 5.72026 > > ######################################################### > > * C10 = 0.110724 > > * C01 = 0.00166708 > > * SSE = 9.75208 > > ######################################################### > > * C10 = 0.0794328 > > * C01 = 0.0062085 > > * SSE = 2.50334 > > ######################################################### > > * C10 = 0.00746278 > > * C01 = 0.0166538 > > * SSE = 4.02474 > > ######################################################### > > * C10 = 0.0278021 > > * C01 = 0.0137018 > > * SSE = 1.00242 > > ######################################################### > > * C10 = 0.0745827 > > * C01 = 0.00691242 > > * SSE = 1.80759 > > ######################################################### > > * C10 = 0.0613621 > > * C01 = 0.00883117 > > * SSE = 0.494514 > > ######################################################### > > * C10 = 0.02845 > > * C01 = 0.0103807 > > * SSE = 1.18104 > > ######################################################### > > * C10 = 0.0380402 > > * C01 = 0.0102731 > > The .dat file is empty - The calculation stops > > !--error 4 > > Variable non d??finie: displacement_ > > at line 90 of function ccx_dat_file called by : > > at line 51 of function called by : > > at line 57 of function optimbase_function called by : > > at line 23 of function _boxlinesearch called by : > > at line 106 of function neldermead_box called by : > > at line 8 of function neldermead_algo called by : > > at line 15 of function neldermead_search called by : > > at line 5 of function nmplot_search called by : > > nm = nmplot_search(nm); // start > > at line 33 of exec file called by : > > exec('C:\ETUDE_CALCULIX\ccx_scilab\fitting_procedure2.sce', -1) > > -->exec('SCI/etc/scilab.quit','errcatch',-1);quit; > > *De :*Micha?l Baudin [mailto:michael.baudin at scilab.org] > > *Envoy? :* mardi 30 novembre 2010 14:00 > *? :* users at lists.scilab.org > *Cc :* Carrico, Paul > *Objet :* Re: [scilab-Users] optimization : general question > > Hi, > > There is no way to apply bounds to the parameters from the fminsearch > function. This is because the algorithm was mainly designed for > unconstrained optimization. Nevertheless, it is possible to apply them > with the lower level component that the fminsearch function uses, the > neldermead component. This is possible by projecting the parameters on > the bounds. This makes the simple degenerate on the bounds and, if not > far away from the optimum, let the simplex converge on the optimum. > > In order to find an example, please look, in Scilab v5.2.2, in the > demonstrations: > > ? > Scilab Demonstrations > Optimization and simulation > neldermead Box B > > This example is based on the problem B from the Box' paper. It is a > problem with 2 bounded parameters (see in attachment). > > In Scilab v5.3, I added some other examples. This includes a simple > problem with bounds and Rosenbrock's post office problem, an > optimization with 3 parameters and linear constraints (see in > attachement). The simplest problem is the following: > > function [ f , index ] = myquad ( x , index ) > f = x(1)^2 + x(2)^2 > endfunction > rand("seed" , 0) > x0 = [1.2 1.9].'; > nm = nmplot_new (); > nm = nmplot_configure(nm,"-numberofvariables",2); > nm = nmplot_configure(nm,"-function",myquad); > nm = nmplot_configure(nm,"-x0",x0); > nm = nmplot_configure(nm,"-method","box"); > nm = nmplot_configure(nm,"-boundsmin",[1 1]); > nm = nmplot_configure(nm,"-boundsmax",[2 2]); > nm = nmplot_search(nm); > xcomp = nmplot_get(nm,"-xopt") // Should be [1 1] > fcomp = nmplot_get(nm,"-fopt") // Should be 2 > nm = nmplot_destroy(nm); > > This example is not provided in the help of neldermead (see bug > #7164): I will fix this in the next release. > > Best regards, > > Micha?l > > PS > http://bugzilla.scilab.org/show_bug.cgi?id=7164 > > Le 30/11/2010 11:58, Carrico, Paul a ?crit : > > Dear all, > > The purpose of this mail is to benefit from user feedback of Scilab > community ... even if my experience on optimization item is currently > rather limited, this study will significantly increase my own expertise. > > I'm currently working in linking a FEA code with Scilab to fit > parameters from tests (see attached fig - in red the steps realized in > Scilab ) : > > - On a single parameter I used with success the *_fminsearch_* > function (based on the simplex theory), > > - with 2 parameters, the calculated ran ... nevertheless the final > result is physically non applicable (need to bracket one of the values > for examples) > > Does somebody be experienced on such item ? what is the best Scilab > function ? Some advices in reading ? > > Thanks in advance > > Regards > > Paul > > imap://michael%2Ebaudin at imap.scilab.org:993/fetch%3EUID%3E.INBOX.Users%3E3068?header=quotebody&part=1.2&filename=image001.jpg > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > > > > > > -- > Micha?l Baudin > Ing?nieur de d?veloppement > michael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 68092 bytes Desc: not available URL: From michael.baudin at scilab.org Fri Dec 3 11:51:22 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 03 Dec 2010 11:51:22 +0100 Subject: [scilab-Users] fminsearch function question In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFEE@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFEE@exchsrv.AUXITROL1> Message-ID: <4CF8CBAA.1020705@scilab.org> Hi, Thank you for asking this question. As a workaround, you may use a global variable: // An example NOT to follow function y=banana(x) global a y = 100*(x(2)-x(1)^2)^2 + (a-x(1))^2 endfunction a = sqrt(2); global a; x = fminsearch ( banana , [-1.2 1] ) expected = [a a^2]; As this should be described in the help page of fminsearch, I created the bug report : http://bugzilla.scilab.org/show_bug.cgi?id=8552 Another solution is to use the -costfargument option in neldermead. But global variables can lead to issues, so that it is really a temporary workaround. A better solution is to provide the extra parameters as a list. This is not in the Matlab/fminsearch (but Matlab has anonymous functions to handle this). I created the following bug report to fix this issue in fminsearch : http://bugzilla.scilab.org/show_bug.cgi?id=8553 Best regards, Micha?l Baudin Le 02/12/2010 09:44, Carrico, Paul a ?crit : > dear all, > I'm using either fminsearch function of nmplot one following the > scheme hereafter : > level 1- call of the fminsearch function > level 2 - cost function > level 3 - call of sub-function > As you can see herebellow I would like to link constant parameters > from the level 1 to the level 3 (i.e. nu1 and nu2 values) => how can I > do this ? > I had a look in optimset/optimget function but It not seems to be the > write ones ! > I hope it's clear enough > Regards > Paul > ### level 1 > optimized_parameters = fminsearch(optimization,initial_parameters); > poisson = 0.495; > mu1 = 0.0438055; > alpha1 = 2.86504; > mu2 = 0.061838; > alpha2 = 1.34878; > nu1 = poisson; > nu2 = poisson; > initial_parameters = [mu1 alpha1 mu2 alpha2]; > ### level 2 > function SSE = optimization(x) > nu1 = 0.495; > nu2 = 0.495; > ADDITIONAL = [nu1 nu2]; > printf("#########################################################\n"); > printf(" * mu1 = %g\n",x(1)); > printf(" * alpha1 = %g\n",x(2)); > printf(" * mu2 = %g\n",x(3)); > printf(" * alpha2 = %g\n",x(4)); > printf(" * nu1 = %g\n",nu1); > printf(" * nu2 = %g\n",nu2); > ### level 3 > status = write_ccx_file(PATH_DATA,INPUT_FILE_NAME,x,ADDITIONAL); > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Dec 3 11:59:20 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 3 Dec 2010 11:59:20 +0100 Subject: basch file translation Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFF6@exchsrv.AUXITROL1> Dear all I trying to translate a basch file under Windows (i.e. cmd file) in Scilab language ... the purpose is finally to use Scilab power in optimization field ... A basic question for some of you but I do not find the solution .... how can I translate SET cms keyword in Scilab one ? (cmd keyword) Scialb equivalent variable SET CMD_VARIABLE = 3000 ? Nota : to avoid a lot of further questions, is there any doc ? Thanks Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreucci at dmmm.uniroma1.it Sat Dec 4 17:51:25 2010 From: andreucci at dmmm.uniroma1.it (Daniele Andreucci) Date: Sat, 04 Dec 2010 17:51:25 +0100 Subject: generators for grand Message-ID: <4CFA718D.4010401@dmmm.uniroma1.it> Hi! I have problems with using the procedure "grand" in my Linux Debian Squeeze-amd64 installation. These problem do not show up in a Debian Squeeze i386 (that is 32 bit) system (in a different PC). Essentially, grand does not seem to work with the generator "fsultra", while it works with "mt" (I did not test well the other generators, but a one-shot trial seems to indicate that kiss and urand are also not working, while clcg2/4 do work). I report below what I obtain with Scilab 5.2.2 (standard Debian package), but the same happens with a just installed Scilab 5.3.0-beta5 (64 bit), anyway. I can't find any relevant help searching the list for "grand"; am I mistaken on the use of generators? Thanks a lot for any help. Daniele **** Scilab output: -->grand("setgen","mt") ans = mt -->grand(1,1,"exp",1) ans = 0.6700172 -->grand(1,"mul",10,[0.2;0.5]) ans = 1. 3. 6. -->grand("setgen","fsultra") ans = fsultra -->grand(1,1,"exp",1) ans = 31399633. -->grand("getsd") ans = 20. 1. 9.915D+17 1.845D+19 1.845D+19 4.130D+09 1.845D+19 1.845D+19 1.845D+19 1.845D+19 2.026D+09 6.134D+09 1.845D+19 3.569D+09 2.550D+09 2.170D+09 [Continue display? n (no) to stop, any other key to continue] ->grand("setsd",123456,987654) -->grand("getsd") ans = 0. 0. 2.513D+18 1.845D+19 4.782D+08 3.907D+08 1.845D+19 3.132D+08 1.925D+09 1.845D+19 1.845D+19 1.663D+08 2.602D+09 1.845D+19 1.845D+19 1.845D+19 -->grand(1,1,"exp",1) ans = 40105477. -->grand(1,"mul",10,[0.2;0.5]) [Scilab is stuck, and I have to xkill it] ***** end of Scilab output -- [ Daniele Andreucci [ Dip. di Scienze di Base e Applicate per l'Ingegneria [ via A. Scarpa 16 00161 Roma, Italy [ tel. +39 0649766785 [ fax +39 064957647 [ e-mail: andreucci at dmmm.uniroma1.it [ http://www.dmmm.uniroma1.it/~andreucci/ [ gpg pub key id: D3ADC732 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From michael.baudin at scilab.org Sun Dec 5 11:29:37 2010 From: michael.baudin at scilab.org (michael.baudin at scilab.org) Date: Sun, 05 Dec 2010 11:29:37 +0100 Subject: [scilab-Users] generators for grand In-Reply-To: <4CFA718D.4010401@dmmm.uniroma1.it> References: <4CFA718D.4010401@dmmm.uniroma1.it> Message-ID: Hi, Your report is that, on your machine: * mt, urand, kiss : work * fsultra, clcg2, clcg4 : fail It may happen that there is a bad portability of the source code of these generators on 64 bits systems. I am not exactly sure of what you are testing, because you mix the set and get of the seed, with various commands to draw numbers from the exponential law and the multinomial distribution: that's a total of 10 different functions... What we need to help you is the simplest sequence of statements which fails. For example, on my Scilab (Windows), the following script entirely pass: for rngen = [ "mt", "kiss", "clcg2", "clcg4", "urand", "fsultra" ] mprintf("rngen:%s\n",rngen); grand ( "setgen" , rngen ); r = grand(1,1,"exp",1); m = grand(1,"mul",10,[0.2;0.5]); end Does it work on your machine ? Does the following work (after a restart of Scilab): grand ( "setgen" , "fsultra" ); m = grand(1,"mul",10,[0.2;0.5]); Best regards, Micha?l Baudin On Sat, 04 Dec 2010 17:51:25 +0100, Daniele Andreucci wrote: > Hi! > > I have problems with using the procedure "grand" in my Linux Debian > Squeeze-amd64 installation. These problem do not show up in a Debian > Squeeze i386 (that is 32 bit) system (in a different PC). > > Essentially, grand does not seem to work with the generator > "fsultra", > while it works with "mt" (I did not test well the other generators, > but > a one-shot trial seems to indicate that kiss and urand are also not > working, while clcg2/4 do work). > > I report below what I obtain with Scilab 5.2.2 (standard Debian > package), but the same happens with a just installed Scilab > 5.3.0-beta5 > (64 bit), anyway. > > I can't find any relevant help searching the list for "grand"; am I > mistaken on the use of generators? > > Thanks a lot for any help. > > Daniele > > **** Scilab output: > > -->grand("setgen","mt") > ans = > > mt > > -->grand(1,1,"exp",1) > ans = > > 0.6700172 > > -->grand(1,"mul",10,[0.2;0.5]) > ans = > > 1. > 3. > 6. > > -->grand("setgen","fsultra") > ans = > > fsultra > > -->grand(1,1,"exp",1) > ans = > > 31399633. > > > -->grand("getsd") > ans = > > 20. > 1. > 9.915D+17 > 1.845D+19 > 1.845D+19 > 4.130D+09 > 1.845D+19 > 1.845D+19 > 1.845D+19 > 1.845D+19 > 2.026D+09 > 6.134D+09 > 1.845D+19 > 3.569D+09 > 2.550D+09 > 2.170D+09 > [Continue display? n (no) to stop, any other key to continue] > > ->grand("setsd",123456,987654) > > -->grand("getsd") > ans = > > 0. > 0. > 2.513D+18 > 1.845D+19 > 4.782D+08 > 3.907D+08 > 1.845D+19 > 3.132D+08 > 1.925D+09 > 1.845D+19 > 1.845D+19 > 1.663D+08 > 2.602D+09 > 1.845D+19 > 1.845D+19 > 1.845D+19 > > -->grand(1,1,"exp",1) > ans = > > 40105477. > > > -->grand(1,"mul",10,[0.2;0.5]) > [Scilab is stuck, and I have to xkill it] > > ***** end of Scilab output From michael.baudin at scilab.org Sun Dec 5 11:47:03 2010 From: michael.baudin at scilab.org (michael.baudin at scilab.org) Date: Sun, 05 Dec 2010 11:47:03 +0100 Subject: [scilab-Users] generators for grand In-Reply-To: References: <4CFA718D.4010401@dmmm.uniroma1.it> Message-ID: The fsultra.c source code is there : http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/randlib/src/c/fsultra.c;h=9f4ee42ee889bab842f4c17919e01a47bf5af12a;hb=HEAD Could it be a portability issue for "unsigned long" or "long" integers on 64 bits machines? I'll test this tomorrow. Best regards, Micha?l Baudin PS This is clcg2 / clcg4 : http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/randlib/src/c/clcg2.c;h=2effae97e31ad57364d13353ad767cd706257566;hb=HEAD http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/randlib/src/c/clcg4.c;h=cbd8d1623053985481de546a59652e6b94f96fe5;hb=HEAD On Sun, 05 Dec 2010 11:29:37 +0100, wrote: > Hi, > > Your report is that, on your machine: > * mt, urand, kiss : work > * fsultra, clcg2, clcg4 : fail > It may happen that there is a bad portability of the source code of > these generators on 64 bits systems. > > I am not exactly sure of what you are testing, because you mix the > set and get of the seed, with various commands to draw numbers from > the exponential law and the multinomial distribution: that's a total > of 10 different functions... What we need to help you is the simplest > sequence of statements which fails. > > For example, on my Scilab (Windows), the following script entirely > pass: > > for rngen = [ "mt", "kiss", "clcg2", "clcg4", "urand", "fsultra" ] > mprintf("rngen:%s\n",rngen); > grand ( "setgen" , rngen ); > r = grand(1,1,"exp",1); > m = grand(1,"mul",10,[0.2;0.5]); > end > > Does it work on your machine ? > Does the following work (after a restart of Scilab): > > grand ( "setgen" , "fsultra" ); > m = grand(1,"mul",10,[0.2;0.5]); > > Best regards, > > Micha?l Baudin > > > > On Sat, 04 Dec 2010 17:51:25 +0100, Daniele Andreucci > wrote: >> Hi! >> >> I have problems with using the procedure "grand" in my Linux Debian >> Squeeze-amd64 installation. These problem do not show up in a Debian >> Squeeze i386 (that is 32 bit) system (in a different PC). >> >> Essentially, grand does not seem to work with the generator >> "fsultra", >> while it works with "mt" (I did not test well the other generators, >> but >> a one-shot trial seems to indicate that kiss and urand are also not >> working, while clcg2/4 do work). >> >> I report below what I obtain with Scilab 5.2.2 (standard Debian >> package), but the same happens with a just installed Scilab >> 5.3.0-beta5 >> (64 bit), anyway. >> >> I can't find any relevant help searching the list for "grand"; am I >> mistaken on the use of generators? >> >> Thanks a lot for any help. >> >> Daniele >> >> **** Scilab output: >> >> -->grand("setgen","mt") >> ans = >> >> mt >> >> -->grand(1,1,"exp",1) >> ans = >> >> 0.6700172 >> >> -->grand(1,"mul",10,[0.2;0.5]) >> ans = >> >> 1. >> 3. >> 6. >> >> -->grand("setgen","fsultra") >> ans = >> >> fsultra >> >> -->grand(1,1,"exp",1) >> ans = >> >> 31399633. >> >> >> -->grand("getsd") >> ans = >> >> 20. >> 1. >> 9.915D+17 >> 1.845D+19 >> 1.845D+19 >> 4.130D+09 >> 1.845D+19 >> 1.845D+19 >> 1.845D+19 >> 1.845D+19 >> 2.026D+09 >> 6.134D+09 >> 1.845D+19 >> 3.569D+09 >> 2.550D+09 >> 2.170D+09 >> [Continue display? n (no) to stop, any other key to continue] >> >> ->grand("setsd",123456,987654) >> >> -->grand("getsd") >> ans = >> >> 0. >> 0. >> 2.513D+18 >> 1.845D+19 >> 4.782D+08 >> 3.907D+08 >> 1.845D+19 >> 3.132D+08 >> 1.925D+09 >> 1.845D+19 >> 1.845D+19 >> 1.663D+08 >> 2.602D+09 >> 1.845D+19 >> 1.845D+19 >> 1.845D+19 >> >> -->grand(1,1,"exp",1) >> ans = >> >> 40105477. >> >> >> -->grand(1,"mul",10,[0.2;0.5]) >> [Scilab is stuck, and I have to xkill it] >> >> ***** end of Scilab output From mathieu.dubois at limsi.fr Sun Dec 5 18:31:01 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Sun, 05 Dec 2010 18:31:01 +0100 Subject: [scilab-Users] basch file translation In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFF6@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFF6@exchsrv.AUXITROL1> Message-ID: <4CFBCC55.3090502@limsi.fr> Hello Paul, As far as I understand you want to use Scilab to launch some external programs which rely on environment variables, right? I don't know windows command line but if I understand correctly "SET CMD_VARIABLE = 3000" is used to set an environment variable. In this case you might use setenv: setenv("CMD_VARIABLE", "3000") HTH, Mathieu P.S.: I think you are talking about "batch file"... Le 03/12/2010 11:59, Carrico, Paul a ?crit : > Dear all > I trying to translate a basch file under Windows (i.e. cmd file) in > Scilab language ... the purpose is finally to use Scilab power in > optimization field ... > A basic question for some of you but I do not find the solution .... how > can I translate SET cms keyword in Scilab one ? > (cmd keyword) Scialb equivalent variable > SET CMD_VARIABLE = 3000 ? > Nota : to avoid a lot of further questions, is there any doc ? > Thanks > Paul > > -------------------------------------------------------------------------------- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > From paul.carrico at free.fr Sun Dec 5 19:03:22 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Sun, 5 Dec 2010 19:03:22 +0100 Subject: [scilab-Users] basch file translation In-Reply-To: <4CFBCC55.3090502@limsi.fr> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498AFF6@exchsrv.AUXITROL1> <4CFBCC55.3090502@limsi.fr> Message-ID: <001801cb94a6$b52cb880$1f862980$@carrico@free.fr> Dear Mathieu, You're right and I'll test it tomorrow morning on my working station ... Thanks for your help Regards Paul -----Message d'origine----- De?: Mathieu Dubois [mailto:mathieu.dubois at limsi.fr] Envoy??: dimanche 5 d?cembre 2010 18:31 ??: users at lists.scilab.org Objet?: Re: [scilab-Users] basch file translation Hello Paul, As far as I understand you want to use Scilab to launch some external programs which rely on environment variables, right? I don't know windows command line but if I understand correctly "SET CMD_VARIABLE = 3000" is used to set an environment variable. In this case you might use setenv: setenv("CMD_VARIABLE", "3000") HTH, Mathieu P.S.: I think you are talking about "batch file"... Le 03/12/2010 11:59, Carrico, Paul a ?crit : > Dear all > I trying to translate a basch file under Windows (i.e. cmd file) in > Scilab language ... the purpose is finally to use Scilab power in > optimization field ... > A basic question for some of you but I do not find the solution .... how > can I translate SET cms keyword in Scilab one ? > (cmd keyword) Scialb equivalent variable > SET CMD_VARIABLE = 3000 ? > Nota : to avoid a lot of further questions, is there any doc ? > Thanks > Paul > > ---------------------------------------------------------------------------- ---- > > > Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. > > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. > From andreucci at dmmm.uniroma1.it Sun Dec 5 21:07:52 2010 From: andreucci at dmmm.uniroma1.it (Daniele Andreucci) Date: Sun, 05 Dec 2010 21:07:52 +0100 Subject: [scilab-Users] generators for grand In-Reply-To: References: <4CFA718D.4010401@dmmm.uniroma1.it> Message-ID: <4CFBF118.1060002@dmmm.uniroma1.it> michael.baudin at scilab.org wrote on 12/05/10 11:29: > > Hi, > > Your report is that, on your machine: > * mt, urand, kiss : work > * fsultra, clcg2, clcg4 : fail > It may happen that there is a bad portability of the source code of > these generators on 64 bits systems. > Actually, * mt, clcg2, clcg4: work * fsultra, kiss, urand: fail as confirmed by running your script: > > for rngen = [ "mt", "kiss", "clcg2", "clcg4", "urand", "fsultra" ] > mprintf("rngen:%s\n",rngen); > grand ( "setgen" , rngen ); > r = grand(1,1,"exp",1); > m = grand(1,"mul",10,[0.2;0.5]); > end > I ran it by removing the three generators "kiss", "urand", "fsultra" from the list rngen, and everything worked. If I add one of the three to the list, Scilab gets stuck: I mean, when the cycle arrives at the failing generator, it outputs the generator name, and then the computation never ends, the Scilab window menu commands (like Quit) do not work, and I need stop the process by means of the Linux kill command. The instruction actually causing the freeze seems to be the one calling the "mul" distribution. Indeed, the instruction > r = grand(1,1,"exp",1); is carried out anyway, even with "kiss", "urand", "fsultra". But its results are suspect (I think): the following is the output of a modification of the script above, cycling 1000 times for each given generator, and averaging the variable r: *** Scilab script: for rngen = [ "mt", "clcg2", "clcg4" , "kiss", "fsultra", "urand" ] mprintf("rngen:%s\n",rngen); grand ( "setgen" , rngen ); r=grand(1,1,"exp",1); for i=1:999 do r = grand(1,1,"exp",1) + r; end r=r/1000 // m = grand(1,"mul",10,[0.2;0.5]) end *** *** Scilab output: -->exec("test2.sci"); rngen:mt r = 0.9827961 rngen:clcg2 r = 1.0035369 rngen:clcg4 r = 1.0353063 rngen:kiss r = 30419447. rngen:fsultra r = 31473190. rngen:urand r = 63800551. *** Moreover, about the other hint: > Does the following work (after a restart of Scilab): > > grand ( "setgen" , "fsultra" ); > m = grand(1,"mul",10,[0.2;0.5]); it does not work, Scilab freezes as explained above. I performed the trials with Scilab 5.3 beta5 Linux 64 bit, but sporadic attempts confirmed the same behaviour for Scilab 5.2.2 (standard Debian Squeeze amd64 package). Thanks a lot for your help, and for the pointers to the code. Best regards Daniele Andreucci -- [ Daniele Andreucci [ Dip. di Scienze di Base e Applicate per l'Ingegneria [ via A. Scarpa 16 00161 Roma, Italy [ tel. +39 0649766785 [ fax +39 064957647 [ e-mail: andreucci at dmmm.uniroma1.it [ http://www.dmmm.uniroma1.it/~andreucci/ [ gpg pub key id: D3ADC732 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From mathieu.dubois at limsi.fr Sun Dec 5 22:00:55 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Sun, 05 Dec 2010 22:00:55 +0100 Subject: [scilab-Users] Multi-task and dos('start /b prog') In-Reply-To: References: Message-ID: <4CFBFD87.2030306@limsi.fr> Hello, As Alan Told you on the equalis forum it's hard to do what you want to do... Does the output of your program depends on previous Scilab instructions (for instance do you compute parameters in Scilab that you pass to your program)? If no, you can launch your program one for all, put the result in a file and read it from Scilab. If your are doing something more complex, you can try to use the parallel_run in the upcoming 5.3 (I have never used it). HTH, Mathieu Le 03/12/2010 08:05, Yann Laurant a ?crit : > Hello, > > I'm trying to call a program from Scilab (esay with the dos function), > but as this program is very long, I want to continue to use scilab > during its execution. > The program is launch from an interface, so I don't want to launch > another scilab session. > With MS-DOS, the command "start /b" seems to be able to launch a command > line in background (just as the & in unix system). But if I'm using this > command : dos('start /b command_line'), I am able to continue to use > scilab, but just a few second because scilab is becoming unstable and > close after a while. > > Do you know if there is other solution for having some multi task in > Scilab ? > > Thanks for your answer. > > Yann LAURANT From michael.baudin at scilab.org Mon Dec 6 08:26:10 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 06 Dec 2010 08:26:10 +0100 Subject: [scilab-Users] generators for grand In-Reply-To: <4CFBF118.1060002@dmmm.uniroma1.it> References: <4CFA718D.4010401@dmmm.uniroma1.it> <4CFBF118.1060002@dmmm.uniroma1.it> Message-ID: <4CFC9012.5050703@scilab.org> Hi, I was able to reproduce the bug: http://bugzilla.scilab.org/show_bug.cgi?id=8560 Best regards, Micha?l Baudin Le 05/12/2010 21:07, Daniele Andreucci a ?crit : > michael.baudin at scilab.org wrote on 12/05/10 11:29: >> Hi, >> >> Your report is that, on your machine: >> * mt, urand, kiss : work >> * fsultra, clcg2, clcg4 : fail >> It may happen that there is a bad portability of the source code of >> these generators on 64 bits systems. >> > Actually, > > * mt, clcg2, clcg4: work > * fsultra, kiss, urand: fail > > as confirmed by running your script: >> for rngen = [ "mt", "kiss", "clcg2", "clcg4", "urand", "fsultra" ] >> mprintf("rngen:%s\n",rngen); >> grand ( "setgen" , rngen ); >> r = grand(1,1,"exp",1); >> m = grand(1,"mul",10,[0.2;0.5]); >> end >> > I ran it by removing the three generators "kiss", "urand", "fsultra" > from the list rngen, and everything worked. If I add one of the three to > the list, Scilab gets stuck: I mean, when the cycle arrives at the > failing generator, it outputs the generator name, and then the > computation never ends, the Scilab window menu commands (like Quit) do > not work, and I need stop the process by means of the Linux kill command. > > The instruction actually causing the freeze seems to be the one calling > the "mul" distribution. Indeed, the instruction > >> r = grand(1,1,"exp",1); > is carried out anyway, even with "kiss", "urand", "fsultra". But its > results are suspect (I think): the following is the output of a > modification of the script above, cycling 1000 times for each given > generator, and averaging the variable r: > > *** Scilab script: > for rngen = [ "mt", "clcg2", "clcg4" , "kiss", "fsultra", "urand" ] > mprintf("rngen:%s\n",rngen); > grand ( "setgen" , rngen ); > r=grand(1,1,"exp",1); > for i=1:999 do > r = grand(1,1,"exp",1) + r; > end > r=r/1000 > // m = grand(1,"mul",10,[0.2;0.5]) > end > *** > *** Scilab output: > -->exec("test2.sci"); > rngen:mt > r = > > 0.9827961 > rngen:clcg2 > r = > > 1.0035369 > rngen:clcg4 > r = > > 1.0353063 > rngen:kiss > r = > > 30419447. > rngen:fsultra > r = > > 31473190. > rngen:urand > r = > > 63800551. > *** > Moreover, about the other hint: >> Does the following work (after a restart of Scilab): >> >> grand ( "setgen" , "fsultra" ); >> m = grand(1,"mul",10,[0.2;0.5]); > it does not work, Scilab freezes as explained above. > > I performed the trials with Scilab 5.3 beta5 Linux 64 bit, but sporadic > attempts confirmed the same behaviour for Scilab 5.2.2 (standard Debian > Squeeze amd64 package). > > Thanks a lot for your help, and for the pointers to the code. > > Best regards > > Daniele Andreucci > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From Holger.Weiss at ubidyne.com Mon Dec 6 10:13:37 2010 From: Holger.Weiss at ubidyne.com (Holger Weiss) Date: Mon, 6 Dec 2010 10:13:37 +0100 Subject: Question about max. vector length and scilab limits Message-ID: <29DC34A6B43468409F5A371CFE34E849019577B3@ex01.ads.ubidyne.de> Hi, I have Problems in Scilab with long vectors. the problem does not exist in Matlab, but I need this working. I want to switch completely to scilab. Problem: -------- I want to execute the attached file and get a vector with around 17000 points. But I get an error: "Inconsistent row/column dimensions" What is the max. vector length for a vector in scilab ? What are the limitation for the scilab environment (like: max. number, max. stacksize, max files open, max. size of number, max. length of vector) ? Is there a documentaiton available? I searched the web and the help from scilab for the limits of the scilab environment, but with NO success. Thanks for your help in advance! With kind regards / Mit freundlichen Gr??en Holger Weiss Senior RF Design Engineer _______________________________ Ubidyne GmbH Lise-Meitner-Stra?e 14 D-89081 Ulm phone +49 731 88 00 71 31 fax +49 731 88 00 71 99 mail info at ubidyne.com web www.ubidyne.com Registered office: Ulm District court of Ulm: HRB 5295 Managing Directors: Dipl. Ing. Mike Levis Dr. Ing. Lothar Schmidt -------------- next part -------------- A non-text attachment was scrubbed... Name: gdt_scratch2.m Type: application/octet-stream Size: 55679 bytes Desc: gdt_scratch2.m URL: From stephane.mottelet at utc.fr Mon Dec 6 10:39:06 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Mon, 06 Dec 2010 10:39:06 +0100 Subject: [scilab-Users] Question about max. vector length and scilab limits In-Reply-To: <29DC34A6B43468409F5A371CFE34E849019577B3@ex01.ads.ubidyne.de> References: <29DC34A6B43468409F5A371CFE34E849019577B3@ex01.ads.ubidyne.de> Message-ID: <4CFCAF3A.4060900@utc.fr> Le 06/12/2010 10:13, Holger Weiss a ?crit : > Hi, > I have Problems in Scilab with long vectors. > the problem does not exist in Matlab, but I need this working. I want to switch completely to scilab. > > Problem: > -------- > I want to execute the attached file and get a vector with around 17000 points. > But I get an error: "Inconsistent row/column dimensions" Hi, this exact error message : -->iVector = [... !--error 6 "Inconsistent row/column dimensions" at line 2 of exec file called by : exec gdt_scratch2.m is quite strange since your file has exactly one line (as seen in vi). Seems like Scilab's parser inserts a carriage return. Seems to me that it is a bug. S. > > What is the max. vector length for a vector in scilab ? > What are the limitation for the scilab environment (like: max. number, max. stacksize, max files open, max. size of number, max. length of vector) ? > Is there a documentaiton available? > > I searched the web and the help from scilab for the limits of the scilab environment, but with NO success. > > > Thanks for your help in advance! > > With kind regards / Mit freundlichen Gr??en > > Holger Weiss > Senior RF Design Engineer > _______________________________ > > Ubidyne GmbH > Lise-Meitner-Stra?e 14 > D-89081 Ulm > > phone +49 731 88 00 71 31 > fax +49 731 88 00 71 99 > mail info at ubidyne.com > web www.ubidyne.com > > Registered office: Ulm > District court of Ulm: HRB 5295 > Managing Directors: > Dipl. Ing. Mike Levis > Dr. Ing. Lothar Schmidt From antoine.monmayrant at laas.fr Mon Dec 6 10:41:17 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 06 Dec 2010 10:41:17 +0100 Subject: [scilab-Users] Question about max. vector length and scilab limits In-Reply-To: <4CFCAF3A.4060900@utc.fr> References: <29DC34A6B43468409F5A371CFE34E849019577B3@ex01.ads.ubidyne.de> <4CFCAF3A.4060900@utc.fr> Message-ID: <4CFCAFBD.2040501@laas.fr> Le 06/12/2010 10:39, St?phane Mottelet a ?crit : > Le 06/12/2010 10:13, Holger Weiss a ?crit : >> Hi, >> I have Problems in Scilab with long vectors. >> the problem does not exist in Matlab, but I need this working. I want >> to switch completely to scilab. >> >> Problem: >> -------- >> I want to execute the attached file and get a vector with around >> 17000 points. >> But I get an error: "Inconsistent row/column dimensions" > > Hi, this exact error message : > > -->iVector = [... > !--error 6 > > "Inconsistent row/column dimensions" > > > at line 2 of exec file called by : > exec gdt_scratch2.m > > > is quite strange since your file has exactly one line (as seen in vi). > Seems like > Scilab's parser inserts a carriage return. Seems to me that it is a bug. > > > S. > >> >> What is the max. vector length for a vector in scilab ? >> What are the limitation for the scilab environment (like: max. >> number, max. stacksize, max files open, max. size of number, max. >> length of vector) ? >> Is there a documentaiton available? >> >> I searched the web and the help from scilab for the limits of the >> scilab environment, but with NO success. >> >> >> Thanks for your help in advance! >> >> With kind regards / Mit freundlichen Gr??en >> >> Holger Weiss >> Senior RF Design Engineer >> _______________________________ >> >> Ubidyne GmbH >> Lise-Meitner-Stra?e 14 >> D-89081 Ulm >> >> phone +49 731 88 00 71 31 >> fax +49 731 88 00 71 99 >> mail info at ubidyne.com >> web www.ubidyne.com >> >> Registered office: Ulm >> District court of Ulm: HRB 5295 >> Managing Directors: >> Dipl. Ing. Mike Levis >> Dr. Ing. Lothar Schmidt > On 5.3-beta5 I don't have the same error: -->exec("/home/amonmayr/gdt_scratch2.m") !--error 113 Cha?ne de caract?res trop longue. at line -4 of exec file called by : exec("gdt_scratch2.m") but like in your case, the reported line seems weird (-4???). Antoine From antonello.boverio at gmail.com Mon Dec 6 10:50:46 2010 From: antonello.boverio at gmail.com (Antonello Boverio) Date: Mon, 6 Dec 2010 10:50:46 +0100 Subject: error while installing XMLlab 1.75 in SCILAB 5.3beta5, on Win7 Professional, 64 bits Message-ID: I am trying to install XMLlab 1.75 in SCILAB 5.3beta5, running on Win7 Professional, 64 bits on a DELL Studio 15. I always get the following error message: atomsExtract: The extraction of the archive 'C:\Users\Anto\AppData\Roaming\Scilab\scilab-5.3.0-beta-5\atoms\xmllab\xmllab_1.75-2.bin.zip' has failed. However, the extration did succeed. I obtain supposedly correct contents in C:\Users\Anto\AppData\Roaming\Scilab\scilab-5.3.0-beta-5\atoms\xmllab\xmllab_1.75 I tried several variants (console, menu, unzipping myself in advance). No way. Other ATOMs do install successfully (I did not test all of them). I did not try earlier versions of XMLlab nor to install that one in older SCILAB versions. Any suggestion? Thanks in advance. -- Antonello Boverio Rue de la Potheilaz 1 1446 Baulmes Switzerland 46?47'22.01"N, 6?31'14.38"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Mon Dec 6 10:56:05 2010 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Mon, 06 Dec 2010 10:56:05 +0100 Subject: [scilab-Users] error while installing XMLlab 1.75 in SCILAB 5.3beta5, on Win7 Professional, 64 bits In-Reply-To: References: Message-ID: <4CFCB335.1010004@utc.fr> Le 06/12/2010 10:50, Antonello Boverio a ?crit : > I am trying to install XMLlab 1.75 in SCILAB 5.3beta5, running on Win7 > Professional, 64 bits on a DELL Studio 15. > I always get the following error message: > atomsExtract: The extraction of the archive > 'C:\Users\Anto\AppData\Roaming\Scilab\scilab-5.3.0-beta-5\atoms\xmllab\xmllab_1.75-2.bin.zip' > has failed. > > However, the extration did succeed. I obtain supposedly correct > contents in > C:\Users\Anto\AppData\Roaming\Scilab\scilab-5.3.0-beta-5\atoms\xmllab\xmllab_1.75 > > I tried several variants (console, menu, unzipping myself in advance). > No way. > Other ATOMs do install successfully (I did not test all of them). > I did not try earlier versions of XMLlab nor to install that one in > older SCILAB versions. > > Any suggestion? > Thanks in advance. > > -- > Antonello Boverio > Rue de la Potheilaz 1 > 1446 Baulmes > Switzerland > 46?47'22.01"N, 6?31'14.38"E Hi, I have tried to install XMLlab1.75 with the Atoms module manager in Scilab5.3beta5 under XP and did not encounter this problem. It seems to be a problem with Win7. To help a little bit, could you try to unzip the archive directly from an explorer window to see what happends ? S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gadepall at yahoo.com Mon Dec 6 11:46:57 2010 From: gadepall at yahoo.com (Vishwanath Rao) Date: Mon, 6 Dec 2010 02:46:57 -0800 (PST) Subject: Automatic function loading Message-ID: <758919.76722.qm@web33806.mail.mud.yahoo.com> Hi, I'm using Scilab 5.2.2 on Ubuntu Lucid. I have defined the functions qfunc.sci and randsrc.sci in the directory ~/Downloads/scilab-5.2.2/comm and load them through the command genlib('comm','~/Downloads/scilab-5.2.2/comm') in my scilab script test.sce. While this works, I want the functions from my 'comm' directory to be available permanently without having to use genlib each time. Is there a simple way to do this? The toolbox creation method seems too complicated to me right now. Vishwanath. -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon Dec 6 11:51:51 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 6 Dec 2010 11:51:51 +0100 Subject: [scilab-Users] Automatic function loading In-Reply-To: <758919.76722.qm@web33806.mail.mud.yahoo.com> References: <758919.76722.qm@web33806.mail.mud.yahoo.com> Message-ID: <006e01cb9533$96b81bf0$c42853d0$@scilab.org> Hi, You can create a startup file. see help startup in scilab And add in this file a call to getd (See help getd) Allan De : Vishwanath Rao [mailto:gadepall at yahoo.com] Envoy? : lundi 6 d?cembre 2010 11:47 ? : users at lists.scilab.org Objet : [scilab-Users] Automatic function loading Hi, I'm using Scilab 5.2.2 on Ubuntu Lucid. I have defined the functions qfunc.sci and randsrc.sci in the directory ~/Downloads/scilab-5.2.2/comm and load them through the command genlib('comm','~/Downloads/scilab-5.2.2/comm') in my scilab script test.sce. While this works, I want the functions from my 'comm' directory to be available permanently without having to use genlib each time. Is there a simple way to do this? The toolbox creation method seems too complicated to me right now. Vishwanath. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Mon Dec 6 11:55:17 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 06 Dec 2010 11:55:17 +0100 Subject: [scilab-Users] Automatic function loading In-Reply-To: <758919.76722.qm@web33806.mail.mud.yahoo.com> References: <758919.76722.qm@web33806.mail.mud.yahoo.com> Message-ID: <4CFCC115.6070202@limsi.fr> Hello, I don't know genlib but I think than exec should suffice to load a scilab function. To load them on startup have a look at: help("startup"). Basically you should create a file called .scilab and put the exec command in it. Mathieu On 12/06/2010 11:46 AM, Vishwanath Rao wrote: > Hi, > I'm using Scilab 5.2.2 on Ubuntu Lucid. > > I have defined the functions qfunc.sci and randsrc.sci in the > directory ~/Downloads/scilab-5.2.2/comm and load them through the command > > genlib('comm','~/Downloads/scilab-5.2.2/comm') > > in my scilab script test.sce. While this works, I want the functions > from my 'comm' directory to be available permanently without having to > use genlib each time. Is there a simple way to do this? The toolbox > creation method seems too complicated to me right now. > > Vishwanath. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gadepall at yahoo.com Mon Dec 6 12:34:00 2010 From: gadepall at yahoo.com (Vishwanath Rao) Date: Mon, 6 Dec 2010 03:34:00 -0800 (PST) Subject: [scilab-Users] Automatic function loading In-Reply-To: <006e01cb9533$96b81bf0$c42853d0$@scilab.org> References: <758919.76722.qm@web33806.mail.mud.yahoo.com> <006e01cb9533$96b81bf0$c42853d0$@scilab.org> Message-ID: <174697.71013.qm@web33805.mail.mud.yahoo.com> I did the following 1. opened the file ~/.Scilab/scilab-5.2.2/.scilab 2. getd('~/Downloads/scilab-5.2.2/comm') This works, but the clear command clears my functions and I'm not able to use them anymore. And I do need to use the clear command if I'm going to run a script regularly. Vishwanath. ________________________________ From: Allan CORNET To: users at lists.scilab.org Sent: Mon, 6 December, 2010 16:21:51 Subject: RE: [scilab-Users] Automatic function loading Hi, You can create a startup file. see help startup in scilab And add in this file a call to getd (See help getd) Allan De :Vishwanath Rao [mailto:gadepall at yahoo.com] Envoy? : lundi 6 d?cembre 2010 11:47 ? : users at lists.scilab.org Objet : [scilab-Users] Automatic function loading Hi, I'm using Scilab 5.2.2 on Ubuntu Lucid. I have defined the functions qfunc.sci and randsrc.sci in the directory ~/Downloads/scilab-5.2.2/comm and load them through the command genlib('comm','~/Downloads/scilab-5.2.2/comm') in my scilab script test.sce. While this works, I want the functions from my 'comm' directory to be available permanently without having to use genlib each time. Is there a simple way to do this? The toolbox creation method seems too complicated to me right now. Vishwanath. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Mon Dec 6 12:55:30 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Mon, 06 Dec 2010 12:55:30 +0100 Subject: [scilab-Users] Automatic function loading In-Reply-To: <174697.71013.qm@web33805.mail.mud.yahoo.com> References: <758919.76722.qm@web33806.mail.mud.yahoo.com> <006e01cb9533$96b81bf0$c42853d0$@scilab.org> <174697.71013.qm@web33805.mail.mud.yahoo.com> Message-ID: <4CFCCF32.1010807@limsi.fr> Hello, On 12/06/2010 12:34 PM, Vishwanath Rao wrote: > I did the following > > 1. opened the file ~/.Scilab/scilab-5.2.2/.scilab > 2. getd('~/Downloads/scilab-5.2.2/comm') > > This works, but the clear command clears my functions and I'm not able > to use them anymore. And I do need to use the clear command if I'm > going to run a script regularly. The simple solution is to write getd after clean. You may have a look at predef which is used to protect variables (I have never used it). > > Vishwanath. > > > > > ------------------------------------------------------------------------ > *From:* Allan CORNET > *To:* users at lists.scilab.org > *Sent:* Mon, 6 December, 2010 16:21:51 > *Subject:* RE: [scilab-Users] Automatic function loading > > Hi, > > You can create a startup file. see help startup in scilab > > And add in this file a call to getd (See help getd) > > Allan > > *De :* Vishwanath Rao [mailto:gadepall at yahoo.com] > *Envoy? :* lundi 6 d?cembre 2010 11:47 > *? :* users at lists.scilab.org > *Objet :* [scilab-Users] Automatic function loading > > Hi, > > I'm using Scilab 5.2.2 on Ubuntu Lucid. > > I have defined the functions qfunc.sci and randsrc.sci in the > directory ~/Downloads/scilab-5.2.2/comm and load them through the command > > genlib('comm','~/Downloads/scilab-5.2.2/comm') > > in my scilab script test.sce. While this works, I want the functions > from my 'comm' directory to be available permanently without having to > use genlib each time. Is there a simple way to do this? The toolbox > creation method seems too complicated to me right now. > > Vishwanath. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gadepall at yahoo.com Mon Dec 6 13:40:23 2010 From: gadepall at yahoo.com (Vishwanath Rao) Date: Mon, 6 Dec 2010 04:40:23 -0800 (PST) Subject: [scilab-Users] Automatic function loading In-Reply-To: <4CFCCF32.1010807@limsi.fr> References: <758919.76722.qm@web33806.mail.mud.yahoo.com> <006e01cb9533$96b81bf0$c42853d0$@scilab.org> <174697.71013.qm@web33805.mail.mud.yahoo.com> <4CFCCF32.1010807@limsi.fr> Message-ID: <145944.17935.qm@web33804.mail.mud.yahoo.com> I did the following: 1. genlib('comm','~/Downloads/scilab-5.2.2/comm') This creates the .bin files for the functions in the comm directory and a lib file. 2. Loaded the lib file in the ~/Downloads/scilab-5.2.2/share/scilab/etc/scilab.start by inserting the command load("~/Downloads/scilab-5.2.2/comm/lib"); before the // Protect variable previously defined ================================ predef("all"); lines. predef then prevents the functions in the comm library from being cleared and I can use the comm directory as a kind of toolbox thanks, Vishwanath. ________________________________ From: Mathieu Dubois To: users at lists.scilab.org Sent: Mon, 6 December, 2010 17:25:30 Subject: Re: [scilab-Users] Automatic function loading Hello, On 12/06/2010 12:34 PM, Vishwanath Rao wrote: I did the following > > >1. opened the file ~/.Scilab/scilab-5.2.2/.scilab >2. getd('~/Downloads/scilab-5.2.2/comm') > > >This works, but the clear command clears my functions and I'm not able to use >them anymore. And I do need to use the clear command if I'm going to run a >script regularly. The simple solution is to write getd after clean. You may have a look at predef which is used to protect variables (I have never used it). > >Vishwanath. > > > > > > > > ________________________________ From: Allan CORNET >To: users at lists.scilab.org >Sent: Mon, 6 December, 2010 16:21:51 >Subject: RE: [scilab-Users] Automatic function loading > > >Hi, > >You can create a startup file. see help startup in scilab > >And add in this file a call to getd (See help getd) > >Allan > > >De :Vishwanath Rao [mailto:gadepall at yahoo.com] >Envoy? : lundi 6 d?cembre 2010 11:47 >? : users at lists.scilab.org >Objet : [scilab-Users] Automatic function loading > >Hi, > I'm using Scilab 5.2.2 on Ubuntu Lucid. > > I have defined the functions qfunc.sci and randsrc.sci in the directory >~/Downloads/scilab-5.2.2/comm and load them through the command > >genlib('comm','~/Downloads/scilab-5.2.2/comm') > >in my scilab script test.sce. While this works, I want the functions from my >'comm' directory to be available permanently without having to use genlib each >time. Is there a simple way to do this? The toolbox creation method seems too >complicated to me right now. > >Vishwanath. > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Mon Dec 6 15:57:00 2010 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TDqXBoYW5lIE1vdHRlbGV0?=) Date: Mon, 06 Dec 2010 15:57:00 +0100 Subject: ltitr and sparse matrix In-Reply-To: <006e01cb9533$96b81bf0$c42853d0$@scilab.org> References: <758919.76722.qm@web33806.mail.mud.yahoo.com> <006e01cb9533$96b81bf0$c42853d0$@scilab.org> Message-ID: <4CFCF9BC.4030503@utc.fr> Hi devs, do you think that adapting ltitr to the case where A is sparse would be something possible ? S. From XMMS2010 at web.de Mon Dec 6 21:19:39 2010 From: XMMS2010 at web.de (XMMS2010 at web.de) Date: Mon, 6 Dec 2010 21:19:39 +0100 (CET) Subject: Linear regression and R-squared Message-ID: <1355195076.4100039.1291666779151.JavaMail.fmail@mwmweb012> An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Mon Dec 6 21:37:57 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Mon, 06 Dec 2010 21:37:57 +0100 Subject: [scilab-Users] Linear regression and R-squared In-Reply-To: <1355195076.4100039.1291666779151.JavaMail.fmail@mwmweb012> References: <1355195076.4100039.1291666779151.JavaMail.fmail@mwmweb012> Message-ID: <4CFD49A5.9070502@univ-lemans.fr> ----- Message d'origine ----- De : XMMS2010 at web.de Date : 06/12/2010 21:19: > Hi, > > using "reglin" or "regress" a linear regression of measurement data can be > done. But how is it possible to get R-squared of the regression as a parameter > for the "goodness of fit"? Is there another function for doing this? The RMS deviations between data and the fit are given on the diagonal of the third output argument of reglin(). For instance. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at free.fr Mon Dec 6 21:37:30 2010 From: paul.carrico at free.fr (Paul CARRICO) Date: Mon, 6 Dec 2010 21:37:30 +0100 Subject: [scilab-Users] Linear regression and R-squared In-Reply-To: <1355195076.4100039.1291666779151.JavaMail.fmail@mwmweb012> References: <1355195076.4100039.1291666779151.JavaMail.fmail@mwmweb012> Message-ID: <000601cb9585$68371360$38a53a20$@carrico@free.fr> Hi I do as follow ? but maybe there?s another way ! F_mean = mean(experience(:,2)); SSE = 0; SST = 0; SSE = norm ((F_fit(:,2) - experience(:,2))^2) ; ??. you can use sum instead of norm SST = norm((F_mean - experience(:,2))^2) ; R_square = 1 - (SSE / SST); Where ?experience? are the experimental data / F_fit are the results from you?re Paul De : XMMS2010 at web.de [mailto:XMMS2010 at web.de] Envoy? : lundi 6 d?cembre 2010 21:20 ? : users at lists.scilab.org Objet : [scilab-Users] Linear regression and R-squared Hi, using "reglin" or "regress" a linear regression of measurement data can be done. But how is it possible to get R-squared of the regression as a parameter for the "goodness of fit"? Is there another function for doing this? Thanks XMMS2010 WEB.DE DSL Doppel-Flat ab 19,99 ?/mtl.! Jetzt auch mit gratis Notebook-Flat! http://produkte.web.de/go/DSL_Doppel_Flatrate/2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From grocer.toolbox at gmail.com Mon Dec 6 21:42:12 2010 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Mon, 6 Dec 2010 21:42:12 +0100 Subject: [scilab-Users] Linear regression and R-squared In-Reply-To: <1355195076.4100039.1291666779151.JavaMail.fmail@mwmweb012> References: <1355195076.4100039.1291666779151.JavaMail.fmail@mwmweb012> Message-ID: Hi. R square and many other statistics are available in Grocer, the econometric toolbox available at http://dubois.ensae.net/grocer.html or through the module manager Atoms. ?ric. 2010/12/6 > Hi, > > using "reglin" or "regress" a linear regression of measurement data can be > done. But how is it possible to get R-squared of the regression as a > parameter for the "goodness of fit"? Is there another function for doing > this? > > Thanks > > XMMS2010 > > > WEB.DE DSL Doppel-Flat ab 19,99 ?/mtl.! Jetzt auch mit > gratis Notebook-Flat! *http://produkte.web.de/go/DSL_Doppel_Flatrate/2* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Mon Dec 6 22:11:40 2010 From: michael.baudin at scilab.org (michael.baudin at scilab.org) Date: Mon, 06 Dec 2010 22:11:40 +0100 Subject: [scilab-Users] Question about max. vector length and scilab limits In-Reply-To: <29DC34A6B43468409F5A371CFE34E849019577B3@ex01.ads.ubidyne.de> References: <29DC34A6B43468409F5A371CFE34E849019577B3@ex01.ads.ubidyne.de> Message-ID: Hi, In "Programming in Scilab", you may find a part of the answers that you are searching for: http://forge.scilab.org/index.php/p/docprogscilab/downloads/ The section 2, "Variables and memory management", describes the current stack of Scilab v5. The size of the maximum dense matrix of doubles derives from this. The maximum stack size in Scilab v5 is 2.1 GB. This corresponds to a 16 384-by-16 384 dense matrix of doubles. A matrix of 17 000 doubles easily fits into Scilab, provided that we set the size of the stack to a consistent value. Did you run stacksize("max")? The maximum number of characters in a variable (or function) is 24. But your questions go far beyond that particular point. Best regards, Micha?l PS The maximum number of opened files, maximum number of variables, maximum number of characters in a line of a Scilab macro, maximum number of functions in a gateway, etc... is yet to be determined. On Mon, 6 Dec 2010 10:13:37 +0100, "Holger Weiss" wrote: > Hi, > I have Problems in Scilab with long vectors. > the problem does not exist in Matlab, but I need this working. I want > to switch completely to scilab. > > Problem: > -------- > I want to execute the attached file and get a vector with around > 17000 points. > But I get an error: "Inconsistent row/column dimensions" > > What is the max. vector length for a vector in scilab ? > What are the limitation for the scilab environment (like: max. > number, max. stacksize, max files open, max. size of number, max. > length of vector) ? > Is there a documentaiton available? > > I searched the web and the help from scilab for the limits of the > scilab environment, but with NO success. > > > Thanks for your help in advance! > > With kind regards / Mit freundlichen Gr??en > > Holger Weiss > Senior RF Design Engineer > _______________________________ > > Ubidyne GmbH > Lise-Meitner-Stra?e 14 > D-89081 Ulm > > phone +49 731 88 00 71 31 > fax +49 731 88 00 71 99 > mail info at ubidyne.com > web www.ubidyne.com > > Registered office: Ulm > District court of Ulm: HRB 5295 > Managing Directors: > Dipl. Ing. Mike Levis > Dr. Ing. Lothar Schmidt From michael.baudin at scilab.org Mon Dec 6 22:18:56 2010 From: michael.baudin at scilab.org (michael.baudin at scilab.org) Date: Mon, 06 Dec 2010 22:18:56 +0100 Subject: [scilab-Users] Question about max. vector length and scilab limits In-Reply-To: <29DC34A6B43468409F5A371CFE34E849019577B3@ex01.ads.ubidyne.de> References: <29DC34A6B43468409F5A371CFE34E849019577B3@ex01.ads.ubidyne.de> Message-ID: <489573f16b7f422e4212f07a49c82db9@scilab.org> Hi, Indeed, executing this file make Scilab fail: -->exec gdt_scratch2.m; !--error 113 Too large string. at line 0 of exec file called by : exec gdt_scratch2.m; which is not completely surprising, given that all the data is on one single line. Hence, there is a limit about the number of characters that exec can process on a single line. But the following script works : t = mgetl("gdt_scratch2.m"); n = length(t); m = evstr(part(t,15:n)); The "15" is to skip the "iVector = " at the begining of the file. Best regards, Micha?l Baudin On Mon, 6 Dec 2010 10:13:37 +0100, "Holger Weiss" wrote: > Hi, > I have Problems in Scilab with long vectors. > the problem does not exist in Matlab, but I need this working. I want > to switch completely to scilab. > > Problem: > -------- > I want to execute the attached file and get a vector with around > 17000 points. > But I get an error: "Inconsistent row/column dimensions" > > What is the max. vector length for a vector in scilab ? > What are the limitation for the scilab environment (like: max. > number, max. stacksize, max files open, max. size of number, max. > length of vector) ? > Is there a documentaiton available? > > I searched the web and the help from scilab for the limits of the > scilab environment, but with NO success. > > > Thanks for your help in advance! > > With kind regards / Mit freundlichen Gr??en > > Holger Weiss > Senior RF Design Engineer > _______________________________ > > Ubidyne GmbH > Lise-Meitner-Stra?e 14 > D-89081 Ulm > > phone +49 731 88 00 71 31 > fax +49 731 88 00 71 99 > mail info at ubidyne.com > web www.ubidyne.com > > Registered office: Ulm > District court of Ulm: HRB 5295 > Managing Directors: > Dipl. Ing. Mike Levis > Dr. Ing. Lothar Schmidt From xmagyarz at gmail.com Tue Dec 7 00:00:44 2010 From: xmagyarz at gmail.com (=?windows-1250?Q?Zolt=E1n_Magyar?=) Date: Tue, 07 Dec 2010 00:00:44 +0100 Subject: How to set block parameters in Xcos Message-ID: <4CFD6B1C.5070809@gmail.com> Hello everybody! Is there a way to change parameters of blocks in Xcos during the simulation? Thanks for the answer Zolt?n From pm at cgiss.boisestate.edu Tue Dec 7 19:52:39 2010 From: pm at cgiss.boisestate.edu (pm) Date: Tue, 7 Dec 2010 11:52:39 -0700 Subject: pvm_recv returns all arguments but buffer Message-ID: <201012071152.39260.pm@cgiss.boisestate.edu> PROBLEM: The problem is that pvm_recv does not return the message contents, just returns the tag, msgtid, and info arguments. Other pvm commands seem to be working (as far as I have tested). The pvm_recv command blocks as one would expect until it receives the pvm_send from the master. Version: Scilab-4.1.2 Operating System: Debian Lenny both 32 and 64 bit systems, same result Compiled with configure command (all on one line): ./configure --with-gnu --with-pvm-library=/usr/lib --with-pvm-include=/usr/include cat /home/pm/.pvmd.conf #* dx=$PVM_ROOT/lib/pvmd ep=$SCI/bin:$PVM_ROOT/bin/$PVM_ARCH * dx=$PVM_ROOT/lib/pvmd ep=$SCI/bin:$PVM_ROOT/lib EXAMPLE RUN INTERACTIVELY: ==========on master -->pvm_start() The configuration file /home/pm/.pvmd.conf is used. ans = 0. -->data=44 data = 44. -->[tids,numtids]=pvm_spawn("",1) numtids = 1. tids = 262147. =========on slave -->[buff,info,msgtid,tag]=pvm_recv(pvm_parent(),1) tag = 1. msgtid = 262145. info = 0. ==================================== NOTE: "buff" not returned, but info=0 suggesting success. Any suggestions? -- Dr. Paul Michaels, PE Voice: (208) 426-1929 Fax:(208) 426-4061 Email: pm at cgiss.boisestate.edu WWW: http://cgiss.boisestate.edu/~pm From bob.hyrsut at wanadoo.fr Wed Dec 8 13:41:49 2010 From: bob.hyrsut at wanadoo.fr (sebastien salmon) Date: Wed, 08 Dec 2010 12:41:49 -0000 Subject: Parallel computation - grid creation Message-ID: <22890180.194330.1291812108714.JavaMail.www@wwinf1j28> Hello, I'm curently working on some metaheuristic optimization problems using Scilab and external programs such as Dymola for exemple. Those optimizations require a lot of computation witch could be parallelized. I plan to set up a grid through the lab (up to 50 computers under windows (xp-vista-seven) or linux (fedora - debian - ubuntu)) and I'm loocking for some exemple of the install and use of pwm under Scilab. Thanks for your help, S.Salmon -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Thu Dec 9 12:46:22 2010 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Thu, 09 Dec 2010 12:46:22 +0100 Subject: [scilab-Users] Parallel computation - grid creation In-Reply-To: <22890180.194330.1291812108714.JavaMail.www@wwinf1j28> References: <22890180.194330.1291812108714.JavaMail.www@wwinf1j28> Message-ID: <4D00C18E.7060703@limsi.fr> Hello, I once set up small cluster in my lab. I found 2 "cluster" distributions that may help you. I know that OSCAR (http://oscar.openclustergroup.org/) automatically ste up PVM. Nevertheless the project seems to have difficulties to deliver a stable version for the 6 branch. You may also have look at ROCKS (http://www.rocksclusters.org/wordpress/) which seems more dynamic (but I don't know of it has PVM included). I have never used PVM with scilab so I can't help you with this. I know that there is a compile time option to enable it. Maybe the default version has PVM... Mathieu On 12/08/2010 01:42 PM, sebastien salmon wrote: > Hello, > > I'm curently working on some metaheuristic optimization problems using > Scilab and external programs such as Dymola for exemple. > Those optimizations require a lot of computation witch could be > parallelized. > I plan to set up a grid through the lab (up to 50 computers under > windows (xp-vista-seven) or linux (fedora - debian - ubuntu)) and I'm > loocking for some exemple of the install and use of pwm under Scilab. > > Thanks for your help, > S.Salmon From bob.hyrsut at wanadoo.fr Thu Dec 9 13:41:21 2010 From: bob.hyrsut at wanadoo.fr (sebastien salmon) Date: Thu, 09 Dec 2010 12:41:21 -0000 Subject: [scilab-Users] Parallel computation - grid creation In-Reply-To: <4D00C18E.7060703@limsi.fr> References: <22890180.194330.1291812108714.JavaMail.www@wwinf1j28> <4D00C18E.7060703@limsi.fr> Message-ID: <18663605.129249.1291898479693.JavaMail.www@wwinf1f37> Hello, thaks for your answer but it seems that both of those programs are only available under linux ... And there only few computer under linux.... Thanks again, S.Salmon > Message du 09/12/10 12:46 > De : "Mathieu Dubois" > A : users at lists.scilab.org > Copie ? : > Objet : Re: [scilab-Users] Parallel computation - grid creation > > > Hello, > > I once set up small cluster in my lab. I found 2 "cluster" distributions > that may help you. > > I know that OSCAR (http://oscar.openclustergroup.org/) automatically ste > up PVM. Nevertheless the project seems to have difficulties to deliver a > stable version for the 6 branch. > > You may also have look at ROCKS > (http://www.rocksclusters.org/wordpress/) which seems more dynamic (but > I don't know of it has PVM included). > > I have never used PVM with scilab so I can't help you with this. I know > that there is a compile time option to enable it. Maybe the default > version has PVM... > > Mathieu > > On 12/08/2010 01:42 PM, sebastien salmon wrote: > > Hello, > > > > I'm curently working on some metaheuristic optimization problems using > > Scilab and external programs such as Dymola for exemple. > > Those optimizations require a lot of computation witch could be > > parallelized. > > I plan to set up a grid through the lab (up to 50 computers under > > windows (xp-vista-seven) or linux (fedora - debian - ubuntu)) and I'm > > loocking for some exemple of the install and use of pwm under Scilab. > > > > Thanks for your help, > > S.Salmon > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From p_ledoux at yahoo.com.br Thu Dec 9 13:42:50 2010 From: p_ledoux at yahoo.com.br (Pedro Ledoux) Date: Thu, 9 Dec 2010 04:42:50 -0800 (PST) Subject: Res: [scilab-Users] Parallel computation - grid creation In-Reply-To: <4D00C18E.7060703@limsi.fr> References: <22890180.194330.1291812108714.JavaMail.www@wwinf1j28> <4D00C18E.7060703@limsi.fr> Message-ID: <604421.20983.qm@web120503.mail.ne1.yahoo.com> Hello. About paralelization why use a interpreted language like Scilab? Are there some advantages? To numerical optimized algorithms I prefer use a compiled language one, to numerical application my favourite is Fortran. For such applications a compiled code run much more faster than an interpreted one like Matlab and Scilab. If you want to run this aplication paralely probably it is too optimised and full of iterations. In a algorithm to the method FDTD to eletromagnetism use an interpreted language is inviable if you want more than dozens of thousands of iterations. Codes written in Fortran are easy to paralelise using an API called OpenMP. ________________________________ De: Mathieu Dubois Para: users at lists.scilab.org Enviadas: Quinta-feira, 9 de Dezembro de 2010 9:46:22 Assunto: Re: [scilab-Users] Parallel computation - grid creation Hello, I once set up small cluster in my lab. I found 2 "cluster" distributions that may help you. I know that OSCAR (http://oscar.openclustergroup.org/) automatically ste up PVM. Nevertheless the project seems to have difficulties to deliver a stable version for the 6 branch. You may also have look at ROCKS (http://www.rocksclusters.org/wordpress/) which seems more dynamic (but I don't know of it has PVM included). I have never used PVM with scilab so I can't help you with this. I know that there is a compile time option to enable it. Maybe the default version has PVM... Mathieu On 12/08/2010 01:42 PM, sebastien salmon wrote: > Hello, > > I'm curently working on some metaheuristic optimization problems using Scilab >and external programs such as Dymola for exemple. > Those optimizations require a lot of computation witch could be parallelized. > I plan to set up a grid through the lab (up to 50 computers under windows >(xp-vista-seven) or linux (fedora - debian - ubuntu)) and I'm loocking for some >exemple of the install and use of pwm under Scilab. > > Thanks for your help, > S.Salmon -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Fri Dec 10 10:27:56 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 10 Dec 2010 10:27:56 +0100 Subject: Random selection Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B01C@exchsrv.AUXITROL1> Dear all, This is a strange idea (but usefull one) : I've a list a X point and I would like to select 3 of them in a random way (of course a point can be choose only ounce) I can use the following code round(X*rand(1,3)) neverthless : - I've to loop until the 3 integer are different - if X becomes small it's diffucult to have 3 different values I'm sure these a simplier way to generate these 3 integers ... can I have an advice ? Thanks Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreucci at dmmm.uniroma1.it Fri Dec 10 11:25:51 2010 From: andreucci at dmmm.uniroma1.it (Daniele Andreucci) Date: Fri, 10 Dec 2010 11:25:51 +0100 Subject: [scilab-Users] Random selection In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B01C@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B01C@exchsrv.AUXITROL1> Message-ID: <4D02002F.6010101@dmmm.uniroma1.it> Carrico, Paul wrote on 12/10/10 10:27: > Dear all, > > This is a strange idea (but usefull one) : I've a list a X point and I > would like to select 3 of them in a random way (of course a point can be > choose only ounce) > > I can use the following code > round(X*rand(1,3)) > > neverthless : > - I've to loop until the 3 integer are different > - if X becomes small it's diffucult to have 3 different values > > I'm sure these a simplier way to generate these 3 integers ... can I > have an advice ? > > Thanks > > Paul > > -------------------------------------------------------------------------------- > Dear Paul, you are looking for a selection from a random permutation (since each point can be selected once). For example with grand(1,"prm",a) (a=column vector) you can proceed as follows: -->X=10; -->a=[1:X]' a = 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. -->b=grand(1,"prm",a) b = 2. 10. 1. 5. 4. 9. 8. 3. 7. 6. -->myselection=b(1:3) myselection = 2. 10. 1. Daniele -- [ Daniele Andreucci [ Dip. di Scienze di Base e Applicate per l'Ingegneria [ via A. Scarpa 16 00161 Roma, Italy [ tel. +39 0649766785 [ fax +39 064957647 [ e-mail: andreucci at dmmm.uniroma1.it [ http://www.dmmm.uniroma1.it/~andreucci/ [ gpg pub key id: D3ADC732 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From paul.carrico at esterline.com Fri Dec 10 11:33:15 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Fri, 10 Dec 2010 11:33:15 +0100 Subject: [scilab-Users] Random selection In-Reply-To: <4D02002F.6010101@dmmm.uniroma1.it> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B01C@exchsrv.AUXITROL1> <4D02002F.6010101@dmmm.uniroma1.it> Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B01F@exchsrv.AUXITROL1> Thanks to Daniele and Mathieu Please consider the environment before printing this e-mail -----Message d'origine----- De : Daniele Andreucci [mailto:andreucci at dmmm.uniroma1.it] Envoy? : vendredi 10 d?cembre 2010 11:26 ? : users at lists.scilab.org Objet : Re: [scilab-Users] Random selection Carrico, Paul wrote on 12/10/10 10:27: > Dear all, > > This is a strange idea (but usefull one) : I've a list a X point and I > would like to select 3 of them in a random way (of course a point can be > choose only ounce) > > I can use the following code > round(X*rand(1,3)) > > neverthless : > - I've to loop until the 3 integer are different > - if X becomes small it's diffucult to have 3 different values > > I'm sure these a simplier way to generate these 3 integers ... can I > have an advice ? > > Thanks > > Paul > > -------------------------------------------------------------------------------- > Dear Paul, you are looking for a selection from a random permutation (since each point can be selected once). For example with grand(1,"prm",a) (a=column vector) you can proceed as follows: -->X=10; -->a=[1:X]' a = 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. -->b=grand(1,"prm",a) b = 2. 10. 1. 5. 4. 9. 8. 3. 7. 6. -->myselection=b(1:3) myselection = 2. 10. 1. Daniele -- [ Daniele Andreucci [ Dip. di Scienze di Base e Applicate per l'Ingegneria [ via A. Scarpa 16 00161 Roma, Italy [ tel. +39 0649766785 [ fax +39 064957647 [ e-mail: andreucci at dmmm.uniroma1.it [ http://www.dmmm.uniroma1.it/~andreucci/ [ gpg pub key id: D3ADC732 -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. From guylaine.collewet at cemagref.fr Fri Dec 10 15:17:10 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Fri, 10 Dec 2010 15:17:10 +0100 Subject: scilab 5.2.2 32 bits under Win7 64 bits Message-ID: Hello, I am trying to work with scilab 5.2.2 32 bits under Win7 64 bits I have problems with own-written contribs, some functions (especially one written in C++) fail (scilab must be closed) is it possible to work with a 32 bits version in my case ? or is it mandatory to work with the 64 bits version thanks Guylaine Collewet -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Fri Dec 10 15:24:01 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 10 Dec 2010 15:24:01 +0100 Subject: [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits In-Reply-To: References: Message-ID: <003601cb9875$e406af30$ac140d90$@scilab.org> Hi, There is no problem to use scilab 32 bits on 64 bit platform Windows. About your functions, please check that: Librairies 32 bits used ONLY with Scilab 32 bits Librairies 64 bits used ONLY with Scilab 64 bits You can also try to debug your functions to extend compatibility with 64 bits : http://wiki.scilab.org/How_to_debug_an_external_source_code_linked_to_scilab _with_Visual_Studio Best regards Allan CORNET De : Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Envoy? : vendredi 10 d?cembre 2010 15:17 ? : users at lists.scilab.org Objet : [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits Hello, I am trying to work with scilab 5.2.2 32 bits under Win7 64 bits I have problems with own-written contribs, some functions (especially one written in C++) fail (scilab must be closed) is it possible to work with a 32 bits version in my case ? or is it mandatory to work with the 64 bits version thanks Guylaine Collewet -------------- next part -------------- An HTML attachment was scrubbed... URL: From guylaine.collewet at cemagref.fr Fri Dec 10 15:32:50 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Fri, 10 Dec 2010 15:32:50 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_scilab_5=2E2=2E2_32_bits_u?= =?iso-8859-1?Q?nder_Win7_64_bits?= References: <003601cb9875$e406af30$ac140d90$@scilab.org> Message-ID: thank you for your answer my function did work with scilab 5.2.2 under windows XP I first tested it without re-building it (the builder had been executed under windows XP) : it failed then I run the builder : it seemed to run properly, but the function failed too I suppose that the builder generated a 32 bits library since I used visual studio 9.0 installed in the Program Files (x86) directory Guylaine -------- Message d'origine-------- De: Allan CORNET [mailto:allan.cornet at scilab.org] Date: ven. 10/12/2010 15:24 ?: users at lists.scilab.org Objet : RE: [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits Hi, There is no problem to use scilab 32 bits on 64 bit platform Windows. About your functions, please check that: Librairies 32 bits used ONLY with Scilab 32 bits Librairies 64 bits used ONLY with Scilab 64 bits You can also try to debug your functions to extend compatibility with 64 bits : http://wiki.scilab.org/How_to_debug_an_external_source_code_linked_to_scilab _with_Visual_Studio Best regards Allan CORNET De : Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Envoy? : vendredi 10 d?cembre 2010 15:17 ? : users at lists.scilab.org Objet : [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits Hello, I am trying to work with scilab 5.2.2 32 bits under Win7 64 bits I have problems with own-written contribs, some functions (especially one written in C++) fail (scilab must be closed) is it possible to work with a 32 bits version in my case ? or is it mandatory to work with the 64 bits version thanks Guylaine Collewet -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3444 bytes Desc: not available URL: From tanguy.lyonlynch at infrabel.be Fri Dec 10 16:16:00 2010 From: tanguy.lyonlynch at infrabel.be (tanguy.lyonlynch at infrabel.be) Date: 10 Dec 2010 16:16:00 +0100 Subject: problem uicontrol text in a GUI Message-ID: Hi Is it technically possible to have a multiline text in a text uicontrol in a figure? In the following example, I would like to have the text in two lines f = figure(1); editzone = uicontrol(f,"string", "text","position",[0 0 50 200]); editzone.fontsize = 15; set (editzone, 'string', "line1"); editzone.string = editzone.string+"secondline" it is maybee not supported by the text uicontrol? thanks a lot tg From calixte at contrib.scilab.org Fri Dec 10 16:26:59 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 10 Dec 2010 16:26:59 +0100 Subject: [scilab-Users] problem uicontrol text in a GUI In-Reply-To: References: Message-ID: <1291994819.20166.289.camel@Calixte-Dell> Le vendredi 10 d?cembre 2010 ? 16:16 +0100, tanguy.lyonlynch at infrabel.be a ?crit : > > Hi > Hello Tanguy > Is it technically possible to have a multiline text in a text uicontrol in a > figure? > In the following example, I would like to have the text in two lines > > > f = figure(1); > editzone = uicontrol(f,"string", "text","position",[0 0 50 200]); > editzone.fontsize = 15; > set (editzone, 'string', "line1"); > editzone.string = editzone.string+"secondline" > > it is maybee not supported by the text uicontrol? > Yes it is possible in using HTML: editzone.string = "first line
second line" Best regards, Calixte > thanks a lot > > tg > From constellationathome at googlemail.com Fri Dec 10 17:54:50 2010 From: constellationathome at googlemail.com (Constellation Athome) Date: Fri, 10 Dec 2010 17:54:50 +0100 Subject: [scilab-Users] Parallel computation - grid creation In-Reply-To: <604421.20983.qm@web120503.mail.ne1.yahoo.com> References: <22890180.194330.1291812108714.JavaMail.www@wwinf1j28> <4D00C18E.7060703@limsi.fr> <604421.20983.qm@web120503.mail.ne1.yahoo.com> Message-ID: Hi, okay, it's not an official solution (yet), but we're working on an implementation of Scilab as a BOINC app for our aerospace platform Constellation. We allready did our first tests and it looks promising. And with the release of Scilab 5.3.0 (stable) and it's minimum installation mode, we will do public tests for our subprojects that will use Scilab. BOINC is a server/client system for distributed computing http://en.wikipedia.org/wiki/Boinc but perhaps that's not what you are looking for. IF you decide to take this route, feel free to contact me. Perhaps I can help. Andreas -- AerospaceResearch.net/Constellation Dipl.-Ing. (FH) Andreas Hornig K?nig-Karl-Stra?e 27 70372 Stuttgart / Germany Email: constellation at aerospaceresearch.net 2010/12/9 Pedro Ledoux > Hello. About paralelization why use a interpreted language like Scilab? Are > there some advantages? To numerical optimized algorithms I prefer use a > compiled language one, to numerical application my favourite is Fortran. For > such applications a compiled code run much more faster than an interpreted > one like Matlab and Scilab. If you want to run this aplication paralely > probably it is too optimised and full of iterations. > > In a algorithm to the method FDTD to eletromagnetism use an interpreted > language is inviable if you want more than dozens of thousands of > iterations. Codes written in Fortran are easy to paralelise using an API > called OpenMP. > > ------------------------------ > *De:* Mathieu Dubois > *Para:* users at lists.scilab.org > *Enviadas:* Quinta-feira, 9 de Dezembro de 2010 9:46:22 > *Assunto:* Re: [scilab-Users] Parallel computation - grid creation > > Hello, > > I once set up small cluster in my lab. I found 2 "cluster" distributions > that may help you. > > I know that OSCAR (http://oscar.openclustergroup.org/) automatically ste > up PVM. Nevertheless the project seems to have difficulties to deliver a > stable version for the 6 branch. > > You may also have look at ROCKS (http://www.rocksclusters.org/wordpress/) > which seems more dynamic (but I don't know of it has PVM included). > > I have never used PVM with scilab so I can't help you with this. I know > that there is a compile time option to enable it. Maybe the default version > has PVM... > > Mathieu > > On 12/08/2010 01:42 PM, sebastien salmon wrote: > > Hello, > > > > I'm curently working on some metaheuristic optimization problems using > Scilab and external programs such as Dymola for exemple. > > Those optimizations require a lot of computation witch could be > parallelized. > > I plan to set up a grid through the lab (up to 50 computers under windows > (xp-vista-seven) or linux (fedora - debian - ubuntu)) and I'm loocking for > some exemple of the install and use of pwm under Scilab. > > > > Thanks for your help, > > S.Salmon > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Dec 10 17:58:38 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 10 Dec 2010 17:58:38 +0100 Subject: [scilab-Users] Parallel computation - grid creation In-Reply-To: References: <22890180.194330.1291812108714.JavaMail.www@wwinf1j28> <4D00C18E.7060703@limsi.fr> <604421.20983.qm@web120503.mail.ne1.yahoo.com> Message-ID: <1292000318.25237.27523.camel@korcula.inria.fr> I am interested :) Please let me know when you have something I could play with! Sylvestre Le vendredi 10 d?cembre 2010 ? 17:54 +0100, Constellation Athome a ?crit : > Hi, > > okay, it's not an official solution (yet), but we're working on an > implementation of Scilab as a BOINC app for our aerospace platform > Constellation. We allready did our first tests and it looks promising. > And with the release of Scilab 5.3.0 (stable) and it's minimum > installation mode, we will do public tests for our subprojects that > will use Scilab. > > BOINC is a server/client system for distributed computing > http://en.wikipedia.org/wiki/Boinc but perhaps that's not what you are > looking for. > IF you decide to take this route, feel free to contact me. Perhaps I > can help. > > Andreas > -- > AerospaceResearch.net/Constellation > Dipl.-Ing. (FH) Andreas Hornig > K?nig-Karl-Stra?e 27 > 70372 Stuttgart / Germany > Email: constellation at aerospaceresearch.net > > 2010/12/9 Pedro Ledoux > Hello. About paralelization why use a interpreted language > like Scilab? Are there some advantages? To numerical optimized > algorithms I prefer use a compiled language one, to numerical > application my favourite is Fortran. For such applications a > compiled code run much more faster than an interpreted one > like Matlab and Scilab. If you want to run this aplication > paralely probably it is too optimised and full of iterations. > > In a algorithm to the method FDTD to eletromagnetism use an > interpreted language is inviable if you want more than dozens > of thousands of iterations. Codes written in Fortran are easy > to paralelise using an API called OpenMP. > > > > ______________________________________________________________ > De: Mathieu Dubois > Para: users at lists.scilab.org > Enviadas: Quinta-feira, 9 de Dezembro de 2010 9:46:22 > Assunto: Re: [scilab-Users] Parallel computation - grid > creation > > > Hello, > > I once set up small cluster in my lab. I found 2 "cluster" > distributions that may help you. > > I know that OSCAR (http://oscar.openclustergroup.org/) > automatically ste up PVM. Nevertheless the project seems to > have difficulties to deliver a stable version for the 6 > branch. > > You may also have look at ROCKS > (http://www.rocksclusters.org/wordpress/) which seems more > dynamic (but I don't know of it has PVM included). > > I have never used PVM with scilab so I can't help you with > this. I know that there is a compile time option to enable it. > Maybe the default version has PVM... > > Mathieu > > On 12/08/2010 01:42 PM, sebastien salmon wrote: > > Hello, > > > > I'm curently working on some metaheuristic optimization > problems using Scilab and external programs such as Dymola for > exemple. > > Those optimizations require a lot of computation witch could > be parallelized. > > I plan to set up a grid through the lab (up to 50 computers > under windows (xp-vista-seven) or linux (fedora - debian - > ubuntu)) and I'm loocking for some exemple of the install and > use of pwm under Scilab. > > > > Thanks for your help, > > S.Salmon > > > > > From ajpeliz at fc.ul.pt Sat Dec 11 13:46:27 2010 From: ajpeliz at fc.ul.pt (Alvaro Peliz) Date: Sat, 11 Dec 2010 12:46:27 +0000 Subject: advice on printing Message-ID: <4D0372A3.8040208@fc.ul.pt> Hi, I'm a newcomer and I am having problems with graphics outputs. I would like to use plots for my teaching docs with latex using eps formats. Howver, the eps my scilab is producing is either empty or I can see only the curves (the foo.eps of the xs2eps help, for example). Is this a scilab incompatability with my system or just the version of eps that it produces? (by the way , the pdf output is also empty...) I use openSUSE 11.2 (x86_64), and donwnlodad the very last scilab beta version (the bin files.). Thanks, A. Peliz From calixte at contrib.scilab.org Sat Dec 11 14:02:50 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Sat, 11 Dec 2010 14:02:50 +0100 Subject: [scilab-Users] advice on printing In-Reply-To: <4D0372A3.8040208@fc.ul.pt> References: <4D0372A3.8040208@fc.ul.pt> Message-ID: <1292072570.3961.28.camel@Calixte-Dell> Le samedi 11 d?cembre 2010 ? 12:46 +0000, Alvaro Peliz a ?crit : > Hi, > Hello Alvaro > I'm a newcomer and I am having problems with graphics outputs. > I would like to use plots for my teaching docs with latex using eps formats. > Howver, the eps my scilab is producing is either empty or I can see only > the curves (the foo.eps of the xs2eps help, for example). > Is this a scilab incompatability with my system or just the version of > eps that it produces? > (by the way , the pdf output is also empty...) > i) Could you give the output of jre_path ? ii) Could you send me a SVG export (with command xs2svg) ? iii) Could you launch scilab from a terminal, make your export and notice if a error msg or a warning is emitted ? Regards, Calixte > I use openSUSE 11.2 (x86_64), and donwnlodad the very last scilab beta > version (the bin files.). > > Thanks, > A. Peliz From calixte at contrib.scilab.org Sat Dec 11 14:10:57 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Sat, 11 Dec 2010 14:10:57 +0100 Subject: [scilab-Users] advice on printing In-Reply-To: <4D0372A3.8040208@fc.ul.pt> References: <4D0372A3.8040208@fc.ul.pt> Message-ID: <1292073057.3961.31.camel@Calixte-Dell> Le samedi 11 d?cembre 2010 ? 12:46 +0000, Alvaro Peliz a ?crit : > Hi, > I think I found the problem... Could you copy the attached file in scilab-5.3.0-beta-5/share/scilab/modules/helptools/etc/ ? The LaTeX export should work with this file (the bug has already been fixed: http://codereview.scilab.org/#change,2641) Regards, Calixte > I'm a newcomer and I am having problems with graphics outputs. > I would like to use plots for my teaching docs with latex using eps formats. > Howver, the eps my scilab is producing is either empty or I can see only > the curves (the foo.eps of the xs2eps help, for example). > Is this a scilab incompatability with my system or just the version of > eps that it produces? > (by the way , the pdf output is also empty...) > > I use openSUSE 11.2 (x86_64), and donwnlodad the very last scilab beta > version (the bin files.). > > Thanks, > A. Peliz -------------- next part -------------- A non-text attachment was scrubbed... Name: fopconf.xml Type: application/xml Size: 5417 bytes Desc: not available URL: From constellationathome at googlemail.com Sun Dec 12 14:02:54 2010 From: constellationathome at googlemail.com (Constellation Athome) Date: Sun, 12 Dec 2010 14:02:54 +0100 Subject: [scilab-Users] Parallel computation - grid creation In-Reply-To: <1292000318.25237.27523.camel@korcula.inria.fr> References: <22890180.194330.1291812108714.JavaMail.www@wwinf1j28> <4D00C18E.7060703@limsi.fr> <604421.20983.qm@web120503.mail.ne1.yahoo.com> <1292000318.25237.27523.camel@korcula.inria.fr> Message-ID: Hi Sylvestre, please define "play with"! This wording gives me goosebumps! :D Andreas 2010/12/10 Sylvestre Ledru > I am interested :) > Please let me know when you have something I could play with! > > Sylvestre > > Le vendredi 10 d?cembre 2010 ? 17:54 +0100, Constellation Athome a > ?crit : > > Hi, > > > > okay, it's not an official solution (yet), but we're working on an > > implementation of Scilab as a BOINC app for our aerospace platform > > Constellation. We allready did our first tests and it looks promising. > > And with the release of Scilab 5.3.0 (stable) and it's minimum > > installation mode, we will do public tests for our subprojects that > > will use Scilab. > > > > BOINC is a server/client system for distributed computing > > http://en.wikipedia.org/wiki/Boinc but perhaps that's not what you are > > looking for. > > IF you decide to take this route, feel free to contact me. Perhaps I > > can help. > > > > Andreas > > -- > > AerospaceResearch.net/Constellation > > Dipl.-Ing. (FH) Andreas Hornig > > K?nig-Karl-Stra?e 27 > > 70372 Stuttgart / Germany > > Email: constellation at aerospaceresearch.net > > > > 2010/12/9 Pedro Ledoux > > Hello. About paralelization why use a interpreted language > > like Scilab? Are there some advantages? To numerical optimized > > algorithms I prefer use a compiled language one, to numerical > > application my favourite is Fortran. For such applications a > > compiled code run much more faster than an interpreted one > > like Matlab and Scilab. If you want to run this aplication > > paralely probably it is too optimised and full of iterations. > > > > In a algorithm to the method FDTD to eletromagnetism use an > > interpreted language is inviable if you want more than dozens > > of thousands of iterations. Codes written in Fortran are easy > > to paralelise using an API called OpenMP. > > > > > > > > ______________________________________________________________ > > De: Mathieu Dubois > > Para: users at lists.scilab.org > > Enviadas: Quinta-feira, 9 de Dezembro de 2010 9:46:22 > > Assunto: Re: [scilab-Users] Parallel computation - grid > > creation > > > > > > Hello, > > > > I once set up small cluster in my lab. I found 2 "cluster" > > distributions that may help you. > > > > I know that OSCAR (http://oscar.openclustergroup.org/) > > automatically ste up PVM. Nevertheless the project seems to > > have difficulties to deliver a stable version for the 6 > > branch. > > > > You may also have look at ROCKS > > (http://www.rocksclusters.org/wordpress/) which seems more > > dynamic (but I don't know of it has PVM included). > > > > I have never used PVM with scilab so I can't help you with > > this. I know that there is a compile time option to enable it. > > Maybe the default version has PVM... > > > > Mathieu > > > > On 12/08/2010 01:42 PM, sebastien salmon wrote: > > > Hello, > > > > > > I'm curently working on some metaheuristic optimization > > problems using Scilab and external programs such as Dymola for > > exemple. > > > Those optimizations require a lot of computation witch could > > be parallelized. > > > I plan to set up a grid through the lab (up to 50 computers > > under windows (xp-vista-seven) or linux (fedora - debian - > > ubuntu)) and I'm loocking for some exemple of the install and > > use of pwm under Scilab. > > > > > > Thanks for your help, > > > S.Salmon > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pm at cgiss.boisestate.edu Sun Dec 12 17:03:29 2010 From: pm at cgiss.boisestate.edu (pm) Date: Sun, 12 Dec 2010 09:03:29 -0700 Subject: PVM Scilab-4.1.2 Solved problem pvm_send pvm_recv DEBIAN CASE Message-ID: <201012120903.29816.pm@cgiss.boisestate.edu> I solved my problem. It involved recognizing a number of changes that occurred at the time Scilab-4 was released. These include transitions from g77 to gfortran, and transitions from 32bit to 64 bit. Running on a cluster, Scilab 4.0 turns out to be a good solution (one generally runs in "nw" no window mode, and many of the GUI improvements of version 5 don't matter). Also, Scilab-4.0 executes faster than Scilab-5.x in some situations. SOLUTION: The Scilab bugzilla had a bug report that was on point. In the upgrade from version 4.0 to 4.1.x, a bug was introduced to file: "scilab-4.0/routines/pvm/intpvm.c" The discussion was a bit confusing, but it appears that the bug may have been fixed in versions 5.x (I have not explored that speculation) In any case, down grading to Scilab-4.0 solved my problem for 32 bit machines. For 64bit platforms, there was an additional problem with the configure script recognizing the gfortran compiler. For the Debian Lenny OS, this appears to have also been repaired in Debian source packages downloaded from: http://www.securehost.com/mirror/debian/pool/non-free/s/scilab/ These are the ones that worked scilab_4.0-12.diff.gz scilab_4.0-12.dsc scilab_4.0.orig.tar.gz The only change needed was to edit the g77 dependencies to read gfortran in the debian/control file. This is because Scilab-4.0 packages were designed for Debian Etch (version just before Lenny). On CentOS, the scilab-4.0-src.tar.gz file compiles OK if you are running 32 bit (we use CentOS on our Beowulf cluster). The compile used the following configure command: ./configure --with-gnu --with-pvm-library=/usr/share/pvm3/lib/LINUXI386/ \ --with-pvm-include=/usr/share/pvm3/include RECOMMENDATION: If you are running older hardware on a cluster, consider Scilab-4.0 if you want to be able to send messages between nodes. Also, build it from source. -- Dr. Paul Michaels, PE Professor, Engineering Geophysics http://cgiss.boisestate.edu/~pm From guylaine.collewet at cemagref.fr Mon Dec 13 10:39:01 2010 From: guylaine.collewet at cemagref.fr (Collewet Guylaine) Date: Mon, 13 Dec 2010 10:39:01 +0100 Subject: =?iso-8859-1?Q?RE=A0=3A_=5Bscilab-Users=5D_scilab_5=2E2=2E2_32_bits_u?= =?iso-8859-1?Q?nder_Win7_64_bits?= References: <003601cb9875$e406af30$ac140d90$@scilab.org> Message-ID: Hello, I found my mistake I forgot that I let the instruction fic=fopen("c:\dummy.txt","a"); fprintf(fic,"test\n"); fclose(fic); this instruction did work with windows XP but not with windows 7 ; I guess it is a problem of rights (although I am administrator ...) Guylaine -------- Message d'origine-------- De: Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Date: ven. 10/12/2010 15:32 ?: users at lists.scilab.org Objet : RE?: [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits thank you for your answer my function did work with scilab 5.2.2 under windows XP I first tested it without re-building it (the builder had been executed under windows XP) : it failed then I run the builder : it seemed to run properly, but the function failed too I suppose that the builder generated a 32 bits library since I used visual studio 9.0 installed in the Program Files (x86) directory Guylaine -------- Message d'origine-------- De: Allan CORNET [mailto:allan.cornet at scilab.org] Date: ven. 10/12/2010 15:24 ?: users at lists.scilab.org Objet : RE: [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits Hi, There is no problem to use scilab 32 bits on 64 bit platform Windows. About your functions, please check that: Librairies 32 bits used ONLY with Scilab 32 bits Librairies 64 bits used ONLY with Scilab 64 bits You can also try to debug your functions to extend compatibility with 64 bits : http://wiki.scilab.org/How_to_debug_an_external_source_code_linked_to_scilab _with_Visual_Studio Best regards Allan CORNET De : Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Envoy? : vendredi 10 d?cembre 2010 15:17 ? : users at lists.scilab.org Objet : [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits Hello, I am trying to work with scilab 5.2.2 32 bits under Win7 64 bits I have problems with own-written contribs, some functions (especially one written in C++) fail (scilab must be closed) is it possible to work with a 32 bits version in my case ? or is it mandatory to work with the 64 bits version thanks Guylaine Collewet -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Mon Dec 13 10:46:16 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Mon, 13 Dec 2010 10:46:16 +0100 Subject: [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits In-Reply-To: References: <003601cb9875$e406af30$ac140d90$@scilab.org> Message-ID: <003301cb9aaa$964d3070$c2e79150$@scilab.org> Hi, With Windows Seven, you do not write in c:\ with default user rights. -->fic=mopen("c:\dummy.txt","a") !--error 999 mopen: Cannot open file c:\dummy.txt. Allan De : Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Envoy? : lundi 13 d?cembre 2010 10:39 ? : users at lists.scilab.org Objet : RE : [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits Hello, I found my mistake I forgot that I let the instruction fic=fopen("c:\dummy.txt","a"); fprintf(fic,"test\n"); fclose(fic); this instruction did work with windows XP but not with windows 7 ; I guess it is a problem of rights (although I am administrator ...) Guylaine -------- Message d'origine-------- De: Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Date: ven. 10/12/2010 15:32 ?: users at lists.scilab.org Objet : RE : [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits thank you for your answer my function did work with scilab 5.2.2 under windows XP I first tested it without re-building it (the builder had been executed under windows XP) : it failed then I run the builder : it seemed to run properly, but the function failed too I suppose that the builder generated a 32 bits library since I used visual studio 9.0 installed in the Program Files (x86) directory Guylaine -------- Message d'origine-------- De: Allan CORNET [mailto:allan.cornet at scilab.org] Date: ven. 10/12/2010 15:24 ?: users at lists.scilab.org Objet : RE: [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits Hi, There is no problem to use scilab 32 bits on 64 bit platform Windows. About your functions, please check that: Librairies 32 bits used ONLY with Scilab 32 bits Librairies 64 bits used ONLY with Scilab 64 bits You can also try to debug your functions to extend compatibility with 64 bits : http://wiki.scilab.org/How_to_debug_an_external_source_code_linked_to_scilab _with_Visual_Studio Best regards Allan CORNET De : Collewet Guylaine [mailto:guylaine.collewet at cemagref.fr] Envoy? : vendredi 10 d?cembre 2010 15:17 ? : users at lists.scilab.org Objet : [scilab-Users] scilab 5.2.2 32 bits under Win7 64 bits Hello, I am trying to work with scilab 5.2.2 32 bits under Win7 64 bits I have problems with own-written contribs, some functions (especially one written in C++) fail (scilab must be closed) is it possible to work with a 32 bits version in my case ? or is it mandatory to work with the 64 bits version thanks Guylaine Collewet -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Louis.Auge at grenoble.cnrs.fr Mon Dec 13 14:30:38 2010 From: Jean-Louis.Auge at grenoble.cnrs.fr (Jean-Louis Auge) Date: Mon, 13 Dec 2010 14:30:38 +0100 Subject: Graphics interface! Message-ID: <4D061FFE.7080304@grenoble.cnrs.fr> Dear user, I was on the website http://www.scilab.org/contrib/index_contrib.php?page=download&category=OPTIMIZATION%20TOOLS to download files concerning graphics interface. Unfortunaly I cannot download any files. Does somebody can help me to pick up this kind of files? Files are empty! CU soon. JLA. From jjdmon at pobox.com Mon Dec 13 23:41:13 2010 From: jjdmon at pobox.com (Jeff DuMonthier) Date: Mon, 13 Dec 2010 17:41:13 -0500 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <4CEEBE7B.2090009@laas.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> Message-ID: I just downloaded and tried scilab-master-1289308877, which I believe is the current 5.3 beta build for Mac. The crashing behavior is gone and it's back to hanging like it did before. On Nov 25, 2010, at 2:52 PM, Antoine Monmayrant wrote: > Le 24/11/10 23:30, Sylvestre Ledru a ?crit : >> Oh, a new Mac OS X bug! Youpi! :) >> I don't know if you are the one who reported this bug: >> http://bugzilla.scilab.org/show_bug.cgi?id=8460 >> The conversation about this issue will continue on this bug report. >> >> Antoine, Scilab is supposed to run under Leopard (10.5) and Snow Leopard >> (10.6). If you are experiencing an other issue that bug #8460, please >> report a new bug. > OK, I just check on scilab-branches-5.3-1290177191 and it seems to be the same bug: > > Exception Type: EXC_BREAKPOINT (SIGTRAP) > Exception Codes: 0x0000000000000002, 0x0000000000000000 > Crashed Thread: 0 > > Dyld Error Message: > unknown required load command 0x80000022 > >> Anyway, thanks for the feedback, it is appreciated. >> Sylvestre >> >> On Wed, 2010-11-24 at 17:15 -0500, Jeff DuMonthier wrote: >>> I've tried this and the 64 bit 1.6 is already at the top. >>> >>> Previous versions have hung. The Scilab icon changes to a generic Java icon after a few bounces and that's it until I kill it. I just tried the 5.3.0-beta-5 and that version crashes instead of hangs. I'm not sure if that's in improvement or not. Maybe, because at least I got an error message in the crash report which was this: >>> >>> Exception Type: EXC_BREAKPOINT (SIGTRAP) >>> Exception Codes: 0x0000000000000002, 0x0000000000000000 >>> Crashed Thread: 1 >>> >>> Dyld Error Message: >>> Symbol not found: _libiconv_open >>> Referenced from: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libintl.3.dylib >>> Expected in: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libiconv.2.dylib >>> >>> On Nov 18, 2010, at 4:56 AM, Sylvestre Ledru wrote: >>> >>>> Le jeudi 18 novembre 2010 ? 09:51 +0000, Heinz Nabielek a ?crit : >>>>> Sylvestre Ledru writes: >>>>> >>>>> >>>>> Hello, >>>>> >>>>> Le mercredi 17 novembre 2010 ? 20:37 +0000, Heinz Nabielek a ?crit : >>>>> SciLab and Mac friends: >>>>> I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. >>>>> A Scilab 5.2 beta version had worked at one time, but not any more. >>>>> Starting error messages are shown below. >>>>> Help greatly appreciated. Heinz.................. >>>>> >>>>> We are aware of the recurring issues under Mac OS X. ............ >>>>> I heard that if you go in the Java Preferences menu on >>>>> your system andyou change the order of the JVM, it might fix your problem. >>>>> >>>>> Sylvestre >>>>> >>>>> >>>>> I can see "Java Preferences now shows all discovered JVMs >>>>> in a single list in the General tab". >>>>> >>>>> But, sorry, where do I find and change Java Preferences? >>>> In the finder, search for an application called "Java Preferences" (in >>>> French, it is "Pr?f?rences Java"). >>>> You will see some implementations of Java. >>>> Drag and drop the 1.6 64 bits on the top. >>>> >>>> It is my personal opinion but I found the way Apple is managing various >>>> JVMs pretty bad. We are working on tackling these issues from Scilab but >>>> since they are changing things regularly, it is hard to keep track... >>>> >>>> Sylvestre >>>> PS: When you reply, please configure your mailer to add the ">". Thanks >>>> >>>> >> > From sylvestre.ledru at scilab.org Mon Dec 13 23:47:45 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 13 Dec 2010 23:47:45 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> Message-ID: <1292280465.14315.119.camel@losinj.inria.fr> Thanks for the feedback. By the way, some users reported an incompatibility caused by Audio Hijack. Scilab 5.3.0 won't be available under Mac OS X 10.5 due to a recent update from Apple. We are working on it but it is pretty tricky... Sylvestre On Mon, 2010-12-13 at 17:41 -0500, Jeff DuMonthier wrote: > I just downloaded and tried scilab-master-1289308877, which I believe is the current 5.3 beta build for Mac. The crashing behavior is gone and it's back to hanging like it did before. > > On Nov 25, 2010, at 2:52 PM, Antoine Monmayrant wrote: > > > Le 24/11/10 23:30, Sylvestre Ledru a ?crit : > >> Oh, a new Mac OS X bug! Youpi! :) > >> I don't know if you are the one who reported this bug: > >> http://bugzilla.scilab.org/show_bug.cgi?id=8460 > >> The conversation about this issue will continue on this bug report. > >> > >> Antoine, Scilab is supposed to run under Leopard (10.5) and Snow Leopard > >> (10.6). If you are experiencing an other issue that bug #8460, please > >> report a new bug. > > OK, I just check on scilab-branches-5.3-1290177191 and it seems to be the same bug: > > > > Exception Type: EXC_BREAKPOINT (SIGTRAP) > > Exception Codes: 0x0000000000000002, 0x0000000000000000 > > Crashed Thread: 0 > > > > Dyld Error Message: > > unknown required load command 0x80000022 > > > >> Anyway, thanks for the feedback, it is appreciated. > >> Sylvestre > >> > >> On Wed, 2010-11-24 at 17:15 -0500, Jeff DuMonthier wrote: > >>> I've tried this and the 64 bit 1.6 is already at the top. > >>> > >>> Previous versions have hung. The Scilab icon changes to a generic Java icon after a few bounces and that's it until I kill it. I just tried the 5.3.0-beta-5 and that version crashes instead of hangs. I'm not sure if that's in improvement or not. Maybe, because at least I got an error message in the crash report which was this: > >>> > >>> Exception Type: EXC_BREAKPOINT (SIGTRAP) > >>> Exception Codes: 0x0000000000000002, 0x0000000000000000 > >>> Crashed Thread: 1 > >>> > >>> Dyld Error Message: > >>> Symbol not found: _libiconv_open > >>> Referenced from: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libintl.3.dylib > >>> Expected in: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libiconv.2.dylib > >>> > >>> On Nov 18, 2010, at 4:56 AM, Sylvestre Ledru wrote: > >>> > >>>> Le jeudi 18 novembre 2010 ? 09:51 +0000, Heinz Nabielek a ?crit : > >>>>> Sylvestre Ledru writes: > >>>>> > >>>>> > >>>>> Hello, > >>>>> > >>>>> Le mercredi 17 novembre 2010 ? 20:37 +0000, Heinz Nabielek a ?crit : > >>>>> SciLab and Mac friends: > >>>>> I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. > >>>>> A Scilab 5.2 beta version had worked at one time, but not any more. > >>>>> Starting error messages are shown below. > >>>>> Help greatly appreciated. Heinz.................. > >>>>> > >>>>> We are aware of the recurring issues under Mac OS X. ............ > >>>>> I heard that if you go in the Java Preferences menu on > >>>>> your system andyou change the order of the JVM, it might fix your problem. > >>>>> > >>>>> Sylvestre > >>>>> > >>>>> > >>>>> I can see "Java Preferences now shows all discovered JVMs > >>>>> in a single list in the General tab". > >>>>> > >>>>> But, sorry, where do I find and change Java Preferences? > >>>> In the finder, search for an application called "Java Preferences" (in > >>>> French, it is "Pr?f?rences Java"). > >>>> You will see some implementations of Java. > >>>> Drag and drop the 1.6 64 bits on the top. > >>>> > >>>> It is my personal opinion but I found the way Apple is managing various > >>>> JVMs pretty bad. We are working on tackling these issues from Scilab but > >>>> since they are changing things regularly, it is hard to keep track... > >>>> > >>>> Sylvestre > >>>> PS: When you reply, please configure your mailer to add the ">". Thanks > >>>> > >>>> > >> > > > From Simon.Abdallah at eblf.com Tue Dec 14 08:19:28 2010 From: Simon.Abdallah at eblf.com (Simon Abdallah) Date: Tue, 14 Dec 2010 09:19:28 +0200 Subject: Can Scilab help me with Value at Risk calculations? Message-ID: Good morning, My name is Simon Abdallah. I do work at a bank in Lebanon. I am researching an open source software that can help calculate Value at Risk (VaR) numbers for stocks, options, futures , bonds and FX. Do you think Scilab can provide any value added on this topic? Thank you much. Kind regards, Simon Abdallah Risk Management T?l : +961 (1) 791 332 (ext. 1274) Fax : +961 (1) 791 332 (ext. 1498) Email : simon.abdallah at eblf.com www.eblf.com Pensez ? l?environnement et n?imprimez ce mail qu?en cas de n?cessit?. Please consider the environment before printing this email. ---------------------------------------------------------------------- Ce message (incluant tout document attach?) contient des informations confidentielles ou appartenant ? la Banque Libano-Fran?aise. Il est ?tabli ? l' intention exclusive de ses destinataires, et n' engage pas la Banque Libano-Fran?aise de fa?on contractuelle. Toute divulgation, utilisation, diffusion ou reproduction ( totale ou partielle ) de ce message, ou des informations qu' il contient doit ?tre pr?alablement autoris?e. Tout message ?lectronique est susceptible d' alt?ration et son int?grit? ne peut ?tre assur?e. La Banque Libano-Fran?aise d?cline toute responsabilit? au titre de ce message s'il a ?t? modifi? ou falsifi?. Si vous n'?tes pas le destinataire de ce message, merci de le d?truire imm?diatement et d'avertir l'exp?diteur de l'erreur de distribution et de la destruction du message. This e-mail ( including any attachments ) contains confidential information or information belonging to Banque Libano-Fran?aise. It is intended only for the addressee, and does not engage Banque Libano-Fran?aise in a contractual way. The unauthorized disclosure, use, dissemination or copying (either whole or partial) of this e-mail, or any information it contains, is prohibited. E-mails are susceptible to alteration and their integrity cannot be guaranteed. Banque Libano-Fran?aise shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail,please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. ---------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 3307 bytes Desc: not available URL: From antoine.monmayrant at laas.fr Tue Dec 14 09:40:55 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Tue, 14 Dec 2010 09:40:55 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <1292280465.14315.119.camel@losinj.inria.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> Message-ID: <4D072D97.1050702@laas.fr> Le 13/12/2010 23:47, Sylvestre Ledru a ?crit : > Thanks for the feedback. > By the way, some users reported an incompatibility caused by Audio > Hijack. Every 5.3 version of scilab I tried has crashed on my Mac and I have Hijack. I'll try to uninstall it and try again. I let you know how it goes. Any bug# I should look into? Antoine > Scilab 5.3.0 won't be available under Mac OS X 10.5 due to a recent > update from Apple. We are working on it but it is pretty tricky... > > Sylvestre > > > On Mon, 2010-12-13 at 17:41 -0500, Jeff DuMonthier wrote: >> I just downloaded and tried scilab-master-1289308877, which I believe is the current 5.3 beta build for Mac. The crashing behavior is gone and it's back to hanging like it did before. >> >> On Nov 25, 2010, at 2:52 PM, Antoine Monmayrant wrote: >> >>> Le 24/11/10 23:30, Sylvestre Ledru a ?crit : >>>> Oh, a new Mac OS X bug! Youpi! :) >>>> I don't know if you are the one who reported this bug: >>>> http://bugzilla.scilab.org/show_bug.cgi?id=8460 >>>> The conversation about this issue will continue on this bug report. >>>> >>>> Antoine, Scilab is supposed to run under Leopard (10.5) and Snow Leopard >>>> (10.6). If you are experiencing an other issue that bug #8460, please >>>> report a new bug. >>> OK, I just check on scilab-branches-5.3-1290177191 and it seems to be the same bug: >>> >>> Exception Type: EXC_BREAKPOINT (SIGTRAP) >>> Exception Codes: 0x0000000000000002, 0x0000000000000000 >>> Crashed Thread: 0 >>> >>> Dyld Error Message: >>> unknown required load command 0x80000022 >>> >>>> Anyway, thanks for the feedback, it is appreciated. >>>> Sylvestre >>>> >>>> On Wed, 2010-11-24 at 17:15 -0500, Jeff DuMonthier wrote: >>>>> I've tried this and the 64 bit 1.6 is already at the top. >>>>> >>>>> Previous versions have hung. The Scilab icon changes to a generic Java icon after a few bounces and that's it until I kill it. I just tried the 5.3.0-beta-5 and that version crashes instead of hangs. I'm not sure if that's in improvement or not. Maybe, because at least I got an error message in the crash report which was this: >>>>> >>>>> Exception Type: EXC_BREAKPOINT (SIGTRAP) >>>>> Exception Codes: 0x0000000000000002, 0x0000000000000000 >>>>> Crashed Thread: 1 >>>>> >>>>> Dyld Error Message: >>>>> Symbol not found: _libiconv_open >>>>> Referenced from: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libintl.3.dylib >>>>> Expected in: /Users/jeff/Applications/scilab-5.3.0-beta-5.app/Contents/MacOS/lib/thirdparty//libiconv.2.dylib >>>>> >>>>> On Nov 18, 2010, at 4:56 AM, Sylvestre Ledru wrote: >>>>> >>>>>> Le jeudi 18 novembre 2010 ? 09:51 +0000, Heinz Nabielek a ?crit : >>>>>>> Sylvestre Ledru writes: >>>>>>> >>>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> Le mercredi 17 novembre 2010 ? 20:37 +0000, Heinz Nabielek a ?crit : >>>>>>> SciLab and Mac friends: >>>>>>> I cannot get any Scilab 5.x version starting on my Intel iMac 10.6.5. >>>>>>> A Scilab 5.2 beta version had worked at one time, but not any more. >>>>>>> Starting error messages are shown below. >>>>>>> Help greatly appreciated. Heinz.................. >>>>>>> >>>>>>> We are aware of the recurring issues under Mac OS X. ............ >>>>>>> I heard that if you go in the Java Preferences menu on >>>>>>> your system andyou change the order of the JVM, it might fix your problem. >>>>>>> >>>>>>> Sylvestre >>>>>>> >>>>>>> >>>>>>> I can see "Java Preferences now shows all discovered JVMs >>>>>>> in a single list in the General tab". >>>>>>> >>>>>>> But, sorry, where do I find and change Java Preferences? >>>>>> In the finder, search for an application called "Java Preferences" (in >>>>>> French, it is "Pr?f?rences Java"). >>>>>> You will see some implementations of Java. >>>>>> Drag and drop the 1.6 64 bits on the top. >>>>>> >>>>>> It is my personal opinion but I found the way Apple is managing various >>>>>> JVMs pretty bad. We are working on tackling these issues from Scilab but >>>>>> since they are changing things regularly, it is hard to keep track... >>>>>> >>>>>> Sylvestre >>>>>> PS: When you reply, please configure your mailer to add the ">". Thanks >>>>>> >>>>>> > -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche 31077 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayrant at laas.fr permanent email : antoine.monmayrant at polytechnique.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++ From sylvestre.ledru at scilab.org Tue Dec 14 09:45:33 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 14 Dec 2010 09:45:33 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <4D072D97.1050702@laas.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> <4D072D97.1050702@laas.fr> Message-ID: <1292316333.25237.28667.camel@korcula.inria.fr> Le mardi 14 d?cembre 2010 ? 09:40 +0100, Antoine Monmayrant a ?crit : > Le 13/12/2010 23:47, Sylvestre Ledru a ?crit : > > Thanks for the feedback. > > By the way, some users reported an incompatibility caused by Audio > > Hijack. > Every 5.3 version of scilab I tried has crashed on my Mac and I have > Hijack. I'll try to uninstall it and try again. > I let you know how it goes. > Any bug# I should look into? http://bugzilla.scilab.org/show_bug.cgi?id=7012#c23 Sylvestre From bernard.hugueney at scilab.org Tue Dec 14 09:50:16 2010 From: bernard.hugueney at scilab.org (bernard.hugueney at scilab.org) Date: Tue, 14 Dec 2010 09:50:16 +0100 Subject: [scilab-Users] Can Scilab help me with Value at Risk =?UTF-8?Q?calculations=3F?= In-Reply-To: References: Message-ID: <19db8ea8d61435b738b9c6e0bb428807@scilab.org> Hi, On Tue, 14 Dec 2010 09:19:28 +0200, Simon Abdallah wrote: > Good morning, > My name is Simon Abdallah. > I do work at a bank in Lebanon. > I am researching an open source software that can help calculate > Value at Risk (VaR) numbers for stocks, options, futures , bonds and > FX. > > Do you think Scilab can provide any value added on this topic? > You might want to look into http://atoms.scilab.org/toolboxes/Financial Best Regards, Bernard Hugueney From paul.carrico at esterline.com Tue Dec 14 11:40:11 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 14 Dec 2010 11:40:11 +0100 Subject: practical question under windows Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B035@exchsrv.AUXITROL1> Dear all, Is it possible under windows : 1- to open a dos (prompt) windows 2- to launch in a "tail -f" command the goal is to follow in an interactive mode an external calculation launched by Scilab ! Regards Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Tue Dec 14 14:15:38 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 14 Dec 2010 14:15:38 +0100 Subject: [scilab-Users] practical question under windows In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B035@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B035@exchsrv.AUXITROL1> Message-ID: <002d01cb9b91$001dd770$00598650$@scilab.org> Hi, See help dos or help unix If tail executable is in your PATH environment , you could call this .exe Allan De : Carrico, Paul [mailto:paul.carrico at esterline.com] Envoy? : mardi 14 d?cembre 2010 11:40 ? : users at lists.scilab.org Objet : [scilab-Users] practical question under windows Dear all, Is it possible under windows : 1- to open a dos (prompt) windows 2- to launch in a "tail -f" command the goal is to follow in an interactive mode an external calculation launched by Scilab ! Regards Paul ---------------------------------------------------------------------------- ---- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kiyoshim at d1.dion.ne.jp Tue Dec 14 14:48:29 2010 From: kiyoshim at d1.dion.ne.jp (kiyo) Date: Tue, 14 Dec 2010 22:48:29 +0900 Subject: xcos block parameter not working Message-ID: <008401cb9b95$999fcc10$ccdf6430$@dion.ne.jp> Dear Scilab members, I have just installed Scilab 5.2.2 /win32 binary on VISTA/home premium/ Service pack 1. After starting XCOS, the block parameter setting window does not appear when double clicking on the diagram, which was not the case with XP/Professional/Service Pack 3. Does anyone have any idea what is wrong? Thank you for your kind help in advance. With best regards, KM -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederic.jourdin at shom.fr Tue Dec 14 15:01:11 2010 From: frederic.jourdin at shom.fr (Frederic Jourdin) Date: Tue, 14 Dec 2010 15:01:11 +0100 Subject: [scilab-Users] Graphics interface! In-Reply-To: <4D061FFE.7080304@grenoble.cnrs.fr> References: <4D061FFE.7080304@grenoble.cnrs.fr> Message-ID: <4D0778A7.1040004@shom.fr> Hi, no problem for me to dowload these. Have you checked other web navigators ? Fred Jean-Louis Auge a ?crit : > Dear user, > > I was on the website > http://www.scilab.org/contrib/index_contrib.php?page=download&category=OPTIMIZATION%20TOOLS > > to download files concerning graphics interface. > Unfortunaly I cannot download any files. > Does somebody can help me to pick up this kind of files? > Files are empty! > > CU soon. > > JLA. > From matt at westpak.com Tue Dec 14 23:47:35 2010 From: matt at westpak.com (Matt Bigarani) Date: Tue, 14 Dec 2010 14:47:35 -0800 Subject: subplot padding/spacing Message-ID: Hi All, I want to display about 20 subplots in a single window. The issues I'm running into are that Scilab isn't using all of the area available to it and plot titles are overlapping axis titles... (See this PNG: http://i.imgur.com/P88HI.png). That's with a 5x4 grid of subplots. A 4x5 grid has similar issues with plots & titles fitting inside the window. I'm dumping all of this data to scilab using the C API. I know I can use get("current_axes"); and a.margins=[?,?,?,?]; to lay each subplot out how I want. I'm wondering if there's an easier way to add some spacing between subplots and possibly center the whole bunch in the middle of the window? Thanks, Matt Bigarani -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Wed Dec 15 00:00:50 2010 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Wed, 15 Dec 2010 00:00:50 +0100 Subject: [scilab-Users] subplot padding/spacing In-Reply-To: References: Message-ID: <20101215000050.19714lg57ruyv28w@webmail.utc.fr> Hi, I strongly recommend you to use the plotlib (atoms package) you will see that spacing/padding is correctly managed with its redefinition of subplot. S. Matt Bigarani a ?crit?: > Hi All, > > > > I want to display about 20 subplots in a single window. The issues I'm > running into are that Scilab isn't using all of the area available to it > and plot titles are overlapping axis titles... (See this PNG: > http://i.imgur.com/P88HI.png). That's with a 5x4 grid of subplots. A 4x5 > grid has similar issues with plots & titles fitting inside the window. > > > > I'm dumping all of this data to scilab using the C API. I know I can use > get("current_axes"); and a.margins=[?,?,?,?]; to lay each subplot out > how I want. I'm wondering if there's an easier way to add some spacing > between subplots and possibly center the whole bunch in the middle of > the window? > > > > Thanks, > > Matt Bigarani > > From jjdmon at pobox.com Wed Dec 15 03:10:21 2010 From: jjdmon at pobox.com (Jeff DuMonthier) Date: Tue, 14 Dec 2010 21:10:21 -0500 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <1292316333.25237.28667.camel@korcula.inria.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> <4D072D97.1050702@laas.fr> <1292316333.25237.28667.camel@korcula.inria.fr> Message-ID: That was the problem for me. I hadn't used Audio Hijack in quite a while, but I had it installed. After uninstalling the Instant Hijack component I am now able to run Scilab 5.2.1, 5.2.2 and the latest 5.3 nightly build: 5.3-1292189503. The 5.3 beta 5 still crashes, but that is a separate issue that has already been fixed since the development build works. On Dec 14, 2010, at 3:45 AM, Sylvestre Ledru wrote: > Le mardi 14 d?cembre 2010 ? 09:40 +0100, Antoine Monmayrant a ?crit : >> Le 13/12/2010 23:47, Sylvestre Ledru a ?crit : >>> Thanks for the feedback. >>> By the way, some users reported an incompatibility caused by Audio >>> Hijack. >> Every 5.3 version of scilab I tried has crashed on my Mac and I have >> Hijack. I'll try to uninstall it and try again. >> I let you know how it goes. >> Any bug# I should look into? > http://bugzilla.scilab.org/show_bug.cgi?id=7012#c23 > > Sylvestre > > From ray at aarden.us Wed Dec 15 03:28:44 2010 From: ray at aarden.us (ray joseph) Date: Tue, 14 Dec 2010 20:28:44 -0600 Subject: [scilab-Users] Can Scilab help me with Value at Risk calculations? In-Reply-To: References: Message-ID: Simon, This is a valuable concern. As in most question of capability of specific tools to perform a specific calculation, the answer is typically yes. A more telling question may be - is it well suited? This goes beyond mere calculations and moves to work flow. Whether the intent is to input a small set of data and calculate a single value or to extract volumes of data from a database and produce a VAR and the related statistics, Scilab has the connectivity and calculation capabilities. Additionally, depending upon who will be using it, a GUI can be built to guide the efforts and provide the means to analyze the resultant calculations. If the intent is to do more than calculate a number, say you want to support a decision process that relies upon this number (VAR), you may want to set up a graphical ?argument? showing the relationships of the components that drive the decision and the (assumed) fundamental component (VAR) in an influence diagram. Xcos provides this capability. Now, the stakeholders can visualize the connectivity of the concerns, graph the consequences and experiment with scenarios. So it is a question of what do you want to do. Scilab covers many opportunities. If you want to see an example of how this can be done in other apps, have a look at Lumina?s Analytica. See how the big money does it, learn their methods and then decide how you would like to see the best. Emulate success. Learn the rules well so you will understand how to best break them. Identify your goals. Redefine your requirements. Throw your Raku. Enjoy and let us know what you think, ray _____ From: Simon Abdallah [mailto:Simon.Abdallah at eblf.com] Sent: Tuesday, December 14, 2010 1:19 AM To: users at lists.scilab.org Subject: [scilab-Users] Can Scilab help me with Value at Risk calculations? Good morning, My name is Simon Abdallah. I do work at a bank in Lebanon. I am researching an open source software that can help calculate Value at Risk (VaR) numbers for stocks, options, futures , bonds and FX. Do you think Scilab can provide any value added on this topic? Thank you much. Kind regards, Simon Abdallah Risk Management T?l : +961 (1) 791 332 (ext. 1274) Fax : +961 (1) 791 332 (ext. 1498) Email : simon.abdallah at eblf.com www.eblf.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3307 bytes Desc: not available URL: From mabille at supagro.inra.fr Wed Dec 15 14:47:08 2010 From: mabille at supagro.inra.fr (=?iso-8859-1?Q?Fr=E9d=E9ric_Mabille?=) Date: Wed, 15 Dec 2010 14:47:08 +0100 Subject: %eps ?! Message-ID: <366F5457-0D8D-4982-A7EB-4468ACE054D2@supagro.inra.fr> Hi, During the computation of my program, my function "if" produce a strange result. I fact, after many investigations, I have observed a very surprising result. for i = 1:10 test = .4*i - 1.2 ; if test == 0 then ... But when i = 3, scilab give me : test = %eps = -2.220D-16 <> 0 !!! It is really awkward. Could someone have a simple solution ? Thx Fr?d?ric -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajpeliz at fc.ul.pt Wed Dec 15 15:37:38 2010 From: ajpeliz at fc.ul.pt (Alvaro Peliz) Date: Wed, 15 Dec 2010 14:37:38 +0000 Subject: [scilab-Users] %eps ?! In-Reply-To: <366F5457-0D8D-4982-A7EB-4468ACE054D2@supagro.inra.fr> References: <366F5457-0D8D-4982-A7EB-4468ACE054D2@supagro.inra.fr> Message-ID: <4D08D2B2.9090705@fc.ul.pt> On 12/15/2010 01:47 PM, Fr?d?ric Mabille wrote: > Hi, > > During the computation of my program, my function "if" produce a > strange result. > I fact, after many investigations, I have observed a very surprising > result. > > /for i = 1:10/ > /test = .4*i - 1.2 ;/ > /if test == 0 then .../ > > But when i = 3, scilab give me : test = %eps = -2.220D-16 <> 0 !!! > It is really awkward. > > Could someone have a simple solution ? > Thx > > Fr?d?ric Hi dont know with scilab, but with matlab you should not mix i (index) with i (complex number) -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Wed Dec 15 17:10:24 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 15 Dec 2010 17:10:24 +0100 Subject: [scilab-Users] %eps ?! In-Reply-To: <366F5457-0D8D-4982-A7EB-4468ACE054D2@supagro.inra.fr> References: <366F5457-0D8D-4982-A7EB-4468ACE054D2@supagro.inra.fr> Message-ID: <4D08E870.6020208@scilab.org> Hi, This is a nice one... To understand the issue, you may run the following lines : atomsInstall(['floatingpoint','0.2']); atomsLoad(['floatingpoint','0.2']); flps = flps_systemnew ( "IEEEdouble" ); flpn = flps_numbernew ( "double" , flps , 0.4 ) This will print the binary decomposition of 0.4 : Significand = 1001100110011001100110011001100110011001100110011010 You see that the significand makes use of the pattern 1100. This means that x=0.4 can be represented in base 2 only with an infinite sequence of ones and zeros. You may see the same behaviour with x=0.1. But only 53 binary digits can be considered, because this is the precision of doubles in Scilab. This leads to rounding, i.e. the floating point number which is stored is the floating point number which is the closest (but not equal) to 0.4. If you cannot change the test, you may change the condition to : i = 3; test = .4*i - 1.2 ; abs(test)<= %eps If you can change the test, you can simply use integers, which can be safely represented exactly in the range [-2^52,2^52] : i = 3; test = 4*i - 12 ; test==0 Best regards, Micha?l Baudin PS A more detailed explanation for x=0.1 is given in "Scilab is not naive", Digiteo, Baudin, 2010, provided in the Tutorials section of the site scilab.org : http://www.scilab.org/en/support/documentation/tutorials See the section A.1, "Why 0.1 is rounded". Le 15/12/2010 14:47, Fr?d?ric Mabille a ?crit : > Hi, > > During the computation of my program, my function "if" produce a > strange result. > I fact, after many investigations, I have observed a very surprising > result. > > /for i = 1:10/ > /test = .4*i - 1.2 ;/ > /if test == 0 then .../ > > But when i = 3, scilab give me : test = %eps = -2.220D-16 <> 0 !!! > It is really awkward. > > Could someone have a simple solution ? > Thx > > Fr?d?ric -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tvitklg at rambler.ru Wed Dec 15 18:24:55 2010 From: tvitklg at rambler.ru (...TViT.......ICQ:285247380.......) Date: Wed, 15 Dec 2010 20:24:55 +0300 Subject: __IIR Filters_Russia Message-ID: <624263101.1292433895.262126472.70463@mcgi-wr-13.rambler.ru> Hi dear! Tell me please where it is possible the detailed help to receive or where to read about digital filters? It is necessary as it is possible more precisely and more in detail what functions to use, what type of the filter is used in Scilab. How to print out on the screen coef. consecutive sections (stages) one for another. To not spend it is a lot of time for learning of functions, there is at you a pattern or such example where to substitute the values for result, time are very poorly necessary coef. of different types of realization of digital filters... In Help Scilab 5.2.2 only it: ------------------------------------------------------------------------- hz=iir(3,'bp','ellip',[.15 .25],[.08 .03]); [hzm,fr]=frmag(hz,256); plot2d(fr',hzm') xtitle('Discrete IIR filter band pass 0.15<fr<0.25 ',' ',' '); q=poly(0,'q'); //to express the result in terms of the delay operator q=z^-1 hzd=horner(hz,1/q) ------------------------------------------------------------------------- 2. Why there are mistakes of a conclusion of factors at 'bp' order = 2 When order = 4 or all is higher Coef. are printed on the screen, but only array not a 2 orders sections I make so: ----------------------------------------------------------------------------------------------------------- clear ftype ='bp' fdesign ='cheb1' //'butt', 'cheb1', 'cheb2' and 'ellip' fc1 = 800; // cutoff frequency fc2 = 900; fs = 11025; // Sampling frequency fc1n = fc1/fs; // cutoff frequency normalized fc2n = fc2/fs; order = 2; NUM_SIZE = order+3; //-BP!-order4...+5 order6...+7 order8...+9 DEN_SIZE = order+3; //-HP!-order4...+1 hz = iir (order, ftype, fdesign, [fc1n fc2n], [.01 .01]); num=coeff(hz("num")); den=coeff(hz("den")); [hzm,fr]=frmag(hz,1024); plot2d(fr',hzm') //plot2d(f, abs(hf)) printf(" ======= IIR Coef --- ftype: %s, fdesign: %s, order: %i =======\n",ftype,fdesign,order); printf(" --- num: \n"); for i=1:NUM_SIZE, printf("%.20f\n", num(NUM_SIZE-i+1)); end printf(" --- den: \n"); for i=1:DEN_SIZE, printf("%.20f\n", den(NUM_SIZE-i+1)); end printf(" ============== END Coefficients ==============\n"); ---------------------------------------------------------------------------------------------------------------------------------------------------- -- ...TViT.......ICQ:285247380....... tvitklg at rambler.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed Dec 15 19:26:01 2010 From: Samuel.Gougeon at univ-lemans.fr (Samuel GOUGEON) Date: Wed, 15 Dec 2010 19:26:01 +0100 Subject: [scilab-Users] __IIR Filters_Russia In-Reply-To: <624263101.1292433895.262126472.70463@mcgi-wr-13.rambler.ru> References: <624263101.1292433895.262126472.70463@mcgi-wr-13.rambler.ru> Message-ID: <4D090839.60500@univ-lemans.fr> Hi, The best help on this topic is available here: http://wiki.scilab.org/Tutorials?action=AttachFile&do=get&target=signal.pdf Regards Samuel ----- Message d'origine ----- De : ...TViT.......ICQ:285247380....... Date : 15/12/2010 18:24: > > Hi dear! > Tell me please where it is possible the detailed help to receive or where to > read about digital filters? It is necessary as it is possible more precisely > and more in detail what functions to use, what type of the filter is used in > Scilab. How to print out on the screen coef. consecutive sections (stages) one > for another. To not spend it is a lot of time for learning of functions, there > is at you a pattern or such example where to substitute the values for result, > time are very poorly necessary coef. of different types of realization of > digital filters... > .../... > -------------- next part -------------- An HTML attachment was scrubbed... URL: From clemence.davoust at scilab.org Thu Dec 16 14:03:50 2010 From: clemence.davoust at scilab.org (=?ISO-8859-1?Q?Cl=E9mence_DAVOUST?=) Date: Thu, 16 Dec 2010 14:03:50 +0100 Subject: Release of Scilab 5.3.0 Message-ID: Dear all, The Scilab R&D Team is pleased to announce the release of Scilab 5.3.0. Download and information can be found at: http://www.scilab.org/en/products/scilab/download Sources for this version : http://www.scilab.org/en/communities/developer_zone/scilab_versions/stable Best Regards, ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jean-Louis.Auge at grenoble.cnrs.fr Thu Dec 16 16:40:52 2010 From: Jean-Louis.Auge at grenoble.cnrs.fr (Jean-Louis Auge) Date: Thu, 16 Dec 2010 16:40:52 +0100 Subject: [scilab-Users] Graphics interface! In-Reply-To: <4D0778A7.1040004@shom.fr> References: <4D061FFE.7080304@grenoble.cnrs.fr> <4D0778A7.1040004@shom.fr> Message-ID: <4D0A3304.6040709@grenoble.cnrs.fr> Thank you for the idea. I managed to download the zip.file with interent explorer. It is not possible when I used mozilla! JLA. Frederic Jourdin a ?crit : > Hi, > no problem for me to dowload these. > Have you checked other web navigators ? > Fred > > Jean-Louis Auge a ?crit : >> Dear user, >> >> I was on the website >> http://www.scilab.org/contrib/index_contrib.php?page=download&category=OPTIMIZATION%20TOOLS >> >> to download files concerning graphics interface. >> Unfortunaly I cannot download any files. >> Does somebody can help me to pick up this kind of files? >> Files are empty! >> >> CU soon. >> >> JLA. >> > > -- Jean-Louis Aug? ______________________________________________________ Grenoble Electrical Engineering Laboratory G2E Lab UMR 5269 CNRS-UJF-INPG 25, av.des Martyrs B.P. 166 Grenoble Cedex 9 38042 FRANCE Phone: 33 4 76 88 10 74 Fax: 33 4 76 88 79 45 ______________________________________________________ IUT B - 17 rue de France - 69627 VILLEURBANNE Cedex - FRANCE Phone : 33 4 72 65 54 92 / 54 01 Fax : 33 4 72 65 53 73 From p_ledoux at yahoo.com.br Fri Dec 17 05:11:21 2010 From: p_ledoux at yahoo.com.br (Pedro Ledoux) Date: Thu, 16 Dec 2010 20:11:21 -0800 (PST) Subject: function link and Fortran codes Message-ID: <543942.95074.qm@web120518.mail.ne1.yahoo.com> Was told me that with this function, I'd be able to call C or Fortran functions in scilab and use then. So with function load it would be possible. I tried to do it for a simple Fortran code: SUBROUTINE sci(n,v) integer :: n real,dimension(n) :: v v=sin(v) END SUBROUTINE sci When I tried to use link comand: Um erro ocorreu: funt.o: Apenas ET_DYN e ET_EXEC podem ser carregados !--error 236 link: O arquivo compartilhado n?o foi carregado: (null) translating: An error ocurred: funt.o: Only ET DYB and ET EXEC can be loaded. link: The shared file wasn't loaded:(null) So what would it be? -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Fri Dec 17 08:00:04 2010 From: allan.cornet at scilab.org (Allan CORNET) Date: Fri, 17 Dec 2010 08:00:04 +0100 Subject: [scilab-Users] function link and Fortran codes In-Reply-To: <543942.95074.qm@web120518.mail.ne1.yahoo.com> References: <543942.95074.qm@web120518.mail.ne1.yahoo.com> Message-ID: <000f01cb9db8$07e19a40$17a4cec0$@scilab.org> Hi, A example to build and call a fortran 90 code : sourcecode=['subroutine incrdoublef90(x,y)' ' implicit none' ' double precision, intent(in) :: x' ' double precision, intent(out) :: y' ' y=x+1' 'end subroutine incrdoublef90']; cd(TMPDIR); mputl(sourcecode,'incrdoublef90.f90'); libpath=ilib_for_link('incrdoublef90','incrdoublef90.f90',[],'f'); exec('loader.sce'); n = 1.; m = call("incrdoublef90",n,1,"d","out",[1,1],2,"d"); --> libpath=ilib_for_link('incrdoublef90','incrdoublef90.f90',[],'f'); Generate a loader file Generate a Makefile Running the Makefile Compilation of incrdoublef90.f90 Building shared library (be patient) Generate a cleaner file --> exec('loader.sce'); Shared archive loaded. Link done. --> n = 1.; --> m = call("incrdoublef90",n,1,"d","out",[1,1],2,"d"); -->m m = 2. Allan De : Pedro Ledoux [mailto:p_ledoux at yahoo.com.br] Envoy? : vendredi 17 d?cembre 2010 05:11 ? : users at lists.scilab.org Objet : [scilab-Users] function link and Fortran codes Was told me that with this function, I'd be able to call C or Fortran functions in scilab and use then. So with function load it would be possible. I tried to do it for a simple Fortran code: SUBROUTINE sci(n,v) integer :: n real,dimension(n) :: v v=sin(v) END SUBROUTINE sci When I tried to use link comand: Um erro ocorreu: funt.o: Apenas ET_DYN e ET_EXEC podem ser carregados !--error 236 link: O arquivo compartilhado n?o foi carregado: (null) translating: An error ocurred: funt.o: Only ET DYB and ET EXEC can be loaded. link: The shared file wasn't loaded:(null) So what would it be? -------------- next part -------------- An HTML attachment was scrubbed... URL: From antoine.monmayrant at laas.fr Fri Dec 17 21:24:43 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Fri, 17 Dec 2010 21:24:43 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <1292316333.25237.28667.camel@korcula.inria.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> <4D072D97.1050702@laas.fr> <1292316333.25237.28667.camel@korcula.inria.fr> Message-ID: <4D0BC70B.3010006@laas.fr> Le 14/12/10 09:45, Sylvestre Ledru a ?crit : > Le mardi 14 d?cembre 2010 ? 09:40 +0100, Antoine Monmayrant a ?crit : >> Le 13/12/2010 23:47, Sylvestre Ledru a ?crit : >>> Thanks for the feedback. >>> By the way, some users reported an incompatibility caused by Audio >>> Hijack. >> Every 5.3 version of scilab I tried has crashed on my Mac and I have >> Hijack. I'll try to uninstall it and try again. Well, I just tried the freshly released 5.3 and even after uninstalling soundflower, I still get the instant crash problem... >> I let you know how it goes. >> Any bug# I should look into? > http://bugzilla.scilab.org/show_bug.cgi?id=7012#c23 > > Sylvestre > > From heinznabielek at me.com Sat Dec 18 00:18:02 2010 From: heinznabielek at me.com (Heinz Nabielek) Date: Fri, 17 Dec 2010 23:18:02 +0000 (UTC) Subject: cannot get any Scilab 5.x version starting on my Intel iMac References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> <4D072D97.1050702@laas.fr> <1292316333.25237.28667.camel@korcula.inria.fr> <4D0BC70B.3010006@laas.fr> Message-ID: Antoine Monmayrant writes: > Well, I just tried the freshly released 5.3 > and even after uninstalling > soundflower, I still get the instant crash problem... After the recommended rearrangement of Java versions, SciLab 5.3.0 final runs fine on my iMac. Heinz -->ver Scilab Version: 5.3.0.1292396566 Operating System: Mac OS X 10.6.5 Java version : 1.6.0_22 Java runtime information : Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261) Java vm information : Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode) Vendor specification: Sun Microsystems Inc. From sylvestre.ledru at scilab.org Sat Dec 18 05:02:06 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 18 Dec 2010 05:02:06 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <4D0BC70B.3010006@laas.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> <4D072D97.1050702@laas.fr> <1292316333.25237.28667.camel@korcula.inria.fr> <4D0BC70B.3010006@laas.fr> Message-ID: <1292644926.11826.233.camel@losinj.inria.fr> On Fri, 2010-12-17 at 21:24 +0100, Antoine Monmayrant wrote: > Le 14/12/10 09:45, Sylvestre Ledru a ?crit : > > Le mardi 14 d?cembre 2010 ? 09:40 +0100, Antoine Monmayrant a ?crit : > >> Le 13/12/2010 23:47, Sylvestre Ledru a ?crit : > >>> Thanks for the feedback. > >>> By the way, some users reported an incompatibility caused by Audio > >>> Hijack. > >> Every 5.3 version of scilab I tried has crashed on my Mac and I have > >> Hijack. I'll try to uninstall it and try again. > Well, I just tried the freshly released 5.3 and even after uninstalling > soundflower, I still get the instant crash problem... Do you run Snow Leopard (10.6) or Leopard (10.5) ? Sylvestre From antoine.monmayrant at laas.fr Sat Dec 18 10:35:43 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Sat, 18 Dec 2010 10:35:43 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <1292644926.11826.233.camel@losinj.inria.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> <4D072D97.1050702@laas.fr> <1292316333.25237.28667.camel@korcula.inria.fr> <4D0BC70B.3010006@laas.fr> <1292644926.11826.233.camel@losinj.inria.fr> Message-ID: <4D0C806F.5000401@laas.fr> Le 18/12/10 05:02, Sylvestre Ledru a ?crit : > On Fri, 2010-12-17 at 21:24 +0100, Antoine Monmayrant wrote: >> Le 14/12/10 09:45, Sylvestre Ledru a ?crit : >>> Le mardi 14 d?cembre 2010 ? 09:40 +0100, Antoine Monmayrant a ?crit : >>>> Le 13/12/2010 23:47, Sylvestre Ledru a ?crit : >>>>> Thanks for the feedback. >>>>> By the way, some users reported an incompatibility caused by Audio >>>>> Hijack. >>>> Every 5.3 version of scilab I tried has crashed on my Mac and I have >>>> Hijack. I'll try to uninstall it and try again. >> Well, I just tried the freshly released 5.3 and even after uninstalling >> soundflower, I still get the instant crash problem... > Do you run Snow Leopard (10.6) or Leopard (10.5) ? > > Sylvestre > > Leopard (10.5) From sylvestre.ledru at scilab.org Sat Dec 18 12:05:02 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 18 Dec 2010 12:05:02 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <4D0C806F.5000401@laas.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> <4D072D97.1050702@laas.fr> <1292316333.25237.28667.camel@korcula.inria.fr> <4D0BC70B.3010006@laas.fr> <1292644926.11826.233.camel@losinj.inria.fr> <4D0C806F.5000401@laas.fr> Message-ID: <1292670302.11826.676.camel@losinj.inria.fr> On Sat, 2010-12-18 at 10:35 +0100, Antoine Monmayrant wrote: > Le 18/12/10 05:02, Sylvestre Ledru a ?crit : > > On Fri, 2010-12-17 at 21:24 +0100, Antoine Monmayrant wrote: > >> Le 14/12/10 09:45, Sylvestre Ledru a ?crit : > >>> Le mardi 14 d?cembre 2010 ? 09:40 +0100, Antoine Monmayrant a ?crit : > >>>> Le 13/12/2010 23:47, Sylvestre Ledru a ?crit : > >>>>> Thanks for the feedback. > >>>>> By the way, some users reported an incompatibility caused by Audio > >>>>> Hijack. > >>>> Every 5.3 version of scilab I tried has crashed on my Mac and I have > >>>> Hijack. I'll try to uninstall it and try again. > >> Well, I just tried the freshly released 5.3 and even after uninstalling > >> soundflower, I still get the instant crash problem... > > Do you run Snow Leopard (10.6) or Leopard (10.5) ? > > > > Sylvestre > > > > > Leopard (10.5) It is "normal". Apple pushed an important update in their Java packaging system. It is why we had to release an unexpected beta-5 for 10.6. Anyway, during this update, under Mac OS x 10.5, they broke a feature Scilab is built on (used also under GNU/Linux and Windows) We are in touch with Apple on this subject but we cannot predict when it is going to be fixed or when we will be able to use a workaround. We are very sorry for this unexpected issue. Sylvestre From antoine.monmayrant at laas.fr Sat Dec 18 12:36:43 2010 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Sat, 18 Dec 2010 12:36:43 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <1292670302.11826.676.camel@losinj.inria.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> <4D072D97.1050702@laas.fr> <1292316333.25237.28667.camel@korcula.inria.fr> <4D0BC70B.3010006@laas.fr> <1292644926.11826.233.camel@losinj.inria.fr> <4D0C806F.5000401@laas.fr> <1292670302.11826.676.camel@losinj.inria.fr> Message-ID: <4D0C9CCB.6080806@laas.fr> Le 18/12/10 12:05, Sylvestre Ledru a ?crit : > On Sat, 2010-12-18 at 10:35 +0100, Antoine Monmayrant wrote: >> Le 18/12/10 05:02, Sylvestre Ledru a ?crit : >>> On Fri, 2010-12-17 at 21:24 +0100, Antoine Monmayrant wrote: >>>> Le 14/12/10 09:45, Sylvestre Ledru a ?crit : >>>>> Le mardi 14 d?cembre 2010 ? 09:40 +0100, Antoine Monmayrant a ?crit : >>>>>> Le 13/12/2010 23:47, Sylvestre Ledru a ?crit : >>>>>>> Thanks for the feedback. >>>>>>> By the way, some users reported an incompatibility caused by Audio >>>>>>> Hijack. >>>>>> Every 5.3 version of scilab I tried has crashed on my Mac and I have >>>>>> Hijack. I'll try to uninstall it and try again. >>>> Well, I just tried the freshly released 5.3 and even after uninstalling >>>> soundflower, I still get the instant crash problem... >>> Do you run Snow Leopard (10.6) or Leopard (10.5) ? >>> >>> Sylvestre >>> >>> >> Leopard (10.5) > It is "normal". Apple pushed an important update in their Java packaging > system. When was this update pushed? Because I haven't applied the java update in a while, just because of the problems some updates have caused for many java applications. I still have this appearing regularly in the software update: "Mise ? jour 8 de Java pour Mac OS X 10.5 am?liore la compatibilit?, la s?curit? et la fiabilit? en mettant ? jour J2SE 5.0 avec la version 1.5.0_26 et Java SE 6 avec la version 1.6.0_22 pour les ordinateurs Mac ? processeurs Intel 64 bits. La mise ? jour de J2SE 1.4.2 n?est plus effectu?e pour corriger les bugs ou les probl?mes de s?curit? et est d?sactiv?e par d?faut dans cette mise ? jour." Antoine > It is why we had to release an unexpected beta-5 for 10.6. > > Anyway, during this update, under Mac OS x 10.5, they broke a feature > Scilab is built on (used also under GNU/Linux and Windows) > We are in touch with Apple on this subject but we cannot predict when > it is going to be fixed or when we will be able to use a workaround. > > We are very sorry for this unexpected issue. > > Sylvestre > > From sylvestre.ledru at scilab.org Sat Dec 18 12:39:30 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 18 Dec 2010 12:39:30 +0100 Subject: [scilab-Users] Re: cannot get any Scilab 5.x version starting on my Intel iMac In-Reply-To: <4D0C9CCB.6080806@laas.fr> References: <1290068134.7582.1490.camel@zlarin> <1290074185.4100.42.camel@korcula.inria.fr> <10BE9932-3ED1-486E-8D3E-963CF4AB60AB@pobox.com> <1290637842.5084.338.camel@losinj.inria.fr> <4CEEBE7B.2090009@laas.fr> <1292280465.14315.119.camel@losinj.inria.fr> <4D072D97.1050702@laas.fr> <1292316333.25237.28667.camel@korcula.inria.fr> <4D0BC70B.3010006@laas.fr> <1292644926.11826.233.camel@losinj.inria.fr> <4D0C806F.5000401@laas.fr> <1292670302.11826.676.camel@losinj.inria.fr> <4D0C9CCB.6080806@laas.fr> Message-ID: <1292672370.11826.714.camel@losinj.inria.fr> On Sat, 2010-12-18 at 12:36 +0100, Antoine Monmayrant wrote: > Le 18/12/10 12:05, Sylvestre Ledru a ?crit : > > On Sat, 2010-12-18 at 10:35 +0100, Antoine Monmayrant wrote: > >> Le 18/12/10 05:02, Sylvestre Ledru a ?crit : > >>> On Fri, 2010-12-17 at 21:24 +0100, Antoine Monmayrant wrote: > >>>> Le 14/12/10 09:45, Sylvestre Ledru a ?crit : > >>>>> Le mardi 14 d?cembre 2010 ? 09:40 +0100, Antoine Monmayrant a ?crit : > >>>>>> Le 13/12/2010 23:47, Sylvestre Ledru a ?crit : > >>>>>>> Thanks for the feedback. > >>>>>>> By the way, some users reported an incompatibility caused by Audio > >>>>>>> Hijack. > >>>>>> Every 5.3 version of scilab I tried has crashed on my Mac and I have > >>>>>> Hijack. I'll try to uninstall it and try again. > >>>> Well, I just tried the freshly released 5.3 and even after uninstalling > >>>> soundflower, I still get the instant crash problem... > >>> Do you run Snow Leopard (10.6) or Leopard (10.5) ? > >>> > >>> Sylvestre > >>> > >>> > >> Leopard (10.5) > > It is "normal". Apple pushed an important update in their Java packaging > > system. > When was this update pushed? 2 or 3 months ago. > Because I haven't applied the java update in a while, just because of > the problems some updates have caused for many java applications. "Glad" to know we are not the only one being touched that... Sylvestre From tiraduvidascefet at yahoo.com Mon Dec 20 16:04:26 2010 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 20 Dec 2010 07:04:26 -0800 (PST) Subject: MinGW Compiler for Scilab 5.3 In-Reply-To: <4C34872C.50501@scilab.org> References: <680183302.1986161278401647064.JavaMail.root@zimbra26-e5.priv.proxad.net> <84571.51641.qm@web28304.mail.ukl.yahoo.com> <4C34872C.50501@scilab.org> Message-ID: <186853.40883.qm@web45514.mail.sp1.yahoo.com> Hi all, I downloaded the MinGW Compiler support for Scilab 5.3 at?ftp://ftp.equation.com/gcc/gcc-4.5.1-32.exe and ran it. Afterthat, I would like to know what's the procedure to install MinGW in Scilab. Need I download the??mingw_0.6-2.bin.windows.zip??and type atomsInstall(['mingw','0.6'])??? Or when I ran gcc-4.5.1-32.exe it was installed in Scilab ? Which command I need to type ? How can I certify that?MinGW is installed in Scilab 5.3 ? Thank you in advance. All best, Reinaldo. From michael.baudin at scilab.org Mon Dec 20 17:09:30 2010 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Mon, 20 Dec 2010 17:09:30 +0100 Subject: Tutorials update Message-ID: <4D0F7FBA.4040107@scilab.org> Hi, We have recently updated two documents which are provided to the Scilab community under the "Creative Commons License". These documents are provided in the Tutorials section of the scilab.org website : http://www.scilab.org/support/documentation/tutorials In "Introduction to Scilab" (updated 11/2010), we have added many exercises, and their answers. More than 10 sections were added, including "Issues with floating point integers", "Levels in the call stack", "Matrices are dynamic", "Debugging with pause", "Contour plots", and many more. Many thanks to Artem Glebov, who translated this document into Russian and proofread the document. In "Scilab is not naive" (updated 12/2010), we have added many exercises in "Complex Division" and "Quadratic equation", with their answers. We have udpated the "Why sin(pi) is rounded" and fixed many typos. Best regards, Micha?l Baudin PS "Introduction to Scilab" Overview of Scilab features to get familiar with this environment. The goal is to present the core of skills necessary to start with Scilab. In the first part, we present how to get and install this software on our computer. We also present how to get some help with the provided in-line documentation and also thanks to web resources and forums. In the remaining sections, we present the Scilab language, especially its structured programming features. We present an important feature of Scilab, that is the management of real matrices and overview the linear algebra library. The definition of functions and the elementary management of input and output variables is presented. We present Scilab graphics features and show how to create a 2D plot, how to configure the title and the legend and how to export that plot into a vectorial or bitmap format. "Scilab is not naive" Most of the time, the mathematical formula is directly used in the Scilab source code. But, in many algorithms, some additional work is performed, which takes into account the fact that the computer does not process mathematical real values, but performs computations with their floating point representation. The goal of this article is to show that, in many situations, Scilab is not naive and use algorithms which have been specifically tailored for floating point computers. We analyze in this article the particular case of the quadratic equation, the complex division and the numerical derivatives. In each example, we show that the naive algorithm is not sufficiently accurate, while Scilab implementation is much more robust. -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From tvitklg at rambler.ru Tue Dec 21 19:16:20 2010 From: tvitklg at rambler.ru (...TViT.......ICQ:285247380.......) Date: Tue, 21 Dec 2010 21:16:20 +0300 Subject: Matlab to Scilab Conversion <-Or-> Matlab-Scilab equivalents _Russia_ Message-ID: <388768874.1292955380.473091208.72540@mcgi-wr-8.rambler.ru> Hi! Tell please what functions in Scilab are similar to functions MATLAB.... In Matlab: SOS - Convert quantized filter to second?order sections form and tf2sos - Convert digital filter transfer function data to second-order sections form. In Scilab: ??? -- ...TViT.......ICQ:285247380....... tvitklg at rambler.ru -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Wed Dec 22 12:08:42 2010 From: paul.carrico at esterline.com (Carrico, Paul) Date: Wed, 22 Dec 2010 12:08:42 +0100 Subject: Nelder-mead algorithm Message-ID: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B06B@exchsrv.AUXITROL1> Dear All, I read some articles and other documentations concerning Nelder-Mead algorithm (and other GBNM etc. ..) I found ounce that such method is only available for 2 variables : is it the case ? if so what has to be used for n variables ? Regards and merry Christmas Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.hyrsut at wanadoo.fr Wed Dec 22 12:30:34 2010 From: bob.hyrsut at wanadoo.fr (sebastien salmon) Date: Wed, 22 Dec 2010 11:30:34 -0000 Subject: [scilab-Users] Nelder-mead algorithm In-Reply-To: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B06B@exchsrv.AUXITROL1> References: <55A12CBC06A8C9459DCE0BBEF8122FDC0498B06B@exchsrv.AUXITROL1> Message-ID: <13968172.802.1293017430846.JavaMail.www@wwinf1g06> Hello Paul, the Nelder-Mead method is ready for N dimension. Here you can find the thesis of V. Torczon whose method derivates from the Nelder-Mead one. http://www.cs.wm.edu/~va/research/thesis.pdf Happy Xmas, S.Salmon > Message du 22/12/10 12:09 > De : "Carrico, Paul" > A : users at lists.scilab.org > Copie ? : > Objet : [scilab-Users] Nelder-mead algorithm > > Dear All, ? I read some articles and other documentations concerning Nelder-Mead algorithm (and other GBNM etc. ..) ? I found ounce that such method is only available for 2 variables : is it the case ? if so what has to be used for n variables ? ? Regards and merry Christmas ? Paul-------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedric.legendre at horiba.com Wed Dec 22 16:13:02 2010 From: cedric.legendre at horiba.com (cedric.legendre at horiba.com) Date: Wed, 22 Dec 2010 16:13:02 +0100 Subject: IIR filter design + please add me to the user list Message-ID: Good morning , I use IIR function to design digital filter. My settings are : Fsample = 100Hz , cut off freq = 30Hz, Low pass filter , 2nd Order , ELLIPTIC method , The transfer function given is : H(1/z) = 2 0.600441568858968 + 1.19728045914772InvZ + 0.600441568858968InvZ --------------------------------------------------------------------------------------------------------------- 2 1 + 1.031059807280769InvZ + 0.391327664300703InvZ This filter work, but the step response, after N iterration (so the final value), is 0.99 instead of 1.00. To have the good final value, I have to insert an output gain (here: 1.0101) to my filter. I don't understand why I should add this gain ? By using matlab function this output gain is not necessary Merci d'avance for your answer Best regards Cedric Legendre ________________________________________________ Electronic Engineer HORIBA - JOBIN-YVON - Scientific Segment R&D - 5 Avenue Arago ZA (Est) de la Vigne aux Loups F-91380 CHILLY MAZARIN - FRANCE cedric.legendre at horiba.com Phone : +33 (0) 1 64 54 13 00 then 89 08 http://www.horiba.com/us/en/scientific/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From manuel.nunez85 at gmail.com Wed Dec 22 16:56:52 2010 From: manuel.nunez85 at gmail.com (=?ISO-8859-1?Q?Manuel_N=FA=F1ez_Garc=EDa?=) Date: Wed, 22 Dec 2010 16:56:52 +0100 Subject: Problem with Xcos Message-ID: <4D121FC4.90501@gmail.com> For the Technical Support Department of Scilab: I have recently installed Scilab in my computer and I found a problem. When I want to run a simulation on Xcos of an electrical circuit I obtain this error mesage: "A Fortran or C compiler is required" I obtain the same message when I want to run the demos of electrical circuits. How can I solve this problem? Thanks for your attention. Manuel N??ez From Gernot.Schullerus at Reutlingen-University.DE Thu Dec 23 11:35:20 2010 From: Gernot.Schullerus at Reutlingen-University.DE (Gernot Schullerus) Date: Thu, 23 Dec 2010 11:35:20 +0100 Subject: [scilab-Users] Problem with Xcos In-Reply-To: <4D121FC4.90501@gmail.com> References: <4D121FC4.90501@gmail.com> Message-ID: <7280aae47b04.4d1333f8@hochschule-reutlingen.de> An HTML attachment was scrubbed... URL: From rsenthil_signalprocess at in.com Sat Dec 25 00:50:39 2010 From: rsenthil_signalprocess at in.com (Rajarathanam Senthilkumar) Date: Sat, 25 Dec 2010 05:20:39 +0530 Subject: Getting error in scilab2c - reg Message-ID: <1293234639.99ba5c4097c6b8fef5ed774a1a6714b8@mail.in.com> Dear sir,I am getting the following error message while converting a scilab function inito a C code.!error 9999 Number of input arguments specified in AST is different from the number specified in .dat file.Please help me to rectify this error.Senthilkumar, IRTTIndiaDear users! Get Yourself a cool, short @in.com Email ID now! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ptashraf at kfupm.edu.sa Sat Dec 25 13:23:55 2010 From: ptashraf at kfupm.edu.sa (P T Ashraf) Date: Sat, 25 Dec 2010 15:23:55 +0300 Subject: scilab starting error Message-ID: <013201cba42e$9a469940$ced3cbc0$@kfupm.edu.sa> Dear Scilab users I downloaded scilab-5.3.0 version of 64 bit for Linux Version .(RedHat Linux 5.5). It is a binary version and when I try start Scilab it has been getting the following error. ./scilab /opt/scilab/scilab-5.3.0/bin/scilab-bin: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory Kindly help me how can resolve this issue. Regards Ashraf HPC Admin Save a tree. Don't print this e-mail unless it's really necessary -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Sun Dec 26 01:19:49 2010 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sun, 26 Dec 2010 01:19:49 +0100 Subject: [scilab-Users] scilab starting error In-Reply-To: <013201cba42e$9a469940$ced3cbc0$@kfupm.edu.sa> References: <013201cba42e$9a469940$ced3cbc0$@kfupm.edu.sa> Message-ID: <1293322789.12413.109.camel@zlarin> Le samedi 25 d?cembre 2010 ? 15:23 +0300, P T Ashraf a ?crit : > > > > > Dear Scilab users > > > > I downloaded scilab-5.3.0 version of 64 bit for Linux > Version .(RedHat Linux 5.5). It is a binary version and when I try > start Scilab it has been getting the following error. > > > > ./scilab > > /opt/scilab/scilab-5.3.0/bin/scilab-bin: error while loading shared > libraries: libXss.so.1: cannot open shared object file: No such file > or directory > I am pretty sure you downloaded the 32 bit version. Try with this one: http://www.scilab.org/download/5.3.0/scilab-5.3.0.bin.linux-x86_64.tar.gz S From kaprielkrikorian at aol.com Mon Dec 27 06:12:25 2010 From: kaprielkrikorian at aol.com (kaprielkrikorian at aol.com) Date: Sun, 26 Dec 2010 21:12:25 -0800 Subject: Plot function fails to plot and closes (exits) scilab Message-ID: I am a new user of scilab. I downloaded scilab 5.3.0 64 bits on a windows 7 home premium (64 bits) computer. I wrote a simple program that computes y as a function of x (e.g. y=sin(x)). The program computes correctly and prints x and y. However, when it comes to the plot function it fails to plot and closes (exits) scilab 5.3.0. Similarly, anytime I need graphics, such as the demonstrations (provided with the scilab download) that use graphics, I am unable to get plots/graphics and scilab closes (exits) Would you please let me know if I am missing something or if there is a fix for this problem. My e-mail address is: kaprielkrikorian at aol.com. Thank you very, very much. Kapriel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkantole at gmail.com Mon Dec 27 15:57:16 2010 From: jkantole at gmail.com (JOSEPH BASAKAYI) Date: Mon, 27 Dec 2010 16:57:16 +0200 Subject: have a problem to solve this problem Message-ID: <020601cba5d6$5e9c7f50$1bd57df0$@com> Hello I am fairly new to using Scilab but need to solve a transcendental equation. I would like to write the code to solve this equation .The value sought is F0 Given data: emin=0.688; NTU= 1.488 ; B=0.334; p=-ln(1-emin); x=( NTU-p) *2/B; y=exp(x) ; F0=(y-1)/(1-y*(1-emin)); If F0>10; or F0<0, then y=exp(2*x/p); This is the first approximation F0=sqrt(y/(1-emin)) My problem is to solve the problem using Raphson-Newton method F1=(1-emin)*F0; p0=ln(1+F0); p20=p0*p0; G0= p0*(1+17*p20/450)/(1+p20/100)+p20/4 p=ln(1+ F1); p2=p*p; G1= p*(1+17*p2/450)/(1+p2/450)+p2/4; x=-ln (1-emin)+B/2*(G0-G1)-NTU; y=B/2*(p0/F0-(1-emin)*p/(1+F1)); this is the derivative of x Fon=F0-x/y ( Newton-Raphson) Hopefully someone can see and assist me. Following all the steps given above.Thanks in advance all. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tybeede at gmail.com Mon Dec 27 17:24:45 2010 From: tybeede at gmail.com (Tyrel Beede) Date: Mon, 27 Dec 2010 08:24:45 -0800 Subject: [scilab-Users] Plot function fails to plot and closes (exits) scilab In-Reply-To: References: Message-ID: At least with the previous release 5.2.2 there are some know issues with graphics card drivers. I had the most recent nVidia driver installed and it would crash scilab on plot. I rolled it back to a pevious version by two increments and the driver works great with Scilab. Some graphics cards might need a newer driver other a slightly older one. This may be related to your issue. On Sun, Dec 26, 2010 at 9:12 PM, wrote: > I am a new user of scilab. I downloaded scilab 5.3.0 64 bits on a > windows 7 home premium (64 bits) computer. I wrote a simple program that > computes y as a function of x (e.g. y=sin(x)). The program computes > correctly and prints x and y. However, when it comes to the plot function it > fails to plot and closes (exits) scilab 5.3.0. Similarly, anytime I need > graphics, such as the demonstrations (provided with the scilab download) > that use graphics, I am unable to get plots/graphics and scilab closes > (exits) > Would you please let me know if I am missing something or if there is a > fix for this problem. My e-mail address is: kaprielkrikorian at aol.com. > Thank you very, very much. > Kapriel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tiraduvidascefet at yahoo.com Mon Dec 27 19:20:39 2010 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 27 Dec 2010 10:20:39 -0800 (PST) Subject: [scilab-Users] Plot function fails to plot and closes (exits) scilab In-Reply-To: References: Message-ID: <855949.54849.qm@web45515.mail.sp1.yahoo.com> Hi Kapriel, I have Win7 home premium 64 bits and I installed scilab 5.3.0 for 32 bits (recommended). My graphs work well. Test this function on your Scilab console: function f=senoideamortecida(x) f = sin(x).*exp(-x) // It is necessary to use .* when the variable is a matrix endfunction xdata = linspace ( 0 , 4*%pi, 100); ydata = senoideamortecida ( xdata ); plot ( xdata , ydata ); I hope it appears a graph in the Scilab graph window. ? Good luck. ? All best, Reinaldo. ? ________________________________ From: Tyrel Beede To: users at lists.scilab.org Sent: Mon, December 27, 2010 2:24:45 PM Subject: Re: [scilab-Users] Plot function fails to plot and closes (exits) scilab At least with the previous release 5.2.2 there are some know issues with graphics card drivers.? I had the most recent nVidia driver installed and it would crash scilab on plot.? I rolled it back to a pevious version by two increments and the driver works great with Scilab.? Some graphics cards might need a newer driver other a slightly older one.? This may be related to your issue. On Sun, Dec 26, 2010 at 9:12 PM, wrote: I am a new user of scilab. I downloaded scilab 5.3.0 64 bits on a windows 7 home premium (64 bits) computer. I wrote a simple program that computes y as a function of x (e.g. y=sin(x)). The program computes correctly and prints x and y. However, when it comes to the plot function it fails to plot and closes (exits) scilab 5.3.0. Similarly, anytime I need graphics, such as the demonstrations (provided with the scilab download) that use graphics, I am unable to get plots/graphics and scilab closes (exits) >Would you please let me know if I am missing something or if? there is a fix for >this problem. My e-mail address is: kaprielkrikorian at aol.com. >Thank you very, very much. >Kapriel -------------- next part -------------- An HTML attachment was scrubbed... URL: From tiraduvidascefet at yahoo.com Mon Dec 27 22:15:36 2010 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 27 Dec 2010 13:15:36 -0800 (PST) Subject: Problem with Floating point and determinant of a matrix Message-ID: <764165.72007.qm@web45504.mail.sp1.yahoo.com> Hi all, I understand that Scilab?stores the real numbers with foating point numbers, that is, with limited precision, and the computed value?(answer) is not exactly equal to 0 (page 23 - manual "Introduction to Scilab"). ? Take at look for those?examples: ? A?= [1 2 3; 4 5 6; 7 8 9] A? = ? ??? 1.??? 2.??? 3.? ??? 4.??? 5.??? 6.? ??? 7.??? 8.??? 9.? ? -->det(A) ?ans? = ? ??? 6.661D-16? <---------- it should be 0 ? -->inv(A) ?ans? = ? ?10^15 * ? ? - 4.5035996??? 9.0071993? - 4.5035996? ??? 9.0071993? - 18.014399??? 9.0071993? ? - 4.5035996??? 9.0071993? - 4.5035996??????????? <---------- it should appear an error message because the matrix A is not invertible (or singular). ? -->det(inv(A)) ?ans? = ? ??? 9.007D+15???? <--------------?The determinant of?invertible matrix?A^(-1) does not exist. ? Other example: -->B = [1 1; 1 1] B? = ? ??? 1.??? 1.? ??? 1.??? 1.? ? -->det(B) ?ans? = ? ??? 0.? <-------- it is correct !! ? -->inv(B) ?????? !--error 19??? <-------- it is correct !! ? The previously examples show two integer matrices A and B. The determinant of matrix A is quite zero, but not, and this can propagate?an error in case the Scilab developer uses that result into other future?calculations or algorithms. The determinant of matrix B is equal to 0 and the answer is correct. In case the Scilab developer uses that value, he or she can use the simple statement for testing like to: ?if (?det(matrix) <>?0 ) then ???????????????????? // The Scilab developer knows that the matrix is invertible (or nonsingular) else ???????????????????? // The Scilab developer knows that the matrix is not invertible (or singular) end ? My doubt: "How can I proceed to design any algorithm,?which uses matrix,?if the determinant of the matrix?could not be zero and, as the same time,?that matrix is not invertible ?". How can I manage this uncertainty ? ? I appreciate to hearing from you some hints to solve this uncertainty. ? Thank you in advance. ? All best, Reinaldo. ? PS: I am not MATLAB user, but?has MATLAB?got this?limited precision for determinants ? From tiraduvidascefet at yahoo.com Mon Dec 27 22:51:16 2010 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 27 Dec 2010 13:51:16 -0800 (PST) Subject: How can I identify the startup file on Scilab 5.3.0 ? Message-ID: <718831.72217.qm@web45515.mail.sp1.yahoo.com> Hi all, I typed SCIHOME and the result is: -->SCIHOME ?SCIHOME? = ? ?C:\Users\Rei\AppData\Roaming\Scilab\scilab-5.3.0 However, I could not see the startup?.scilab?file at that directory in order to insert my libraries as described at page 61 - manual "Introduction of Scilab". The given example in that manual is for Scilab? 5.2.0 version. Is?there a?different way for Scilab 5.3.0 version ? The files in C:\Users\Rei\AppData\Roaming\Scilab\scilab-5.3.0 directory are: configuration.xml history.scilab keysConfiguration.xml palettes.xml scinotesConfiguration.xml xcos.xml Xcos-style.xml and subdirectories: .atoms atoms Thank you in advance. All best, Reinaldo. From calixte at contrib.scilab.org Mon Dec 27 22:52:05 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Mon, 27 Dec 2010 22:52:05 +0100 Subject: [scilab-Users] Problem with Floating point and determinant of a matrix In-Reply-To: <764165.72007.qm@web45504.mail.sp1.yahoo.com> References: <764165.72007.qm@web45504.mail.sp1.yahoo.com> Message-ID: <1293486725.2584.201.camel@Calixte-Dell> Hi Reinaldo, Try that: --> n=10;T=floor(rand(n,n-1)*200-100);A=[T,sum(T,2)];det(A) A is built to be singular... Have a look at this article, it could interested you: http://www.eng.nus.edu.sg/civil/REC2010/documents/papers/038.pdf Calixte Le lundi 27 d?cembre 2010 ? 13:15 -0800, Prof. Dr. Reinaldo Golmia Dante a ?crit : > Hi all, > > I understand that Scilab stores the real numbers with foating point numbers, > that is, with limited precision, and the computed value (answer) is not exactly > equal to 0 (page 23 - manual "Introduction to Scilab"). > > Take at look for those examples: > > A = [1 2 3; 4 5 6; 7 8 9] > A = > > 1. 2. 3. > 4. 5. 6. > 7. 8. 9. > > -->det(A) > ans = > > 6.661D-16 <---------- it should be 0 > > -->inv(A) > ans = > > 10^15 * > > - 4.5035996 9.0071993 - 4.5035996 > 9.0071993 - 18.014399 9.0071993 > - 4.5035996 9.0071993 - 4.5035996 <---------- it should appear > an error message because the matrix A is not invertible (or singular). > > > -->det(inv(A)) > ans = > > 9.007D+15 <-------------- The determinant of invertible matrix A^(-1) > does not exist. > > Other example: > > -->B = [1 1; 1 1] > B = > > 1. 1. > 1. 1. > > -->det(B) > ans = > > 0. <-------- it is correct !! > > -->inv(B) > !--error 19 <-------- it is correct !! > > > The previously examples show two integer matrices A and B. The determinant of > matrix A is quite zero, but not, > and this can propagate an error in case the Scilab developer uses that result > into other future calculations or algorithms. > The determinant of matrix B is equal to 0 and the answer is correct. In case the > Scilab developer uses that value, > he or she can use the simple statement for testing like to: > if ( det(matrix) <> 0 ) then > // The Scilab developer knows that the matrix is > invertible (or nonsingular) > else > // The Scilab developer knows that the matrix is > not invertible (or singular) > end > > My doubt: "How can I proceed to design any algorithm, which uses matrix, if the > determinant of > > the matrix could not be zero and, as the same time, that matrix is not > invertible ?". > How can I manage this uncertainty ? > > I appreciate to hearing from you some hints to solve this uncertainty. > > Thank you in advance. > > All best, > Reinaldo. > > PS: I am not MATLAB user, but has MATLAB got this limited precision for > determinants ? > > > From calixte at contrib.scilab.org Mon Dec 27 22:59:06 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Mon, 27 Dec 2010 22:59:06 +0100 Subject: [scilab-Users] How can I identify the startup file on Scilab 5.3.0 ? In-Reply-To: <718831.72217.qm@web45515.mail.sp1.yahoo.com> References: <718831.72217.qm@web45515.mail.sp1.yahoo.com> Message-ID: <1293487146.2584.205.camel@Calixte-Dell> Le lundi 27 d?cembre 2010 ? 13:51 -0800, Prof. Dr. Reinaldo Golmia Dante a ?crit : > Hi all, > > I typed SCIHOME and the result is: > > -->SCIHOME > SCIHOME = > > C:\Users\Rei\AppData\Roaming\Scilab\scilab-5.3.0 > > However, I could not see the startup .scilab file at that directory in order to > insert my libraries as described at page 61 - manual "Introduction of Scilab". > > The given example in that manual is for Scilab 5.2.0 version. Is there > a different way > for Scilab 5.3.0 version ? > You just have to create the file .scilab in this directory, for example: --> edit SCIHOME/.scilab Write disp("Hi Reinaldo"); save the file and restart Scilab... Calixte > The files in C:\Users\Rei\AppData\Roaming\Scilab\scilab-5.3.0 directory are: > > configuration.xml > history.scilab > keysConfiguration.xml > palettes.xml > scinotesConfiguration.xml > xcos.xml > Xcos-style.xml > > and subdirectories: > > .atoms > atoms > > Thank you in advance. > > All best, > Reinaldo. > > > From tiraduvidascefet at yahoo.com Mon Dec 27 23:43:22 2010 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 27 Dec 2010 14:43:22 -0800 (PST) Subject: [scilab-Users] Problem with Floating point and determinant of a matrix In-Reply-To: <1293486725.2584.201.camel@Calixte-Dell> References: <764165.72007.qm@web45504.mail.sp1.yahoo.com> <1293486725.2584.201.camel@Calixte-Dell> Message-ID: <215936.39035.qm@web45510.mail.sp1.yahoo.com> Hi Calixte, Thank you for your comment. However, I do not still understand your suggestion: "--> n=10;T=floor(rand(n,n-1)*200-100);A=[T,sum(T,2)];det(A)" A does not show as a singular matrix for Scilab. I executed it on Scilab, as follows: -->n=10;T=floor(rand(n,n-1)*200-100);A=[T,sum(T,2)];det(A) ?ans? = ? ? - 12228.029? What does it mean ? The determinant of A is different to zero, so A is nonsingular matrix. Could you be clear in your example?? In regards to the paper, I am going to read it. Thank you for your attention. All best, Reinaldo. ----- Original Message ---- From: Calixte Denizet To: users at lists.scilab.org Sent: Mon, December 27, 2010 7:52:05 PM Subject: Re: [scilab-Users] Problem with Floating point and determinant of a matrix Hi Reinaldo, Try that: --> n=10;T=floor(rand(n,n-1)*200-100);A=[T,sum(T,2)];det(A) A is built to be singular... Have a look at this article, it could interested you: http://www.eng.nus.edu.sg/civil/REC2010/documents/papers/038.pdf Calixte Le lundi 27 d?cembre 2010 ? 13:15 -0800, Prof. Dr. Reinaldo Golmia Dante a ?crit : > Hi all, > > I understand that Scilab stores the real numbers with foating point numbers, > that is, with limited precision, and the computed value (answer) is not exactly > > equal to 0 (page 23 - manual "Introduction to Scilab"). >? > Take at look for those examples: >? > A = [1 2 3; 4 5 6; 7 8 9] > A? = >? >? ? 1.? ? 2.? ? 3.? >? ? 4.? ? 5.? ? 6.? >? ? 7.? ? 8.? ? 9.? >? > -->det(A) >? ans? = >? >? ? 6.661D-16? <---------- it should be 0 >? > -->inv(A) >? ans? = >? >? 10^15 * >? >? - 4.5035996? ? 9.0071993? - 4.5035996? >? ? 9.0071993? - 18.014399? ? 9.0071993? >? - 4.5035996? ? 9.0071993? - 4.5035996? ? ? ? ? ? <---------- it should appear > an error message because the matrix A is not invertible (or singular). > >? > -->det(inv(A)) >? ans? = >? >? ? 9.007D+15? ? <-------------- The determinant of invertible matrix A^(-1) > does not exist. >? > Other example: > > -->B = [1 1; 1 1] > B? = >? >? ? 1.? ? 1.? >? ? 1.? ? 1.? >? > -->det(B) >? ans? = >? >? ? 0.? <-------- it is correct !! >? > -->inv(B) >? ? ? ? !--error 19? ? <-------- it is correct !! > >? > The previously examples show two integer matrices A and B. The determinant of > matrix A is quite zero, but not, > and this can propagate an error in case the Scilab developer uses that result > into other future calculations or algorithms. > The determinant of matrix B is equal to 0 and the answer is correct. In case >the > > Scilab developer uses that value, > he or she can use the simple statement for testing like to: >? if ( det(matrix) <> 0 ) then > ? ? ? ? ? ? ? ? ? ? // The Scilab developer knows that the matrix is > invertible (or nonsingular) > else > ? ? ? ? ? ? ? ? ? ? // The Scilab developer knows that the matrix is > not invertible (or singular) > end >? > My doubt: "How can I proceed to design any algorithm, which uses matrix, if the > > determinant of > > the matrix could not be zero and, as the same time, that matrix is not > invertible ?". > How can I manage this uncertainty ? >? > I appreciate to hearing from you some hints to solve this uncertainty. >? > Thank you in advance. >? > All best, > Reinaldo. >? > PS: I am not MATLAB user, but has MATLAB got this limited precision for > determinants ? > > >? ? ? From tiraduvidascefet at yahoo.com Mon Dec 27 23:48:12 2010 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Mon, 27 Dec 2010 14:48:12 -0800 (PST) Subject: [scilab-Users] How can I identify the startup file on Scilab 5.3.0 ? In-Reply-To: <1293487146.2584.205.camel@Calixte-Dell> References: <718831.72217.qm@web45515.mail.sp1.yahoo.com> <1293487146.2584.205.camel@Calixte-Dell> Message-ID: <933358.86862.qm@web45503.mail.sp1.yahoo.com> In regard to .scilab file, now I see.? :-)) So, I must create a .scilab startup file and insert into?that my paths of libraries. Thanks a lot !! All best, Reinaldo. PS: I am new user in Scilab and I have been reading that manual "Introduction of Scilab". This software is powerful and I enjoy it too much !! ? ----- Original Message ---- From: Calixte Denizet To: users at lists.scilab.org Sent: Mon, December 27, 2010 7:59:06 PM Subject: Re: [scilab-Users] How can I identify the startup file on Scilab 5.3.0 ? Le lundi 27 d?cembre 2010 ? 13:51 -0800, Prof. Dr. Reinaldo Golmia Dante a ?crit : > Hi all, > > I typed SCIHOME and the result is: > > -->SCIHOME >? SCIHOME? = >? >? C:\Users\Rei\AppData\Roaming\Scilab\scilab-5.3.0 > > However, I could not see the startup .scilab file at that directory in order to > > insert my libraries as described at page 61 - manual "Introduction of Scilab". > > The given example in that manual is for Scilab? 5.2.0 version. Is there > a different way > for Scilab 5.3.0 version ? > You just have to create the file .scilab in this directory, for example: --> edit SCIHOME/.scilab Write disp("Hi Reinaldo"); save the file and restart Scilab... Calixte > The files in C:\Users\Rei\AppData\Roaming\Scilab\scilab-5.3.0 directory are: > > configuration.xml > history.scilab > keysConfiguration.xml > palettes.xml > scinotesConfiguration.xml > xcos.xml > Xcos-style.xml > > and subdirectories: > > .atoms > atoms > > Thank you in advance. > > All best, > Reinaldo. > > >? ? ? From calixte at contrib.scilab.org Mon Dec 27 23:55:31 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Mon, 27 Dec 2010 23:55:31 +0100 Subject: [scilab-Users] Problem with Floating point and determinant of a matrix In-Reply-To: <215936.39035.qm@web45510.mail.sp1.yahoo.com> References: <764165.72007.qm@web45504.mail.sp1.yahoo.com> <1293486725.2584.201.camel@Calixte-Dell> <215936.39035.qm@web45510.mail.sp1.yahoo.com> Message-ID: <1293490531.2584.216.camel@Calixte-Dell> Le lundi 27 d?cembre 2010 ? 14:43 -0800, Prof. Dr. Reinaldo Golmia Dante a ?crit : > Hi Calixte, > > Thank you for your comment. > > However, I do not still understand your suggestion: "--> > n=10;T=floor(rand(n,n-1)*200-100);A=[T,sum(T,2)];det(A)" > > A does not show as a singular matrix for Scilab. I executed it on Scilab, as > follows: > > -->n=10;T=floor(rand(n,n-1)*200-100);A=[T,sum(T,2)];det(A) > ans = > > - 12228.029 > > > What does it mean ? The determinant of A is different to zero, so A is > nonsingular matrix. Could you be clear in your > example ? > The last column of A is the sum of the previous columns, so the determinant should be equal to 0 !! So A is not invertible... If you calculate rcond(A), you'll see that A is very ill-conditioned. Take care, there is big difference between numerical computations and symbolic ones. Cheers, Calixte > In regards to the paper, I am going to read it. > > Thank you for your attention. > > All best, > Reinaldo. > > > > ----- Original Message ---- > From: Calixte Denizet > To: users at lists.scilab.org > Sent: Mon, December 27, 2010 7:52:05 PM > Subject: Re: [scilab-Users] Problem with Floating point and determinant of a > matrix > > Hi Reinaldo, > > Try that: > --> n=10;T=floor(rand(n,n-1)*200-100);A=[T,sum(T,2)];det(A) > > A is built to be singular... > > Have a look at this article, it could interested you: > http://www.eng.nus.edu.sg/civil/REC2010/documents/papers/038.pdf > > Calixte > > Le lundi 27 d?cembre 2010 ? 13:15 -0800, Prof. Dr. Reinaldo Golmia Dante > a ?crit : > > Hi all, > > > > I understand that Scilab stores the real numbers with foating point numbers, > > that is, with limited precision, and the computed value (answer) is not exactly > > > > equal to 0 (page 23 - manual "Introduction to Scilab"). > > > > Take at look for those examples: > > > > A = [1 2 3; 4 5 6; 7 8 9] > > A = > > > > 1. 2. 3. > > 4. 5. 6. > > 7. 8. 9. > > > > -->det(A) > > ans = > > > > 6.661D-16 <---------- it should be 0 > > > > -->inv(A) > > ans = > > > > 10^15 * > > > > - 4.5035996 9.0071993 - 4.5035996 > > 9.0071993 - 18.014399 9.0071993 > > - 4.5035996 9.0071993 - 4.5035996 <---------- it should appear > > > an error message because the matrix A is not invertible (or singular). > > > > > > -->det(inv(A)) > > ans = > > > > 9.007D+15 <-------------- The determinant of invertible matrix A^(-1) > > does not exist. > > > > Other example: > > > > -->B = [1 1; 1 1] > > B = > > > > 1. 1. > > 1. 1. > > > > -->det(B) > > ans = > > > > 0. <-------- it is correct !! > > > > -->inv(B) > > !--error 19 <-------- it is correct !! > > > > > > The previously examples show two integer matrices A and B. The determinant of > > matrix A is quite zero, but not, > > and this can propagate an error in case the Scilab developer uses that result > > into other future calculations or algorithms. > > The determinant of matrix B is equal to 0 and the answer is correct. In case > >the > > > > Scilab developer uses that value, > > he or she can use the simple statement for testing like to: > > if ( det(matrix) <> 0 ) then > > // The Scilab developer knows that the matrix is > > > invertible (or nonsingular) > > else > > // The Scilab developer knows that the matrix is > > > not invertible (or singular) > > end > > > > My doubt: "How can I proceed to design any algorithm, which uses matrix, if the > > > > determinant of > > > > the matrix could not be zero and, as the same time, that matrix is not > > invertible ?". > > How can I manage this uncertainty ? > > > > I appreciate to hearing from you some hints to solve this uncertainty. > > > > Thank you in advance. > > > > All best, > > Reinaldo. > > > > PS: I am not MATLAB user, but has MATLAB got this limited precision for > > determinants ? > > > > > > > > > From jkantole at gmail.com Tue Dec 28 01:39:27 2010 From: jkantole at gmail.com (JOSE KANTOLE) Date: Tue, 28 Dec 2010 02:39:27 +0200 Subject: Can u help to write the code scilab to solve the transcendantal equation by Newton Raphson? Message-ID: Hello I am fairly new to using Scilab but need to solve a transcendental equation. I would like to write the code to solve this equation .The value sought is F0 Given data: emin=0.688; NTU= 1.488 ; B=0.334; p=-ln(1-emin); x=( NTU-p) *2/B; y=exp(x) ; F0=(y-1)/(1-y*(1-emin)); If F0>10; or F0<0, then y=exp(2*x/p); This is the first approximation F0=sqrt(y/(1-emin)) My problem is to solve the problem using Raphson-Newton method F1=(1-emin)*F0; p0=ln(1+F0); p20=p0*p0; G0= p0*(1+17*p20/450)/(1+p20/100)+p20/4 p=ln(1+ F1); p2=p*p; G1= p*(1+17*p2/450)/(1+p2/450)+p2/4; x=-ln (1-emin)+B/2*(G0-G1)-NTU; y=B/2*(p0/F0-(1-emin)*p/(1+F1)); this is the derivative of x Fon=F0-x/y ( Newton-Raphson) Hopefully someone can see what is needed to get things working. Thanks in advance all. From ray at aarden.us Tue Dec 28 06:47:40 2010 From: ray at aarden.us (ray joseph) Date: Mon, 27 Dec 2010 23:47:40 -0600 Subject: How to fix a new Scilab 5.3.0 install - failed 'converting libraries'? In-Reply-To: <1293487146.2584.205.camel@Calixte-Dell> References: <718831.72217.qm@web45515.mail.sp1.yahoo.com> <1293487146.2584.205.camel@Calixte-Dell> Message-ID: I just attempted to run the newly installed 5.3.0 on a Windows XP laptop. How do I fix the associated error (below): Startup execution: loading initial environment Start LCC-Win Compiler support Load macros Load help Converting Libraries. Build blasplus.lib 'C:\Program' is not recognized as an internal or external command, operable program or batch file. 'C:\Program' is not recognized as an internal or external command, operable program or batch file. Conversion failed blasplus.lib Build lapack.lib 'C:\Program' is not recognized as an internal or external command, operable program or batch file. 'C:\Program' is not recognized as an internal or external command, operable program or batch file. Conversion failed lapack.lib Build MALLOC.lib 'C:\Program' is not recognized as an internal or external command, operable program or batch file. 'C:\Program' is not recognized as an internal or external command, operable program or batch file. Conversion failed MALLOC.lib Build libf2c.lib Thanks in advance, ray From haraldgalda at yahoo.com Tue Dec 28 09:33:42 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Tue, 28 Dec 2010 00:33:42 -0800 (PST) Subject: Problems with xmltojar Message-ID: <967369.34677.qm@web112602.mail.gq1.yahoo.com> Dear users, when I try to build the help of my toolbox with Scilab 5.3.0, I get the following error message: Building the manual file [javaHelp] in SCI\contrib\IPD-7.1\help\de_DE\. !--error 10000 xmltoformat: C:\Programme\scilab-5.3.0\contrib\IPD-7.1\help\de_DE\\scilab_de_DE_help\scilab_de_DE_help.jar has not been generated. at line 728 of function xmltoformat called by : at line 15 of function xmltojar called by : xmltojar(RegionHelpPath, ToolboxTitle, 'de_DE'); at line 23 of exec file called by : at line 13 of function tbx_builder called by : at line 49 of function tbx_builder_help_lang called by : tbx_builder_help_lang('de_DE', HelpPath); at line 29 of exec file called by : at line 13 of function tbx_builder called by : at line 26 of function tbx_builder_help called by : tbx_builder_help(ToolboxPath); On the beta versions of Scilab 5.3.0 it was still possible to build the help and so was it on Scilab 5.2.2. What has gone wrong? Are the XML files considered invalid by xmltojar in Scilab 5.3.0? The file master_help.xml and the directory scilab_de_DE_help *are* generated. However, scilab_de_DE_help is empty. By the way, the same problem occurs with English help. Best regards Harald Galda From grocer.toolbox at gmail.com Tue Dec 28 10:28:49 2010 From: grocer.toolbox at gmail.com (Eric Dubois) Date: Tue, 28 Dec 2010 10:28:49 +0100 Subject: [scilab-Users] Problems with xmltojar In-Reply-To: <967369.34677.qm@web112602.mail.gq1.yahoo.com> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> Message-ID: I confirm the problem: I encouter the same error when loading my toolbox into Scilab 5.3.0, and not with Scilab-5.3.0-beta5. What's still more troubling: the installation of the same toolbox through atoms works... ?ric. 2010/12/28 Harald Galda, Dr. Eng. (J) > Dear users, > > when I try to build the help of my toolbox with Scilab 5.3.0, I get the > following error message: > > > Building the manual file [javaHelp] in SCI\contrib\IPD-7.1\help\de_DE\. > !--error 10000 > xmltoformat: > > C:\Programme\scilab-5.3.0\contrib\IPD-7.1\help\de_DE\\scilab_de_DE_help\scilab_de_DE_help.jar > has not been generated. > at line 728 of function xmltoformat called by : > at line 15 of function xmltojar called by : > xmltojar(RegionHelpPath, ToolboxTitle, 'de_DE'); > at line 23 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 49 of function tbx_builder_help_lang called by : > tbx_builder_help_lang('de_DE', HelpPath); > at line 29 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 26 of function tbx_builder_help called by : > tbx_builder_help(ToolboxPath); > > > On the beta versions of Scilab 5.3.0 it was still possible to build the > help and > so was it on Scilab 5.2.2. What has gone wrong? Are the XML files > considered > invalid by xmltojar in Scilab 5.3.0? The file master_help.xml and the > directory > scilab_de_DE_help *are* generated. However, scilab_de_DE_help is empty. By > the > way, the same problem occurs with English help. > > Best regards > Harald Galda > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Tue Dec 28 11:19:06 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 28 Dec 2010 11:19:06 +0100 Subject: [scilab-Users] Problems with xmltojar In-Reply-To: <967369.34677.qm@web112602.mail.gq1.yahoo.com> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> Message-ID: <4D19B99A.8000001@durietz.se> On 2010-12-28 09:33, Harald Galda, Dr. Eng. (J) wrote: > Dear users, > > when I try to build the help of my toolbox with Scilab 5.3.0, I get the > following error message: > > > Building the manual file [javaHelp] in SCI\contrib\IPD-7.1\help\de_DE\. > !--error 10000 > xmltoformat: > C:\Programme\scilab-5.3.0\contrib\IPD-7.1\help\de_DE\\scilab_de_DE_help\scilab_de_DE_help.jar > has not been generated. > at line 728 of function xmltoformat called by : > at line 15 of function xmltojar called by : > xmltojar(RegionHelpPath, ToolboxTitle, 'de_DE'); > at line 23 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 49 of function tbx_builder_help_lang called by : > tbx_builder_help_lang('de_DE', HelpPath); > at line 29 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 26 of function tbx_builder_help called by : > tbx_builder_help(ToolboxPath); > > > On the beta versions of Scilab 5.3.0 it was still possible to build the help and > so was it on Scilab 5.2.2. What has gone wrong? Are the XML files considered > invalid by xmltojar in Scilab 5.3.0? The file master_help.xml and the directory > scilab_de_DE_help *are* generated. However, scilab_de_DE_help is empty. By the > way, the same problem occurs with English help. > > Best regards > Harald Galda > > Hi Harald, you have two consecutive backslashes in C:\Programme\scilab-5.3.0\contrib\IPD-7.1\help\de_DE\\scilab_de_DE_help\scilab_de_DE_help.jar Regards Stefan From sdr at durietz.se Tue Dec 28 11:22:20 2010 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 28 Dec 2010 11:22:20 +0100 Subject: [scilab-Users] How to fix a new Scilab 5.3.0 install - failed 'converting libraries'? In-Reply-To: References: <718831.72217.qm@web45515.mail.sp1.yahoo.com> <1293487146.2584.205.camel@Calixte-Dell> Message-ID: <4D19BA5C.4020006@durietz.se> On 2010-12-28 06:47, ray joseph wrote: > I just attempted to run the newly installed 5.3.0 on a Windows XP laptop. > How do I fix the associated error (below): > > Startup execution: > loading initial environment > > Start LCC-Win Compiler support > Load macros > Load help > Converting Libraries. > Build blasplus.lib > 'C:\Program' is not recognized as an internal or external command, > operable program or batch file. > 'C:\Program' is not recognized as an internal or external command, > operable program or batch file. > Conversion failed blasplus.lib > Build lapack.lib > 'C:\Program' is not recognized as an internal or external command, > operable program or batch file. > 'C:\Program' is not recognized as an internal or external command, > operable program or batch file. > Conversion failed lapack.lib > Build MALLOC.lib > 'C:\Program' is not recognized as an internal or external command, > operable program or batch file. > 'C:\Program' is not recognized as an internal or external command, > operable program or batch file. > Conversion failed MALLOC.lib > Build libf2c.lib > > > Thanks in advance, > ray Hi Ray, you have to quote the path with "Program Files" in Windows becayse there is a space in it! Regards Stefan From calixte at contrib.scilab.org Tue Dec 28 11:59:49 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Tue, 28 Dec 2010 11:59:49 +0100 Subject: [scilab-Users] Problems with xmltojar In-Reply-To: <967369.34677.qm@web112602.mail.gq1.yahoo.com> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> Message-ID: <1293533989.2584.230.camel@Calixte-Dell> Hi Harald, Could you start scilab from a terminal (bin\Scilex) ? and give me an error message (if one) ? Cheers, Calixte Le mardi 28 d?cembre 2010 ? 00:33 -0800, Harald Galda, Dr. Eng. (J) a ?crit : > Dear users, > > when I try to build the help of my toolbox with Scilab 5.3.0, I get the > following error message: > > > Building the manual file [javaHelp] in SCI\contrib\IPD-7.1\help\de_DE\. > !--error 10000 > xmltoformat: > C:\Programme\scilab-5.3.0\contrib\IPD-7.1\help\de_DE\\scilab_de_DE_help\scilab_de_DE_help.jar > has not been generated. > at line 728 of function xmltoformat called by : > at line 15 of function xmltojar called by : > xmltojar(RegionHelpPath, ToolboxTitle, 'de_DE'); > at line 23 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 49 of function tbx_builder_help_lang called by : > tbx_builder_help_lang('de_DE', HelpPath); > at line 29 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 26 of function tbx_builder_help called by : > tbx_builder_help(ToolboxPath); > > > On the beta versions of Scilab 5.3.0 it was still possible to build the help and > so was it on Scilab 5.2.2. What has gone wrong? Are the XML files considered > invalid by xmltojar in Scilab 5.3.0? The file master_help.xml and the directory > scilab_de_DE_help *are* generated. However, scilab_de_DE_help is empty. By the > way, the same problem occurs with English help. > > Best regards > Harald Galda > > From haraldgalda at yahoo.com Tue Dec 28 15:16:28 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Tue, 28 Dec 2010 06:16:28 -0800 (PST) Subject: AW: [scilab-Users] Problems with xmltojar In-Reply-To: <1293533989.2584.230.camel@Calixte-Dell> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> <1293533989.2584.230.camel@Calixte-Dell> Message-ID: <542709.20945.qm@web112603.mail.gq1.yahoo.com> Hi Calixte, I started Scilab from a terminal and changed to the toolbox directory. tbx_builder_help(pwd()) yields: Building help... erzeuge Meister Dokumente: SCI\contrib\IPD-7.1\help\de_DE\. An error occured during the conversion: org.xml.sax.SAXException: Refentry without id attributes in file:/C:/PROGRA~1/SCILAB~2.0/contrib/IPD-7.1/help/de_DE/ANALYZ~1.XML at line 8 at org.scilab.forge.scidoc.HTMLDocbookLinkResolver.startElement (Unknown Source) Similar error messages follow. After this, the error messages mentioned in my previous e-mail are displayed. What is this unknown source? Is it a server that does not respond? Regards Harald ----- Urspr?ngliche Mail ---- Von: Calixte Denizet An: users at lists.scilab.org Gesendet: Dienstag, den 28. Dezember 2010, 11:59:49 Uhr Betreff: Re: [scilab-Users] Problems with xmltojar Hi Harald, Could you start scilab from a terminal (bin\Scilex) ? and give me an error message (if one) ? Cheers, Calixte From haraldgalda at yahoo.com Tue Dec 28 15:18:25 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Tue, 28 Dec 2010 06:18:25 -0800 (PST) Subject: AW: [scilab-Users] Problems with xmltojar In-Reply-To: <4D19B99A.8000001@durietz.se> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> <4D19B99A.8000001@durietz.se> Message-ID: <214055.36299.qm@web112602.mail.gq1.yahoo.com> Hi Stefan, the error messages appear even if I pass the language as a parameter. In this case there are no consecutive back slashes, but the same error messages. Regards Harald ----- Urspr?ngliche Mail ---- Von: Stefan Du Rietz An: users at lists.scilab.org Gesendet: Dienstag, den 28. Dezember 2010, 11:19:06 Uhr Betreff: Re: [scilab-Users] Problems with xmltojar On 2010-12-28 09:33, Harald Galda, Dr. Eng. (J) wrote: > Dear users, > > when I try to build the help of my toolbox with Scilab 5.3.0, I get the > following error message: > > > Building the manual file [javaHelp] in SCI\contrib\IPD-7.1\help\de_DE\. > !--error 10000 > xmltoformat: >C:\Programme\scilab-5.3.0\contrib\IPD-7.1\help\de_DE\\scilab_de_DE_help\scilab_de_DE_help.jar >r > has not been generated. > at line 728 of function xmltoformat called by : > at line 15 of function xmltojar called by : > xmltojar(RegionHelpPath, ToolboxTitle, 'de_DE'); > at line 23 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 49 of function tbx_builder_help_lang called by : > tbx_builder_help_lang('de_DE', HelpPath); > at line 29 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 26 of function tbx_builder_help called by : > tbx_builder_help(ToolboxPath); > > > On the beta versions of Scilab 5.3.0 it was still possible to build the help >and > so was it on Scilab 5.2.2. What has gone wrong? Are the XML files considered > invalid by xmltojar in Scilab 5.3.0? The file master_help.xml and the directory > scilab_de_DE_help *are* generated. However, scilab_de_DE_help is empty. By the > way, the same problem occurs with English help. > > Best regards > Harald Galda > > Hi Harald, you have two consecutive backslashes in C:\Programme\scilab-5.3.0\contrib\IPD-7.1\help\de_DE\\scilab_de_DE_help\scilab_de_DE_help.jar Regards Stefan From calixte at contrib.scilab.org Tue Dec 28 15:28:27 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Tue, 28 Dec 2010 15:28:27 +0100 Subject: AW: [scilab-Users] Problems with xmltojar In-Reply-To: <542709.20945.qm@web112603.mail.gq1.yahoo.com> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> <1293533989.2584.230.camel@Calixte-Dell> <542709.20945.qm@web112603.mail.gq1.yahoo.com> Message-ID: <1293546507.2584.239.camel@Calixte-Dell> Le mardi 28 d?cembre 2010 ? 06:16 -0800, Harald Galda, Dr. Eng. (J) a ?crit : > Hi Calixte, > > I started Scilab from a terminal and changed to the toolbox directory. > tbx_builder_help(pwd()) yields: > > > > Building help... > > erzeuge Meister Dokumente: > > SCI\contrib\IPD-7.1\help\de_DE\. > > An error occured during the conversion: > > org.xml.sax.SAXException: Refentry without id attributes in > file:/C:/PROGRA~1/SCILAB~2.0/contrib/IPD-7.1/help/de_DE/ANALYZ~1.XML at line 8 > > at org.scilab.forge.scidoc.HTMLDocbookLinkResolver.startElement > (Unknown Source) > The "unknown source" is not important... The interesting information is "Refentry without id attributes in..." In the refentry tag, you must add something like xml:id="myIDForThisFile". This id is important to identify this help page (to put it in the TOC or to make link, in a closed future developpers could make links between differents toolboxes...). FYI, this kind of messages will directly appear (in version 5.3.1) in the console (so no need to start Scilex) Regards, Calixte > Similar error messages follow. After this, the error messages mentioned in my > previous e-mail are displayed. > > What is this unknown source? Is it a server that does not respond? > > Regards > Harald > > > > ----- Urspr?ngliche Mail ---- > Von: Calixte Denizet > An: users at lists.scilab.org > Gesendet: Dienstag, den 28. Dezember 2010, 11:59:49 Uhr > Betreff: Re: [scilab-Users] Problems with xmltojar > > Hi Harald, > > Could you start scilab from a terminal (bin\Scilex) ? and give me an > error message (if one) ? > > Cheers, > > Calixte > > From haraldgalda at yahoo.com Tue Dec 28 15:54:47 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Tue, 28 Dec 2010 06:54:47 -0800 (PST) Subject: AW: AW: [scilab-Users] Problems with xmltojar In-Reply-To: <1293546507.2584.239.camel@Calixte-Dell> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> <1293533989.2584.230.camel@Calixte-Dell> <542709.20945.qm@web112603.mail.gq1.yahoo.com> <1293546507.2584.239.camel@Calixte-Dell> Message-ID: <441293.11915.qm@web112606.mail.gq1.yahoo.com> Hi Calixte, the XML file contains the following line: So this xml:id="AnalyzeBlobs" should be copied into the refentry tag? It would take a lot of time to revise each XML file of my toolbox though. Regards Harald ----- Urspr?ngliche Mail ---- Von: Calixte Denizet An: users at lists.scilab.org Gesendet: Dienstag, den 28. Dezember 2010, 15:28:27 Uhr Betreff: Re: AW: [scilab-Users] Problems with xmltojar Le mardi 28 d?cembre 2010 ? 06:16 -0800, Harald Galda, Dr. Eng. (J) a ?crit : > Hi Calixte, > > I started Scilab from a terminal and changed to the toolbox directory. > tbx_builder_help(pwd()) yields: > > > > Building help... > > erzeuge Meister Dokumente: > > SCI\contrib\IPD-7.1\help\de_DE\. > > An error occured during the conversion: > > org.xml.sax.SAXException: Refentry without id attributes in > file:/C:/PROGRA~1/SCILAB~2.0/contrib/IPD-7.1/help/de_DE/ANALYZ~1.XML at line 8 > > at org.scilab.forge.scidoc.HTMLDocbookLinkResolver.startElement > (Unknown Source) > The "unknown source" is not important... The interesting information is "Refentry without id attributes in..." In the refentry tag, you must add something like xml:id="myIDForThisFile". This id is important to identify this help page (to put it in the TOC or to make link, in a closed future developpers could make links between differents toolboxes...). FYI, this kind of messages will directly appear (in version 5.3.1) in the console (so no need to start Scilex) Regards, Calixte > Similar error messages follow. After this, the error messages mentioned in my > previous e-mail are displayed. > > What is this unknown source? Is it a server that does not respond? > > Regards > Harald > > > > ----- Urspr?ngliche Mail ---- > Von: Calixte Denizet > An: users at lists.scilab.org > Gesendet: Dienstag, den 28. Dezember 2010, 11:59:49 Uhr > Betreff: Re: [scilab-Users] Problems with xmltojar > > Hi Harald, > > Could you start scilab from a terminal (bin\Scilex) ? and give me an > error message (if one) ? > > Cheers, > > Calixte > > From calixte at contrib.scilab.org Tue Dec 28 16:15:11 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Tue, 28 Dec 2010 16:15:11 +0100 Subject: AW: AW: [scilab-Users] Problems with xmltojar In-Reply-To: <441293.11915.qm@web112606.mail.gq1.yahoo.com> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> <1293533989.2584.230.camel@Calixte-Dell> <542709.20945.qm@web112603.mail.gq1.yahoo.com> <1293546507.2584.239.camel@Calixte-Dell> <441293.11915.qm@web112606.mail.gq1.yahoo.com> Message-ID: <1293549311.2584.252.camel@Calixte-Dell> Le mardi 28 d?cembre 2010 ? 06:54 -0800, Harald Galda, Dr. Eng. (J) a ?crit : > Hi Calixte, > Hi Harald, > the XML file contains the following line: > > > > So this xml:id="AnalyzeBlobs" should be copied into the refentry tag? It would > take a lot of time to revise each XML file of my toolbox though. > For the moment there is a bug: xml:id outside the refentry tag is not handled. I think xml:id can be used outside a refentry to identify a block and to link it with a linkend; by the way, it is like an HTML anchor. So in my mind, to identify the file itself, the good place is refentry, it is like that in all Scilab help files... Where do you see it was possible to put xml:id outside a refentry ? Regards, Calixte > Regards > Harald > > > > > ----- Urspr?ngliche Mail ---- > Von: Calixte Denizet > An: users at lists.scilab.org > Gesendet: Dienstag, den 28. Dezember 2010, 15:28:27 Uhr > Betreff: Re: AW: [scilab-Users] Problems with xmltojar > > Le mardi 28 d?cembre 2010 ? 06:16 -0800, Harald Galda, Dr. Eng. (J) a > ?crit : > > Hi Calixte, > > > > I started Scilab from a terminal and changed to the toolbox directory. > > tbx_builder_help(pwd()) yields: > > > > > > > > Building help... > > > > erzeuge Meister Dokumente: > > > > SCI\contrib\IPD-7.1\help\de_DE\. > > > > An error occured during the conversion: > > > > org.xml.sax.SAXException: Refentry without id attributes in > > file:/C:/PROGRA~1/SCILAB~2.0/contrib/IPD-7.1/help/de_DE/ANALYZ~1.XML at line 8 > > > > at org.scilab.forge.scidoc.HTMLDocbookLinkResolver.startElement > > (Unknown Source) > > > > The "unknown source" is not important... The interesting information is > "Refentry without id attributes in..." > > In the refentry tag, you must add something like > xml:id="myIDForThisFile". This id is important to identify this help > page (to put it in the TOC or to make link, in a closed future > developpers could make links between differents toolboxes...). > > FYI, this kind of messages will directly appear (in version 5.3.1) in > the console (so no need to start Scilex) > > Regards, > > Calixte > > > Similar error messages follow. After this, the error messages mentioned in my > > previous e-mail are displayed. > > > > What is this unknown source? Is it a server that does not respond? > > > > Regards > > Harald > > > > > > > > ----- Urspr?ngliche Mail ---- > > Von: Calixte Denizet > > An: users at lists.scilab.org > > Gesendet: Dienstag, den 28. Dezember 2010, 11:59:49 Uhr > > Betreff: Re: [scilab-Users] Problems with xmltojar > > > > Hi Harald, > > > > Could you start scilab from a terminal (bin\Scilex) ? and give me an > > error message (if one) ? > > > > Cheers, > > > > Calixte > > > > > > From Jean-Louis.Auge at grenoble.cnrs.fr Tue Dec 28 17:09:19 2010 From: Jean-Louis.Auge at grenoble.cnrs.fr (Jean-Louis Auge) Date: Tue, 28 Dec 2010 17:09:19 +0100 Subject: Graphic interfaces Message-ID: <4D1A0BAF.501@grenoble.cnrs.fr> Dear users, I attempted to do a little program to change the label of a pushbutton but the result is was inconclusive. Here the programm: //Initialisation stage clear all; clc; for i=0:100, close(i), end; //to change the label of the button A function [A_style]=changeA(B_style,A_style) A_style.String="B" disp("go through changeA") endfunction; //to change the label of the button B function [B_style]=changeB(A_style) B_style.String="A" disp("go through changeB") endfunction; h=scf(); h.position=[0 0 1000 800]; A_style=uicontrol(h,"style", "pushbutton"); A_style.Units="normalized"; A_style.Position = [0 0.95 0.2 0.05]; A_style.BackgroundColor="1|0|1"; A_style.Fontsize=20; A_style.String = "A"; A_style.Callback="changeB"; B_style=uicontrol(h,"style", "pushbutton"); B_style.Units="normalized"; B_style.Position = [0 0 0.2 0.05]; B_style.BackgroundColor="1|0|1"; B_style.Fontsize=20; B_style.String = "B"; B_style.Callback="changeA"; I wanted change the label of the pressbutton A pushing the button B and vice versa. The result is inconclusive. Does somebody meet this case in this development. Moreover, do you know websites where graphic interfaces documentations are given? I did not find many comments about the subject. Is Scilab often use to develop interface graphics? Best regards, JL. From haraldgalda at yahoo.com Wed Dec 29 08:04:25 2010 From: haraldgalda at yahoo.com (Harald Galda, Dr. Eng. (J)) Date: Tue, 28 Dec 2010 23:04:25 -0800 (PST) Subject: Problems with xmltojar In-Reply-To: <1293549311.2584.252.camel@Calixte-Dell> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> <1293533989.2584.230.camel@Calixte-Dell> <542709.20945.qm@web112603.mail.gq1.yahoo.com> <1293546507.2584.239.camel@Calixte-Dell> <441293.11915.qm@web112606.mail.gq1.yahoo.com> <1293549311.2584.252.camel@Calixte-Dell> Message-ID: <540384.71401.qm@web112605.mail.gq1.yahoo.com> Hi Calixte, I created the XML files with XMLmind XML Editor. This program generates XML code automatically. I am not aware of any possibility to control where xml:id is put. Moreover, my XML files were processed without problems in all Scilab versions before 5.3.0. Regards Harald ----- Urspr?ngliche Mail ---- Von: Calixte Denizet An: users at lists.scilab.org Gesendet: Dienstag, den 28. Dezember 2010, 16:15:11 Uhr Betreff: Re: AW: AW: [scilab-Users] Problems with xmltojar Le mardi 28 d?cembre 2010 ? 06:54 -0800, Harald Galda, Dr. Eng. (J) a ?crit : > Hi Calixte, > Hi Harald, > the XML file contains the following line: > > > > So this xml:id="AnalyzeBlobs" should be copied into the refentry tag? It would > take a lot of time to revise each XML file of my toolbox though. > For the moment there is a bug: xml:id outside the refentry tag is not handled. I think xml:id can be used outside a refentry to identify a block and to link it with a linkend; by the way, it is like an HTML anchor. So in my mind, to identify the file itself, the good place is refentry, it is like that in all Scilab help files... Where do you see it was possible to put xml:id outside a refentry ? Regards, Calixte From motamedi24 at gmail.com Wed Dec 29 10:55:01 2010 From: motamedi24 at gmail.com (hadi motamedi) Date: Wed, 29 Dec 2010 13:25:01 +0330 Subject: [scilab-Users] Problems with xmltojar In-Reply-To: <967369.34677.qm@web112602.mail.gq1.yahoo.com> References: <967369.34677.qm@web112602.mail.gq1.yahoo.com> Message-ID: On 12/28/10, Harald Galda, Dr. Eng. (J) wrote: > Dear users, > > when I try to build the help of my toolbox with Scilab 5.3.0, I get the > following error message: > > > Building the manual file [javaHelp] in SCI\contrib\IPD-7.1\help\de_DE\. > !--error 10000 > xmltoformat: > C:\Programme\scilab-5.3.0\contrib\IPD-7.1\help\de_DE\\scilab_de_DE_help\scilab_de_DE_help.jar > has not been generated. > at line 728 of function xmltoformat called by : > at line 15 of function xmltojar called by : > xmltojar(RegionHelpPath, ToolboxTitle, 'de_DE'); > at line 23 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 49 of function tbx_builder_help_lang called by : > tbx_builder_help_lang('de_DE', HelpPath); > at line 29 of exec file called by : > > at line 13 of function tbx_builder called by : > at line 26 of function tbx_builder_help called by : > tbx_builder_help(ToolboxPath); > > > On the beta versions of Scilab 5.3.0 it was still possible to build the help > and > so was it on Scilab 5.2.2. What has gone wrong? Are the XML files considered > invalid by xmltojar in Scilab 5.3.0? The file master_help.xml and the > directory > scilab_de_DE_help *are* generated. However, scilab_de_DE_help is empty. By > the > way, the same problem occurs with English help. > > Best regards > Harald Galda > > > Excuse me, how to unsubscribe? From michael.baudin at scilab.org Wed Dec 29 16:01:28 2010 From: michael.baudin at scilab.org (michael.baudin at scilab.org) Date: Wed, 29 Dec 2010 16:01:28 +0100 Subject: [scilab-Users] Problem with Floating point and determinant of a matrix In-Reply-To: <764165.72007.qm@web45504.mail.sp1.yahoo.com> References: <764165.72007.qm@web45504.mail.sp1.yahoo.com> Message-ID: Hi Reinaldo, As Gilbert Strang writes, "The way to understand this subject is by example". Here is an example where the matrix A is numerically well conditioned, but has a zero determinant : -->n=200; -->a=1.e-2; -->A=a*eye(n,n); -->det(A) ans = 0. -->rcond(A) ans = 1. Hence, we have just found a 200-by-200 matrix A for which the determinant is zero, even if the matrix A is perfectly conditioned. In practice, this particular matrix A behaves much more as a diagonal matrix than as a singular matrix. You can find a similar example in "Computer methods for mathematical computations", by Forsythe, Malcolm and Moler, see chapter 3 "Linear systems of equations", p. 44. The kind of conditioning which is computed by rcond is the conditioning with respect with the linear equation A*x=b problem. The determinant is a bad measure of the numerical singularity of the matrix A. In some sense, it is "absolute" and does not take into account for scale factors. The condition number defined by K(A)=||A|| ||A^-1||, for a given norm, is a measure of the closeness to the set of the singular matrices. For the A*x=b problem, it is a relative error magnification factor. All in all, we may write our algorithms as : if ( rcond(A) > threshold ) then // A is well conditioned else // A is ill-conditioned end A reasonable threshold may be threshold = %eps ~ 10^-16. But this condition is only valid for the A*x=b problem. For example, the eigenvalue problem has a different condition number. An intuitive presentation of this topic is given in "Numerical computing with Matlab" by Moler (see the chapter 2 "Linear equations"). A more detailed presentation is done in Golub and Van Loan's "Matrix computations". Other good authors are Demmel "Applied numerical linear algebra", Higham "Accuracy and stability of numerical algorithms" and the pioneering work of Wilkinson "Rounding errors in algebraic processes". Best regards, Micha?l Baudin On Mon, 27 Dec 2010 13:15:36 -0800 (PST), "Prof. Dr. Reinaldo Golmia Dante" wrote: > Hi all, > > I understand that Scilab?stores the real numbers with foating point > numbers, > that is, with limited precision, and the computed value?(answer) is > not exactly > equal to 0 (page 23 - manual "Introduction to Scilab"). > ? > Take at look for those?examples: > ? > A?= [1 2 3; 4 5 6; 7 8 9] > A? = > ? > ??? 1.??? 2.??? 3.? > ??? 4.??? 5.??? 6.? > ??? 7.??? 8.??? 9.? > ? > -->det(A) > ?ans? = > ? > ??? 6.661D-16? <---------- it should be 0 > ? > -->inv(A) > ?ans? = > ? > ?10^15 * > ? > ? - 4.5035996??? 9.0071993? - 4.5035996? > ??? 9.0071993? - 18.014399??? 9.0071993? > ? - 4.5035996??? 9.0071993? - 4.5035996??????????? <---------- it > should appear > an error message because the matrix A is not invertible (or > singular). > > ? > -->det(inv(A)) > ?ans? = > ? > ??? 9.007D+15???? <--------------?The determinant of?invertible > matrix?A^(-1) > does not exist. > ? > Other example: > > -->B = [1 1; 1 1] > B? = > ? > ??? 1.??? 1.? > ??? 1.??? 1.? > ? > -->det(B) > ?ans? = > ? > ??? 0.? <-------- it is correct !! > ? > -->inv(B) > ?????? !--error 19??? <-------- it is correct !! > > ? > The previously examples show two integer matrices A and B. The > determinant of > matrix A is quite zero, but not, > and this can propagate?an error in case the Scilab developer uses > that result > into other future?calculations or algorithms. > The determinant of matrix B is equal to 0 and the answer is correct. > In case the > Scilab developer uses that value, > he or she can use the simple statement for testing like to: > ?if (?det(matrix) <>?0 ) then > ???????????????????? // The Scilab developer knows that the > matrix is > invertible (or nonsingular) > else > ???????????????????? // The Scilab developer knows that the > matrix is > not invertible (or singular) > end > ? > My doubt: "How can I proceed to design any algorithm,?which uses > matrix,?if the > determinant of > > the matrix?could not be zero and, as the same time,?that matrix is > not > invertible ?". > How can I manage this uncertainty ? > ? > I appreciate to hearing from you some hints to solve this > uncertainty. > ? > Thank you in advance. > ? > All best, > Reinaldo. > ? > PS: I am not MATLAB user, but?has MATLAB?got this?limited precision > for > determinants ? From jsdey at optonline.net Wed Dec 29 20:31:06 2010 From: jsdey at optonline.net (John Dey) Date: Wed, 29 Dec 2010 14:31:06 -0500 Subject: Default directory Message-ID: <73BE7A58-BC77-4E6A-9D24-A3E492A92A83@optonline.net> Hi list, I am new to scilab. I want to change the default working directory on my os x snow leopard. The default address is HOME. I set the .scilab file by adding disp("Sample message") and added the cd command to the file to change the directory. When I start scilab, the sample message prints but the directory doesn't change. How do I change the default directory? Thanks John From jsdey at optonline.net Wed Dec 29 21:45:33 2010 From: jsdey at optonline.net (John Dey) Date: Wed, 29 Dec 2010 15:45:33 -0500 Subject: [scilab-Users] Default directory In-Reply-To: <73BE7A58-BC77-4E6A-9D24-A3E492A92A83@optonline.net> References: <73BE7A58-BC77-4E6A-9D24-A3E492A92A83@optonline.net> Message-ID: <8E45C150-BA34-4AAF-86BF-93C45985661F@optonline.net> Hi list, Well--things were working. If I use the command "dir", the proper new default directory is printed. But cd shows HOME. cd . (that is a dot) shows the new default directory. I'm all set! John On Dec 29, 2010, at 2:31 PM, John Dey wrote: > Hi list, > > I am new to scilab. I want to change the default working directory on my os x snow leopard. The default address is HOME. I set the .scilab file by adding disp("Sample message") and added the cd command to the file to change the directory. When I start scilab, the sample message prints but the directory doesn't change. > > How do I change the default directory? Thanks > > John > From tiraduvidascefet at yahoo.com Wed Dec 29 23:52:04 2010 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Wed, 29 Dec 2010 14:52:04 -0800 (PST) Subject: Integration between LPSolve and Scilab Message-ID: <60161.49746.qm@web45506.mail.sp1.yahoo.com> Hi, I would like to know if someone can help me to?integrate LPSOLVE with Scilab. Seems hard to?do?it into Scilab. I have Win7 home edition. What I did: First: I downloaded the file: lp_solve_5.5.2.0_IDE_Setup.exe? and ran it. I wanted to?check if LPSOLVE is a good software and easy to use it. I tested a simple linear equation and it worked in?LPSOLVE console ! Good signal ! Second: I accessed the URL: http://lpsolve.sourceforge.net/5.5/?and read Quickstart. Wow ... it was so confused !!!! Then, I downloaded the file: lp_solve_5.5.2.0_scilab_exe_win32.zip? at URL: http://en.sourceforge.jp/projects/sfnet_lpsolve/downloads/lpsolve/5.5.2.0/lp_solve_5.5.2.0_scilab_exe_win32.zip/ and unzipped it.?The directory lp_solve contains three sub-directories bin, macros and man, and some files, as follows: ? 12/29/2010 07:00 PM . 12/29/2010 07:00 PM .. 12/29/2010 07:00 PM bin 12/29/2010 07:00 PM 3,796 builder.sce 12/29/2010 07:00 PM 730 changes 12/29/2010 07:00 PM 3,699 ex.sce 12/29/2010 07:00 PM 974 example1.sce 12/29/2010 07:00 PM 837 example2.sce 12/29/2010 07:00 PM 296 example3.sce 12/29/2010 07:00 PM 258 example4.sce 12/29/2010 07:00 PM 279 example5.sce 12/29/2010 07:00 PM 527 example6.sce 12/29/2010 07:00 PM 916 loader.sce 12/29/2010 07:00 PM 2,682 lpdemo.sce 12/29/2010 07:00 PM macros 12/29/2010 07:00 PM man 12/29/2010 07:19 PM 2,127 README.txt 12/29/2010 07:00 PM 123,079 Scilab.htm I tried to read again the Quickstart at http://lpsolve.sourceforge.net/5.5/, but it really seems confused ! I stopped here !! I?copied it to this mail and wrote some comments (doubts), as follows: Quickstart Compile and build sclpsolve: ---------------------------- 1. Get the needed sources and libraries: Archive lp_solve_5.5.2.0_scilab_source.tar.gz contains the sources to build sclpsolve. Uncompress it to a directory, for example d:\lp_solve. Make sure that the folder structure is kept. It will create a directory structure lp_solve_5.5\extra\scilab\lpsolve in that folder. ? ? MY COMMENT: it is not the file that I downloaded, because my OS is Win7 home edition. Moreover, when I unzipped it, it does not create that directory structure: lp_solve_5.5\extra\scilab\lpsolve So, need I create it ??? ? ? ??? Archive lp_solve_5.5.2.0_dev.zip (Windows) or lp_solve_5.5.2.0_dev.tar.gz (Unix) contains needed libraries and include files to link the sources with. Uncompress it to the same folder as for the sources, appended with lp_solve_5.5. In this example that would be d:\lp_solve\lp_solve_5.5 ? ? MY COMMENT: I could not find the file lp_solve_5.5.2.0_dev.zip to download !! ? You have now all needed files in place. In your chosen directory (in this example d:\lp_solve) there will only be a directory lp_solve_5.5 In this directory, you have a directory extra and some files ending with .h and .lib The extra directory contains a scilab directory which contains a directory lpsolve with some files and directories. Under Windows, the lpsolve library lpsolve55.lib must be available in the lpsolve55 directory. However older version of scilab (<=3.0) require that this file is called lpsolve55.ilib In that case copy lpsolve55.lib to lpsolve55.ilib 1. 2. 3. Under Windows, the Microsoft Visual C/C++ compiler must be installed and the environment variables must be active so that when a command prompt is opened, the cl and nmake commands can be executed. This can be done also by opening a command prompt and execute the batch file VCVARS32.BAT (somewhere on your system) and then starting scilab from that same command prompt. ? ? MY COMMENT: I am not sure if I have C/C++ compiler installed in my computer. Before I installed Mingw and it installed some C/C++ files and created a directory called gcc which contains: 12/20/2010 12:34 PM . 12/20/2010 12:34 PM .. 12/20/2010 12:33 PM bin 12/20/2010 12:33 PM i686-pc-mingw32 12/20/2010 12:34 PM include 12/20/2010 12:34 PM lib 12/20/2010 12:34 PM libexec 12/20/2010 12:34 PM manual 12/20/2010 12:34 PM share ? How can I certify that C/C++ compiler is installed ? In case it is installed, what are cl and nmake commands ? How can I know if they work properly ? Moreover, what can I do with the file VCVARS32.BAT ? ? ? 1. Start Scilab 1. 2. Check under Scilab that the current directory is the lpsolve directory. Use the Scilab pwd command to show the current directory. With the chdir command, you can change the current directory. This current directory must be lp_solve_5.5/extra/scilab/lpsolve example: chdir('d:/lp_solve/lp_solve_5.5/extra/scilab/lpsolve') ? ? MY COMMENT: when I type pwd in Scilab, the path is: ? -->pwd ?ans? = ? ?C:\Program Files (x86)\scilab-5.3.0? ? ? 1. To compile and build sclpsolve, enter the following command in Scilab: -->exec builder.sce This should be done once to build the sclpsolve driver and to produce the file loader.sce. Load the sclpsolve driver in the Scilab memory space: ----------------------------------------------------- 1. Under Windows, make sure that the lpsolve55.dll file is somewhere in the path Under Unix/Linux, make sure that the liblpsolve55.so shared library is in /usr/lib or /lib so that Unix can find it. They are in archives lp_solve_5.5.2.0_dev.zip/lp_solve_5.5.2.0_dev.tar.gz and were installed in the lp_solve_5.5 directory of step 1 of the previous procedure. 2. It is required that the sclpsolve driver is first build. That must be done only once. So if you haven't taken the steps yet to build the sclpsolve driver, then do this first as described previously in 'Compile and build sclpsolve' 3. Start Scilab 4. Check under Scilab that the current directory is the lpsolve directory. Use the Scilab pwd command to show the current directory. With the chdir command, you can change the current directory. This current directory must be lp_solve_5.5/extra/scilab/lpsolve example: chdir('/lp_solve/lp_solve_5.5/extra/scilab/lpsolve') 5. Enter the following command in Scilab: -->exec loader.sce ? ? ? Therefore, I think the Quickstart is a little bit confused to understand ! Could be better if we might transfer lp_solve directory to Scilab and type atomsInstall([...]) like other modules !!! ? If someone knows how to integrate LPSOLVE with Scilab, please give me some hints !! ? Thank you in advance. ? All best, Reinaldo. From manjusha.joshi at gmail.com Thu Dec 30 07:33:37 2010 From: manjusha.joshi at gmail.com (Manjusha Joshi) Date: Thu, 30 Dec 2010 01:33:37 -0500 Subject: [scilab-Users] Problem with Floating point and determinant of a matrix In-Reply-To: <764165.72007.qm@web45504.mail.sp1.yahoo.com> References: <764165.72007.qm@web45504.mail.sp1.yahoo.com> Message-ID: Hello, > > > > -->det(A) > ans = > > 6.661D-16 <---------- it should be 0 > > -->inv(A) > ans = > > 10^15 * > > - 4.5035996 9.0071993 - 4.5035996 > 9.0071993 - 18.014399 9.0071993 > - 4.5035996 9.0071993 - 4.5035996 <---------- it should > appear > an error message because the matrix A is not invertible (or singular). > > > -->det(inv(A)) > ans = > > 9.007D+15 <-------------- The determinant of invertible > matrix A^(-1) > does not exist. > > Other example: > > -->B = [1 1; 1 1] > B = > > 1. 1. > 1. 1. > > -->det(B) > ans = > > 0. <-------- it is correct !! > > -->inv(B) > !--error 19 <-------- it is correct !! > > > The previously examples show two integer matrices A and B. The determinant > of > matrix A is quite zero, but not, > and this can propagate an error in case the Scilab developer uses that > result > into other future calculations or algorithms. > The determinant of matrix B is equal to 0 and the answer is correct. In > case the > Scilab developer uses that value, > he or she can use the simple statement for testing like to: > if ( det(matrix) <> 0 ) then > // The Scilab developer knows that the > matrix is > invertible (or nonsingular) > else > // The Scilab developer knows that the > matrix is > not invertible (or singular) > end > > My doubt: "How can I proceed to design any algorithm, which uses matrix, if > the > determinant of > > the matrix could not be zero and, as the same time, that matrix is not > invertible ?". > How can I manage this uncertainty ? > > clean(det(A)) clean(inv(B)) This will return value as zero if it is near to zero. -- Manjusha S. Joshi P.I. of project on Use of Open source software for Teaching Maths, http://fossme.bprim.org Lecturer in Computational Mathematics, BIM, Pune, India. www.bprim.org Mobile: 09822 319328 blog:http://manjushajoshi.wordpress.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab.org Thu Dec 30 11:15:26 2010 From: vincent.couvert at scilab.org (Vincent COUVERT) Date: Thu, 30 Dec 2010 11:15:26 +0100 Subject: [scilab-Users] Graphic interfaces In-Reply-To: <4D1A0BAF.501@grenoble.cnrs.fr> References: <4D1A0BAF.501@grenoble.cnrs.fr> Message-ID: <4D1C5BBE.1090308@scilab.org> Hi Jean-Louis, Your callback functions must not take input arguments because when they are called, "B_style" and "A_style" are undefined. The good way to manage your test case is to identify your buttons using a tag (see the tag property), then using findobj to get them in your callback functions and finally setting the string value. // Creation A_style.tag = "A_style" // Callback function A_style = findobj("Tag", "A_style"); A_style.string = "B"; Regards, Vincent Le 28/12/10 17:09, Jean-Louis Auge a ?crit : > Dear users, > > I attempted to do a little program to change the label of a pushbutton > but the result is was inconclusive. > > Here the programm: > > //Initialisation stage > clear all; > clc; > for i=0:100, close(i), end; > > > //to change the label of the button A > function [A_style]=changeA(B_style,A_style) > A_style.String="B" > disp("go through changeA") > endfunction; > > //to change the label of the button B > function [B_style]=changeB(A_style) > B_style.String="A" > disp("go through changeB") > endfunction; > > > h=scf(); > h.position=[0 0 1000 800]; > A_style=uicontrol(h,"style", "pushbutton"); > A_style.Units="normalized"; > A_style.Position = [0 0.95 0.2 0.05]; > A_style.BackgroundColor="1|0|1"; > A_style.Fontsize=20; > A_style.String = "A"; > A_style.Callback="changeB"; > > B_style=uicontrol(h,"style", "pushbutton"); > B_style.Units="normalized"; > B_style.Position = [0 0 0.2 0.05]; > B_style.BackgroundColor="1|0|1"; > B_style.Fontsize=20; > B_style.String = "B"; > B_style.Callback="changeA"; > > > I wanted change the label of the pressbutton A pushing the button B > and vice versa. > The result is inconclusive. > > Does somebody meet this case in this development. > > Moreover, do you know websites where graphic interfaces documentations > are given? I did not find many comments about the subject. > Is Scilab often use to develop interface graphics? > > Best regards, > > JL. > > > From celso.co at gmail.com Thu Dec 30 13:20:14 2010 From: celso.co at gmail.com (Celso Co) Date: Thu, 30 Dec 2010 20:20:14 +0800 Subject: [scilab-Users] Problem with Floating point and determinant of a matrix In-Reply-To: <764165.72007.qm@web45504.mail.sp1.yahoo.com> References: <764165.72007.qm@web45504.mail.sp1.yahoo.com> Message-ID: You can try chopping it off. > int(A*1d14)/1d14 > 0 On Tue, Dec 28, 2010 at 5:15 AM, Prof. Dr. Reinaldo Golmia Dante wrote: > Hi all, > > I understand that Scilab?stores the real numbers with foating point numbers, > that is, with limited precision, and the computed value?(answer) is not exactly > equal to 0 (page 23 - manual "Introduction to Scilab"). > > Take at look for those?examples: > > A?= [1 2 3; 4 5 6; 7 8 9] > A? = > > ??? 1.??? 2.??? 3. > ??? 4.??? 5.??? 6. > ??? 7.??? 8.??? 9. > > -->det(A) > ?ans? = > > ??? 6.661D-16? <---------- it should be 0 > > -->inv(A) > ?ans? = > > ?10^15 * > > ? - 4.5035996??? 9.0071993? - 4.5035996 > ??? 9.0071993? - 18.014399??? 9.0071993 > ? - 4.5035996??? 9.0071993? - 4.5035996??????????? <---------- it should appear > an error message because the matrix A is not invertible (or singular). > > > -->det(inv(A)) > ?ans? = > > ??? 9.007D+15???? <--------------?The determinant of?invertible matrix?A^(-1) > does not exist. > > Other example: > > -->B = [1 1; 1 1] > B? = > > ??? 1.??? 1. > ??? 1.??? 1. > > -->det(B) > ?ans? = > > ??? 0.? <-------- it is correct !! > > -->inv(B) > ?????? !--error 19??? <-------- it is correct !! > > > The previously examples show two integer matrices A and B. The determinant of > matrix A is quite zero, but not, > and this can propagate?an error in case the Scilab developer uses that result > into other future?calculations or algorithms. > The determinant of matrix B is equal to 0 and the answer is correct. In case the > Scilab developer uses that value, > he or she can use the simple statement for testing like to: > ?if (?det(matrix) <>?0 ) then > ???????????????????? // The Scilab developer knows that the matrix is > invertible (or nonsingular) > else > ???????????????????? // The Scilab developer knows that the matrix is > not invertible (or singular) > end > > My doubt: "How can I proceed to design any algorithm,?which uses matrix,?if the > determinant of > > the matrix?could not be zero and, as the same time,?that matrix is not > invertible ?". > How can I manage this uncertainty ? > > I appreciate to hearing from you some hints to solve this uncertainty. > > Thank you in advance. > > All best, > Reinaldo. > > PS: I am not MATLAB user, but?has MATLAB?got this?limited precision for > determinants ? > > > > -- Eng'r Celso B. Co, PhD ECE Assistant Professor Dept. of Electronics, Computer, and Communication Engineering, Loyola Schools of Science and Engineering, Ateneo De Manila From tiraduvidascefet at yahoo.com Thu Dec 30 13:51:52 2010 From: tiraduvidascefet at yahoo.com (Prof. Dr. Reinaldo Golmia Dante) Date: Thu, 30 Dec 2010 04:51:52 -0800 (PST) Subject: [scilab-Users] Problem with Floating point and determinant of a matrix In-Reply-To: References: <764165.72007.qm@web45504.mail.sp1.yahoo.com> Message-ID: <103864.23563.qm@web45512.mail.sp1.yahoo.com> Woww ... Manjsha, it works ! Interesting command ! Thnx. Reinaldo. ________________________________ From: Manjusha Joshi To: users at lists.scilab.org Sent: Thu, December 30, 2010 4:33:37 AM Subject: Re: [scilab-Users] Problem with Floating point and determinant of a matrix Hello,? ? >? >? >-->det(A) >?ans? = >? >??? 6.661D-16? <---------- it should be 0 >? >-->inv(A) >?ans? = >? >?10^15 * >? >? - 4.5035996??? 9.0071993? - 4.5035996? >??? 9.0071993? - 18.014399??? 9.0071993? >? - 4.5035996??? 9.0071993? - 4.5035996??????????? <---------- it should appear >an error message because the matrix A is not invertible (or singular). > >? >-->det(inv(A)) >?ans? = >? >??? 9.007D+15???? <--------------?The determinant of?invertible matrix?A^(-1) >does not exist. >? >Other example: > >-->B = [1 1; 1 1] >B? = >? >??? 1.??? 1.? >??? 1.??? 1.? >? >-->det(B) >?ans? = >? >??? 0.? <-------- it is correct !! >? >-->inv(B) >?????? !--error 19??? <-------- it is correct !! > >? >The previously examples show two integer matrices A and B. The determinant of >matrix A is quite zero, but not, >and this can propagate?an error in case the Scilab developer uses that result >into other future?calculations or algorithms. >The determinant of matrix B is equal to 0 and the answer is correct. In case the >Scilab developer uses that value, >he or she can use the simple statement for testing like to: >?if (?det(matrix) <>?0 ) then >???????????????????? // The Scilab developer knows that the matrix is >invertible (or nonsingular) >else >???????????????????? // The Scilab developer knows that the matrix is >not invertible (or singular) >end >? >My doubt: "How can I proceed to design any algorithm,?which uses matrix,?if the >determinant of > >the matrix?could not be zero and, as the same time,?that matrix is not >invertible ?". >How can I manage this uncertainty ? >?? >clean(det(A)) clean(inv(B)) This will return value ?as zero if it is near to zero. -- Manjusha S. Joshi? P.I. of project on Use of Open source software for Teaching Maths, ?http://fossme.bprim.org Lecturer in Computational? Mathematics, BIM, Pune, India. www.bprim.org Mobile:? 09822 319328 blog:http://manjushajoshi.wordpress.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnepopp44 at yahoo.com Thu Dec 30 04:23:30 2010 From: johnepopp44 at yahoo.com (John Popp) Date: Wed, 29 Dec 2010 19:23:30 -0800 (PST) Subject: Printing Message-ID: <816702.58292.qm@web120009.mail.ne1.yahoo.com> I recently installed scilab and created a simple program with a 2D graph. The console and the scinotes window open and look and work fine. The graph looks good too, ON THE MONITOR, but when I print the graph screen, all my graphs PRINT as MIRROR IMAGES! Any suggestions short of reinstalling scilab? Thanks in advance for any helpful replies.? J Popp -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte at contrib.scilab.org Fri Dec 31 10:42:35 2010 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 31 Dec 2010 10:42:35 +0100 Subject: [scilab-Users] Printing In-Reply-To: <816702.58292.qm@web120009.mail.ne1.yahoo.com> References: <816702.58292.qm@web120009.mail.ne1.yahoo.com> Message-ID: <1293788555.6494.1.camel@Calixte-Dell> Hi John, Please make a bug report on bugzilla.scilab.org and give your OS, your graphic card vendor and the driver version. Regards, Calixte Le mercredi 29 d?cembre 2010 ? 19:23 -0800, John Popp a ?crit : > I recently installed scilab and created a simple program with a 2D > graph. The console and the scinotes window open and look and work > fine. The graph looks good too, ON THE MONITOR, but when I print the > graph screen, all my graphs PRINT as MIRROR IMAGES! Any suggestions > short of reinstalling scilab? Thanks in advance for any helpful > replies. J Popp > From dean.parsons at att.net Fri Dec 31 19:01:48 2010 From: dean.parsons at att.net (Dean Parsons) Date: Fri, 31 Dec 2010 12:01:48 -0600 Subject: [scilab-Users] Printing References: <816702.58292.qm@web120009.mail.ne1.yahoo.com> Message-ID: <341E4595268742CAB61A992CE352A6BB@optiplex745> John, I have an ATI graphics card and I had the same problem you have and I found two work arounds for the problem: (1) I changed the settings in my HP printing software (I have an HP printer) to mirror the mirrored image before printing. Doing this made the graph come out correctly (unmirrored). (2) I find that if I export the graphics with the scilab xs2svg command and then use Inkscape (free software that reads svg files) to print it, the graphs will be correct (unmirrored). However, I find that with the xs2svg command the options for portrait and landscape are reversed. The 'portrait' option gives me a landscape and 'landscape' option gives me a portrait. (I need to report this as a bug but I haven't done so yet.) Dean Parsons ----- Original Message ----- From: John Popp To: users at lists.scilab.org Sent: Wednesday, December 29, 2010 9:23 PM Subject: [scilab-Users] Printing I recently installed scilab and created a simple program with a 2D graph. The console and the scinotes window open and look and work fine. The graph looks good too, ON THE MONITOR, but when I print the graph screen, all my graphs PRINT as MIRROR IMAGES! Any suggestions short of reinstalling scilab? Thanks in advance for any helpful replies. J Popp -------------- next part -------------- An HTML attachment was scrubbed... URL: From dean.parsons at att.net Fri Dec 31 19:04:48 2010 From: dean.parsons at att.net (Dean Parsons) Date: Fri, 31 Dec 2010 12:04:48 -0600 Subject: [scilab-Users] Printing References: <816702.58292.qm@web120009.mail.ne1.yahoo.com> <341E4595268742CAB61A992CE352A6BB@optiplex745> Message-ID: <061A47596A6748658B36986AB9E58F62@optiplex745> John, I forgot to mention that my OS is Windows XP. Dean ----- Original Message ----- From: Dean Parsons To: users at lists.scilab.org Sent: Friday, December 31, 2010 12:01 PM Subject: Re: [scilab-Users] Printing John, I have an ATI graphics card and I had the same problem you have and I found two work arounds for the problem: (1) I changed the settings in my HP printing software (I have an HP printer) to mirror the mirrored image before printing. Doing this made the graph come out correctly (unmirrored). (2) I find that if I export the graphics with the scilab xs2svg command and then use Inkscape (free software that reads svg files) to print it, the graphs will be correct (unmirrored). However, I find that with the xs2svg command the options for portrait and landscape are reversed. The 'portrait' option gives me a landscape and 'landscape' option gives me a portrait. (I need to report this as a bug but I haven't done so yet.) Dean Parsons ----- Original Message ----- From: John Popp To: users at lists.scilab.org Sent: Wednesday, December 29, 2010 9:23 PM Subject: [scilab-Users] Printing I recently installed scilab and created a simple program with a 2D graph. The console and the scinotes window open and look and work fine. The graph looks good too, ON THE MONITOR, but when I print the graph screen, all my graphs PRINT as MIRROR IMAGES! Any suggestions short of reinstalling scilab? Thanks in advance for any helpful replies. J Popp -------------- next part -------------- An HTML attachment was scrubbed... URL: From cwarner7_11 at hotmail.com Fri Dec 31 19:57:44 2010 From: cwarner7_11 at hotmail.com (Charlie Warner) Date: Fri, 31 Dec 2010 13:57:44 -0500 Subject: [scilab-Users] Printing In-Reply-To: <061A47596A6748658B36986AB9E58F62@optiplex745> References: <816702.58292.qm@web120009.mail.ne1.yahoo.com> <341E4595268742CAB61A992CE352A6BB@optiplex745>,<061A47596A6748658B36986AB9E58F62@optiplex745> Message-ID: This is a problem I have had with other software running under Windows XP with Intel integrated graphics- solution was to export as *.html, then print from the web browser... Charlie From: dean.parsons at att.net To: users at lists.scilab.org Date: Fri, 31 Dec 2010 12:04:48 -0600 Subject: Re: [scilab-Users] Printing John, I forgot to mention that my OS is Windows XP. Dean ----- Original Message ----- From: Dean Parsons To: users at lists.scilab.org Sent: Friday, December 31, 2010 12:01 PM Subject: Re: [scilab-Users] Printing John, I have an ATI graphics card and I had the same problem you have and I found two work arounds for the problem: (1) I changed the settings in my HP printing software (I have an HP printer) to mirror the mirrored image before printing. Doing this made the graph come out correctly (unmirrored). (2) I find that if I export the graphics with the scilab xs2svg command and then use Inkscape (free software that reads svg files) to print it, the graphs will be correct (unmirrored). However, I find that with the xs2svg command the options for portrait and landscape are reversed. The 'portrait' option gives me a landscape and 'landscape' option gives me a portrait. (I need to report this as a bug but I haven't done so yet.) Dean Parsons ----- Original Message ----- From: John Popp To: users at lists.scilab.org Sent: Wednesday, December 29, 2010 9:23 PM Subject: [scilab-Users] Printing I recently installed scilab and created a simple program with a 2D graph. The console and the scinotes window open and look and work fine. The graph looks good too, ON THE MONITOR, but when I print the graph screen, all my graphs PRINT as MIRROR IMAGES! Any suggestions short of reinstalling scilab? Thanks in advance for any helpful replies. J Popp -------------- next part -------------- An HTML attachment was scrubbed... URL: