<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.<br></div><div><br></div><div></div><div><br></div><div>Jussi<br></div></div><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-<wbr>Functions</a><span class="im HOEnZb"><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-<wbr>Functions</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="HOEnZb"><div class="h5">
----[ 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>