Thank you. Is there a way to use this formulation as an input function
to fsolve? I don't know how to do it.
In my another example I also had a nested function but I managed to
define it in a form like in help page about function. It means that
everything was inside one function. This formulation worked fine in
fsolve, but with my current example I am not able to use it.
Iza
W dniu 09.04.2019 20:23, Stéphane Mottelet napisał(a):
Hello,
Le 09/04/2019 à 20:17, Rafael Guerra a écrit :
*
global mg 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
[email protected]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users