<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 31/07/2015 15:22, Samuel Gougeon a
écrit :<br>
</div>
<blockquote cite="mid:55BB76A7.70401@free.fr" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
-->elementary_functionslib.linspace(0,1,5)<br>
!--error 10000 <br>
linspace: Wrong number of input argument(s): 2 expected.<br>
at line 9 of function linspace called by : <br>
<font color="#009900">// KO: This syntax is accepted by Scilab's
linspace. It should work here. = Scilab 5' bug</font><br>
<font color="#009900">// If such a bug occurs for Scilab macros,
it will likely occur also for ATOMS ones. <br>
// Not really encouraging...<br>
</font> <br>
.../...<br>
<br>
You may try building a library with your home-made local function.<br>
An example of HowTo is given there, using genlib() and lib() :<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://fileexchange.scilab.org/toolboxes/365000/1.0#files">http://fileexchange.scilab.org/toolboxes/365000/1.0#files</a><br>
<br>
Then, you could use library-resolved calls.<br>
</blockquote>
<br>
After checking with a home-made function set as member of a proper
library: <br>
* Same bug with Scilab 5. BUT<br>
* <b>Scilab 6 is OK ! :))</b><b> </b>:<br>
<br>
--> genlib("mylinspacelib",".",%t)<br>
ans =<br>
T<br>
--> mylinspacelib = lib(".")<br>
mylinspacelib = <br>
<br>
Functions files location : .. // here, "." should be displayed
instead of "..". Never mind...<br>
linspace <br>
<br>
--> linspace()<br>
<br>
This is my linspace<br>
<br>
--> elementary_functionslib.linspace(0,1,5)<br>
ans =<br>
<br>
0. 0.25 0.5 0.75 1.<br>
<br>
--> mylinspacelib.linspace()<br>
<br>
This is my linspace<br>
<br>
:)<br>
There are a lot of bugs like this one, reported or not, that are
fixed in Scilab 6. Really a pleasure!<br>
Even better when it will be with all its components and polished.<br>
<br>
</body>
</html>