<div dir="ltr">ok, since we can't have that for now, I'm updating the help file of [expr] again, cause I was using [expr acosh(0)] to generate 'nan', as an example to the [expr isnan($f1)] function.<div><br></div><div>now I'm using [expr log(-1)]<br><div><br></div><div>all seems good now.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-21 17:40 GMT-03:00 Dan Wilcox <span dir="ltr"><<a href="mailto:danomatika@gmail.com" target="_blank">danomatika@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">This is also the kind of thing the configure script can check for :)<div><div><div class="h5"><br><div><blockquote type="cite"><div>On Jul 21, 2017, at 10:39 PM, Miller Puckette <<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>> wrote:</div><br class="m_2602475390040164483Apple-interchange-newline"><div><div>OK, will try that for next release :)<br><br>Anyhow, I have to profile MSVC against mingw and (hopefully) move the<br>whole compile chain over.  But certainly not now.<br><br>Miller<br><br>On Fri, Jul 21, 2017 at 10:30:26PM +0200, Dan Wilcox wrote:<br><blockquote type="cite">Looks like the preprocessor define is _MSC_VER: <a href="https://stackoverflow.com/questions/70013/how-to-detect-if-im-compiling-code-with-visual-studio-2008" target="_blank">https://stackoverflow.com/<wbr>questions/70013/how-to-detect-<wbr>if-im-compiling-code-with-<wbr>visual-studio-2008</a> <<a href="https://stackoverflow.com/questions/70013/how-to-detect-if-im-compiling-code-with-visual-studio-2008" target="_blank">https://stackoverflow.com/<wbr>questions/70013/how-to-detect-<wbr>if-im-compiling-code-with-<wbr>visual-studio-2008</a>><br><br>So something like the following could probably work:<br><br>#ifdef _WIN32<br>  #if (_MSC_VER < 17000)<br>    #define ATANH_NOT_AVAILABLE<br>  #endif<br>#endif<br>#include <math.h><br><br><blockquote type="cite">On Jul 21, 2017, at 10:21 PM, Dan Wilcox <<a href="mailto:danomatika@gmail.com" target="_blank">danomatika@gmail.com</a>> wrote:<br><br>It's most probably working because you are compiling on a newer system with a newer Visual Studio which has the newer math.h which has the function.<br><br>Older versions pre-2012 do not, hence the current non-usage.<br><br><blockquote type="cite">On Jul 21, 2017, at 9:55 PM, Alexandre Torres Porres <<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a> <<a href="mailto:porres@gmail.com" target="_blank">mailto:porres@gmail.com</a>>> wrote:<br><br><br><br>2017-07-21 16:44 GMT-03:00 Dan Wilcox <<a href="mailto:danomatika@gmail.com" target="_blank">danomatika@gmail.com</a> <<a href="mailto:danomatika@gmail.com" target="_blank">mailto:danomatika@gmail.com</a>>><wbr>:<br>Those functions are in the windows math.h if you're using Visual Studio 2012 or greater.<br><br>Hey, I just realized we have an [atanh] object for cyclone, I actually did that one myself, and I just tested, it's working on windows!<br><br>here's the source <a href="https://github.com/porres/pd-cyclone/blob/master/cyclone_src/binaries/control/atanh.c" target="_blank">https://github.com/porres/pd-<wbr>cyclone/blob/master/cyclone_<wbr>src/binaries/control/atanh.c</a> <<a href="https://github.com/porres/pd-cyclone/blob/master/cyclone_src/binaries/control/atanh.c" target="_blank">https://github.com/porres/pd-<wbr>cyclone/blob/master/cyclone_<wbr>src/binaries/control/atanh.c</a>><br><br>so, definitely, those functions may exist for windows, not sure what building system you're using, but it may need an update<br></blockquote><br>--------<br>Dan Wilcox<br>@danomatika <<a href="http://twitter.com/danomatika" target="_blank">http://twitter.com/danomatika</a><wbr>><br><a href="http://danomatika.com" target="_blank">danomatika.com</a> <<a href="http://danomatika.com/" target="_blank">http://danomatika.com/</a>><br><a href="http://robotcowboy.com" target="_blank">robotcowboy.com</a> <<a href="http://robotcowboy.com/" target="_blank">http://robotcowboy.com/</a>><br><br><br><br></blockquote><br>--------<br>Dan Wilcox<br>@danomatika <<a href="http://twitter.com/danomatika" target="_blank">http://twitter.com/danomatika</a><wbr>><br><a href="http://danomatika.com" target="_blank">danomatika.com</a> <<a href="http://danomatika.com/" target="_blank">http://danomatika.com/</a>><br><a href="http://robotcowboy.com" target="_blank">robotcowboy.com</a> <<a href="http://robotcowboy.com/" target="_blank">http://robotcowboy.com/</a>><br><br><br><br></blockquote></div></div></blockquote></div><br></div></div><span class=""><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">--------</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Dan Wilcox</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://twitter.com/danomatika" target="_blank">@danomatika</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://danomatika.com" target="_blank">danomatika.com</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="http://robotcowboy.com" target="_blank">robotcowboy.com</a></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><br class="m_2602475390040164483Apple-interchange-newline">
</div>
<br></span></div></div></blockquote></div><br></div>