Re: [Scilab-users] Is cond([]) 0 or 1 ? (bug 15579)

2018-05-24 Thread philippe
Le 21/05/2018 à 15:46, Samuel Gougeon a écrit :
> 
> There are at least two way to do it :
> 
>   * either keep *cond([])* to *1* and set all *cond([], p)* to 1 instead
> of 0
>   * or set *cond([])* to *0*.
> 
> I don't see any clear reason enforcing a choice rather than the other.
> Do you?

from a mathematical point of view  the Condition number of a matrix A is
defined by

cond(A)=||A|| . ||A^(-1)||
its interest is that when solving A*x=y rounding errors on y (eps) are
amplified to be cond(A)*eps. The optimal value of cond(A) is 1 (for
identity matrix) so for me it looks natural that cond([])=1 .

Philippe

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Sockets in scilab 6.0

2018-05-24 Thread James Holland
I've played about with this some more. The toolbox did install and is
accessed from the 'toolboxes' tab at the top - I haven't used that before.
The code seems to work except for the syntax problem ' and '' and the
undefined variable that keeps coming up - maybe a caused by there not being
a delay between the write and the read.
If I change the example code from google.fr to another website it doesn't
work, no idea why, I will try it with an oscilloscope next.



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Sockets in scilab 6.0

2018-05-24 Thread James Holland
I want to communicate with an oscilloscope through an Ethernet connection. I
have downloaded the files linked from the Atoms page.
If I try to run the loader then I get the message 'lib: Old binary lib
detected. Please recompile it for Scilab 6.' I don't see any files that
aren't Scilab so I ran 'builder.sce'. I get the following message:
'--> exec('C:\Users\James.Holland\Documents\Scilab\socket
src\builder.sce',-1)
Building macros...
-- Creation of [socket_toolboxlib] (Macros) --
Building help...

Building the master document:
C:\Users\James.Holland\Documents\Scilab\socket src\help\en_US

Building the manual file [javaHelp] in
C:\Users\James.Holland\Documents\Scilab\socket src\help\en_US.

Building the master document:
C:\Users\James.Holland\Documents\Scilab\socket src\help\fr_FR

Building the manual file [javaHelp] in
C:\Users\James.Holland\Documents\Scilab\socket src\help\fr_FR.
WARNING: tbx_build_loader: tbx_build_loader(name, path) is obsolete. Please
use tbx_build_loader(path) instead.
Generating loader.sce...
Generating unloader.sce...
WARNING: tbx_build_cleaner: tbx_build_cleaner(name, path) is obsolete.
Please use tbx_build_cleaner(path) instead.
Generating cleaner.sce...
'

After that I ran the loader which returned:
--> exec('C:\Users\James.Holland\Documents\Scilab\socket src\loader.sce',-1)
Start Socket Toolbox
Load macros
Load help
Load demos
I then get the following error:


--> exec('C:\Users\James.Holland\Documents\Scilab\socket
src\demos\ex_1.sce',-1)

[]

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat

Undefined variable: mat
mat=["http://schema.org/WebPage""; lang=""en-GB"">Google