[Scilab-users] Nested function definition

Stéphane Mottelet stephane.mottelet at utc.fr
Tue Apr 9 20:23:04 CEST 2019


Hello,

Le 09/04/2019 à 20:17, Rafael Guerra a écrit :
>
> globalmg h l L0;
>
The above line is useless no ?

> mg= 0.1; h=0.1; l=0.1; L0=0.1;
>
> function*e*=_eta_(*q*)
>
> *e*= mg./(2**q*)
>
> endfunction
>
> function*z*=_zeta_(*q*)
>
> *z*= asinh(mg.*h./(2**q*.*l.*sinh(_eta_(*q*))))+_eta_(*q*);
>
> endfunction
>
> function*y*=_URQ_(*q*, *e*, *z*)
>
> *y*= mg.*L0./(*q*.*l)-sinh(2**e*-*z*)-sinh(*z*)
>
> endfunction
>
> q=1;
>
> y=_URQ_(q,_eta_(q),_zeta_(q))
>
> Rgds,
>
> Rafael
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190409/9495bcde/attachment.htm>


More information about the users mailing list