[Scilab-users] Resolving libraries <= (no subject)

Samuel Gougeon sgougeon at free.fr
Fri Jul 31 15:46:54 CEST 2015


Le 31/07/2015 15:22, Samuel Gougeon a écrit :
> -->elementary_functionslib.linspace(0,1,5)
>  !--error 10000
> linspace: Wrong number of input argument(s): 2 expected.
> at line       9 of function linspace called by :
> // KO: This syntax is accepted by Scilab's linspace. It should work 
> here. = Scilab 5' bug
> // If such a bug occurs for Scilab macros, it will likely occur also 
> for ATOMS ones.
> // Not really encouraging...
>
> .../...
>
> You may try building a library with your home-made local function.
> An example of HowTo is given there, using genlib() and lib() :
> http://fileexchange.scilab.org/toolboxes/365000/1.0#files
>
> Then, you could use library-resolved calls.

After checking with a home-made function set as member of a proper library:
  * Same bug with Scilab 5. BUT
  * *Scilab 6 is OK ! :))***:

--> genlib("mylinspacelib",".",%t)
  ans  =
   T
--> mylinspacelib = lib(".")
mylinspacelib  =

Functions files location : ..    // here, "." should be displayed 
instead of "..". Never mind...
linspace

--> linspace()

  This is my linspace

--> elementary_functionslib.linspace(0,1,5)
  ans  =

     0.    0.25    0.5    0.75    1.

--> mylinspacelib.linspace()

  This is my linspace

:)
There are a lot of bugs like this one, reported or not, that are fixed 
in Scilab 6. Really a pleasure!
Even better when it will be with all its components and polished.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150731/7eb26cc5/attachment.htm>


More information about the users mailing list