[Scilab-users] Help for . operator

Perrichon perrichon.pierre at wanadoo.fr
Mon Jun 8 11:06:55 CEST 2020


Hello

 

I got instruction coming from Matlab, and strictly reported in Scilab, like
for example :

 

    ee=k1*(2*g*(sjt.^2)).^(-1); // Calcul de la perte de charge singulière
au niveau du vannage (en supposant que son coefficient multiplicateur est
égal à 1)

 

It works, but I don’t understand le role of the « point » operator ‘.’

 

Without the ‘.’, it gives the same result

 

    ee=k1*(2*g*(sjt^2))^(-1); // Calcul de la perte de charge singulière au
niveau du vannage (en supposant que son coefficient multiplicateur est égal
à 1)

 

Any explanation.

 

Thank a lot for your response

 

All variables are simple flotting point in a sci routine

 

BR.

 

Pierre

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200608/38ce4b5a/attachment.htm>


More information about the users mailing list