[Scilab-users] How to overload "double" function ?

2018-08-21 Thread philippe
Hi,

I want to overload some usual scilab functions, I made it for abs and
sign but strangely it doesn't work for double ! Let's take an example ,
I want to extend sign and double for polynomials  :

--> X=poly(0,"x"); // a polynomial

--> sign(X)
dans la fonction nativesign

Fonction non définie pour les types fournis.
  vérifier les arguments ou définir la fonction %p_sign pour la surcharge.

--> double(X)

double : Types erronés des arguments d'entrée : entiers, booléens ou
réels attendus.


so I define overloading for the two functions and "p" type :

 function y=%p_sign(x)
 y="OK"
 endfunction

 function y=%p_double(x)
y="OK"
 endfunction

Now I can call sign on a polynomial, but this doesn't work for double

--> sign(X)
 ans  =

 OK


--> double(X)

double : Types erronés des arguments d'entrée : entiers, booléens ou
réels attendus.

How can I do this for double ? If not why this doesn't work ? Both sign
and double are "fptr" type , I thought that scilab-6 doesn't make
difference between function and fptr any more .

Philippe

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


Re: [Scilab-users] Win10.Scilab601.IPCV2.Not Loading

2018-08-21 Thread Michael J. McCann

TanChin,
Thank you. As the only person who ever uses this personal computer I 
never thought of using a program ' as administrator'  BUT did find the 
option to do that (I never tried rt-click on a shortcut before!). My 
impression was that Scilab couldn't find the pathways/gateways(?) which 
it needed to load the installed module.


However, I removed the IPCV2.0 and installed IPCV1.2 but only after 
discovering that

atomsInstall(["IPCV" "1.2"])  did not work BUT
atomsInstall(["IPCV", "1.2"]) worked fine.
I added the comma after something flagged that it was looking for a 
string as the first variable. So now I have a version working as used on 
the other machine and have also been able to share the work.

Thank you for the advice and the IPCV work you do.
Mike.
=

On 21/08/2018 02:10, Tan Chin Luh wrote:
Did you try to run the scilab with admin right? Do this by right-click 
on the scilab, run as administrator.



On 20/8/2018 7:29 PM, Michael J. McCann wrote:
I have Scilab6.01 on a Windows 10 machine. I have recently installed 
"IPCV" via Atoms. That went in OK but when I restart Scilab, the 
loading process only gets as far as  reporting, in the console,   ' 
load gateways'    and nothing more.
The IPCV functions don't work.   I can see that  [" IPCV,"2.0"] is 
installed.


I have IPCV working on a different Windows10machine with Scilab6.01 
BUT I suspect it is an earlier version of IPCV


Is this a bug with IPCV2 or have I missed something?
MikeMcC.
--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'


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





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


--
Note: Email address is now 'mjmcc...@ieee.org' not 'iee.org'

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


Re: [Scilab-users] is the vercion 4.1.2 still available?

2018-08-21 Thread Samuel Gougeon

Hello,

You may either fill the form here 
http://www.scilab.org/en/download/Previous-Scilab-Versions,
or if Scilab 4.1.0 for Windows is suitable to your purpose, you may 
download it from there

https://atoms.scilab.org/toolboxes/AdaptiveOptics/4.0#files

Regards
Samuel

Le 21/08/2018 à 06:33, Diego Alfredo a écrit :
I just found Scilabs introduction from back 2010 and i was trying it. 
one of the exercises says to compare the instalations so i wanted to 
see this version. only that thanks for the time.


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