<div dir="ltr">2018-06-11 16:39 GMT-04:00 Jussi Lahtinen <span dir="ltr"><<a href="mailto:jussi.lahtinen@gmail.com" target="_blank">jussi.lahtinen@gmail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>What I'm missing here? Sinh is also already native Gambas function.</div><div>I bet using it as external function makes it only little bit slower for zero gain.<span class="HOEnZb"><font color="#888888"><br></font></span></div></div></blockquote><div><br></div><div>umm ok but if are using as external, any changes over the libc will be reflected at gambas side without updating.. maybe the only benefit from..<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span class="HOEnZb"><font color="#888888"></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div></div><div><br></div><div>Jussi<br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 11, 2018 at 11:04 AM, Demosthenes Koptsis <span dir="ltr"><<a href="mailto:demosthenesk@gmail.com" target="_blank">demosthenesk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Tobias!<br>
<br>
Anyway sinh is documented in glibc manual also, but it is not there as you say.<br>
<br>
<a href="https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions" rel="noreferrer" target="_blank">https://www.gnu.org/software/l<wbr>ibc/manual/html_node/Hyperboli<wbr>c-Functions.html#Hyperbolic-Fu<wbr>nctions</a><span class="m_6451552600620107899im m_6451552600620107899HOEnZb"><br>
<br>
<br>
On 06/11/2018 11:07 AM, Tobias Boege wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, 11 Jun 2018, Demosthenes Koptsis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hello,<br>
<br>
according <a href="https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions" rel="noreferrer" target="_blank">https://www.gnu.org/software/l<wbr>ibc/manual/html_node/Hyperboli<wbr>c-Functions.html#Hyperbolic-Fu<wbr>nctions</a><br>
<br>
i have this external function<br>
<br>
'double sinh (double x)<br>
Public Extern sinh_C(x As Float) As Float Exec "sinh"<br>
<br>
but i get the error "cannot find symbol sinh in libc"<br>
<br>
why?<br>
<br>
</blockquote>
Because it is in libm:<br>
<br>
   Extern my_sinh(f As Float) As Float In "libm:6" Exec "sinh"<br>
<br>
   Print Sinh(20)<br>
   Print my_sinh(20)<br>
<br>
   >242582597.704895<br>
   >242582597.704895<br>
<br>
At least on my system, the manpage of sinh tells you to "Link with -lm."<br>
<br>
Regards,<br>
Tobi<br>
<br>
</blockquote>
<br>
<br></span><div class="m_6451552600620107899HOEnZb"><div class="m_6451552600620107899h5">
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</div></div></blockquote></div><br></div>
</div></div><br><br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
<br></blockquote></div><br></div></div>