search for: hypot

Displaying 20 results from an estimated 48 matches for "hypot".

2000 May 22
2
hypot(x,y) instead of pythag(a,b) ?!
...)' without overflow or >> destructive underflow: for example it still works when both A and >> B are between `1e200' and `1e300' (in IEEE double precision). -- "Problem" is : The GNU C library (and other C libraries ??) defines a function double hypot(double x, double y) with identical semantics to our pythag() from above The Info (e.g. in Linux Emacs C-h i "m libc") about "Libc" contains (in the section "Exponentiation and Logarithms"): ============================= >> - Function: double hypot (double X, d...
2011 Mar 19
1
Undefined symbol "Rf_pythag" while loading spatstat
...tle longer ------------------------------------------------------------------------ R News of newest devel has three entries about the change: CHANGES IN R VERSION 2.14.0: DEPRECATED AND DEFUNCT: o The entry point pythag formerly in Rmath.h is defunct: use instead the C99 function hypot. CHANGES IN R VERSION 2.13.0: C-LEVEL FACILITIES: o pythag duplicated the C99 function hypot. It is no longer provided, but is used a substitute for hypot in the very unlikely event that the latter is not available. DEPRECATED & DEFUNCT: o The entry point pythag i...
2000 Apr 28
2
Metadata followup
Once upon a time Monty said: >id3v2 will not be a part of Vorbis. Ogg bistreams allow mixing streams of any >type, and there will be an XML stream type defined for metadata. This is a >better solution than id3 in just about every technical sense. The Ogg >bitstream code to support this already exists. Can you please elaborate? Is this functionality complete? The only mention to
1998 Sep 16
2
R-beta: (0+0i)^2
The following behaviour (in R 0.62.3) is disturbing: > (0+0i)^2 [1] NaN+NaNi Is it deliberate?? Laimonis Kavalieris -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To:
1998 Sep 16
2
R-beta: (0+0i)^2
The following behaviour (in R 0.62.3) is disturbing: > (0+0i)^2 [1] NaN+NaNi Is it deliberate?? Laimonis Kavalieris -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To:
2001 Jul 16
1
polyroot() (PR#751)
In a bug report from Nov.28 2000, Li Dongfeng writes: ----- I have found that the polyroot() function in R-1.1.1(both solaris and Win32 version) gives totally incorrect result. Here is the offending code: # Polyroot bug report: # from R-1.1.1 > sort(abs(polyroot(c(1,-2,1,0,0,0,0,0,0,0,0,0,-2,5,-2,0,0,0,0,0,0,0,0,0,1,-2)))) [1] 0.8758259 0.9486499 0.9731015 1.5419189 1.7466214 1.7535362
2012 Dec 21
1
Problem compiling Samba4, Python installed in nonstandard location
...ython2.7.a(posixmodule.o): In function `posix_forkpty':/usr/src/Python-2.7.3/./Modules/posixmodule.c:3816: undefined reference to `forkpty'/opt/python2/lib/libpython2.7.a(complexobject.o): In function `_Py_c_pow':/usr/src/Python-2.7.3/Objects/complexobject.c:139: undefined reference to `hypot'/usr/src/Python-2.7.3/Objects/complexobject.c:140: undefined reference to `pow'/usr/src/Python-2.7.3/Objects/complexobject.c:141: undefined reference to `atan2'/usr/src/Python-2.7.3/Objects/complexobject.c:143: undefined reference to `sincos'/usr/src/Python-2.7.3/Objects/complexobje...
2005 Aug 11
1
include C functions from nmath in my own C functions
...l/lib/libRmath.so: undefined reference to `log10' /usr/local/lib/libRmath.so: undefined reference to `exp' /usr/local/lib/libRmath.so: undefined reference to `tan' /usr/local/lib/libRmath.so: undefined reference to `log1p' /usr/local/lib/libRmath.so: undefined reference to `hypot' collect2: ld returned 1 exit status
2011 Feb 16
2
distance between consecutive points
Dear R users, I have two coloumns of data, say x and y, referring to a list of points in 2D space. I am trying to develop a code that will give me the distances (using Pythagoras) between consecutive points (xi,yi) and (xi+1,yi+1). So far I have come up with the following: for (i in 1:length(x)) d<-sqrt((x[i+1]-x[i])^2+(y[i+1]-y[i])^2) For example, if I use the two points (note, I have
2005 Aug 11
1
include C functions from nmath in my own C functions
.../usr/local/lib/libRmath.so: undefined reference to `log10' /usr/local/lib/libRmath.so: undefined reference to `exp' /usr/local/lib/libRmath.so: undefined reference to `tan' /usr/local/lib/libRmath.so: undefined reference to `log1p' /usr/local/lib/libRmath.so: undefined reference to `hypot' collect2: ld returned 1 exit status
2000 Oct 02
4
Debugging dynloaded C-code with gdb
...of my code (the line number in brackets) (216) dyPixel = loc_mat[k][l] / 16; (217) dxPixel = loc_mat[k][l] - 16 * dyPixel; (218) ynb = k + (dyPixel - 8) / 8.; (219) xnb = l + (dxPixel - 8) / 8.; (220) fprintf(stderr, "%i %i %f %f\n", dyPixel, dxPixel, ynb, xnb); (221) linkLength = hypot(xnb-x, ynb-x); and the corresponding output of gdb, using `n' - note that a) the linenumbers show up in the sequence 216, 217, 218, 216, 217, 218, 219, 218, 219, 220, 221 and b) that the values of `xnb' and `ynb' in the end do not correspond with those shown by fprintf in the second la...
2002 May 31
1
Two questions about nmath
...erence to `sinh' /usr/local/libRmath.so: undefined reference to `log10' /usr/local/libRmath.so: undefined reference to `exp' /usr/local/libRmath.so: undefined reference to `tan' /usr/local/libRmath.so: undefined reference to `atan' /usr/local/libRmath.so: undefined reference to `hypot' collect2: ld returned 1 exit status Which is the problem now ? I did produce libRmath.so and then I did copy it in /usr/local. I did add the path /usr/local in /etc/ls.so.conf, then I did run ldconfig as follows ./sbin/ldconfig -n /usr/local 2) Second question Where can I find documentati...
2011 Apr 13
0
R 2.13.0 is released
...C-LEVEL FACILITIES: ? Because they use a C99 interface which a C++ compiler is not required to support, Rvprintf and REvprintf are only defined by R_ext/Print.h in C++ code if the macro R_USE_C99_IN_CXX is defined when it is included. ? pythag duplicated the C99 function hypot. It is no longer provided, but is used as a substitute for hypot in the very unlikely event that the latter is not available. ? R_inspect(obj) and R_inspect3(obj, deep, pvec) are (hidden) C-level entry points to the internal inspect function and can be used for C-level...
2011 Apr 13
0
R 2.13.0 is released
...C-LEVEL FACILITIES: ? Because they use a C99 interface which a C++ compiler is not required to support, Rvprintf and REvprintf are only defined by R_ext/Print.h in C++ code if the macro R_USE_C99_IN_CXX is defined when it is included. ? pythag duplicated the C99 function hypot. It is no longer provided, but is used as a substitute for hypot in the very unlikely event that the latter is not available. ? R_inspect(obj) and R_inspect3(obj, deep, pvec) are (hidden) C-level entry points to the internal inspect function and can be used for C-level...
2004 Apr 18
0
[patch] R-1.9.0: compile error without nl_langinfo(CODESET) (PR#6789)
....h locale.h \ netdb.h netinet/in.h \ pwd.h readline/history.h readline/readline.h strings.h \ sys/param.h sys/select.h sys/socket.h sys/stat.h sys/time.h \ @@ -1161,13 +1161,17 @@ AC_FUNC_ALLOCA AC_CHECK_FUNCS(access chdir expm1 fcntl finite ftruncate getcwd \ getgrgid getpwuid getuid hypot isascii isnan log1p matherr mkfifo \ - nl_langinfo popen putenv rint setenv strcoll stat strptime symlink \ + popen putenv rint setenv strcoll stat strptime symlink \ system times unsetenv) ## <NOTE> ## No need checking for bcopy bzero memcpy mempcpy even though ifnames ## might repor...
2001 Jan 29
1
Mac OS X/Darwin patch for libvorbis
...static inline +#elif _WIN32 +#define STIN static __inline +#else +#define STIN static +#endif + #ifndef M_PI #define M_PI (3.1415926536f) #endif -#ifndef __GNUC__ + #ifdef _WIN32 # include <malloc.h> # define rint(x) (floor((x)+0.5f)) +# define NO_FLOAT_MATH_LIB +# define FAST_HYPOT(a, b) sqrt((a)*(a) + (b)*(b)) #endif -#define STIN static -#else -#define STIN static inline +#ifdef DARWIN +#define NO_FLOAT_MATH_LIB +#endif + +#ifndef NO_FLOAT_MATH_LIB #define sqrt sqrtf #define log logf #define exp expf @@ -48,9 +60,7 @@ #endif -#ifdef _WIN32 -# define FAST_HYPOT(a...
2000 Jun 15
4
R-1.1.0 is released
...(it was unintentionally removed along with nroff-based conversion to text). o \deqn{} fix in R-exts.texi, PR#523. o Linpack.h now makes clear which routines are actually in R. o Entry-point "pythag" is now loaded even though it is not necessarily used in R. Where "hypot" is available pythag just calls hypot after checking for special values. o call_R will now correctly handle character vector arguments. o The alphabet links on top of HTML function indices with more than 100 entries now contain only the letters which are really first letters of...
2000 Jun 15
4
R-1.1.0 is released
...(it was unintentionally removed along with nroff-based conversion to text). o \deqn{} fix in R-exts.texi, PR#523. o Linpack.h now makes clear which routines are actually in R. o Entry-point "pythag" is now loaded even though it is not necessarily used in R. Where "hypot" is available pythag just calls hypot after checking for special values. o call_R will now correctly handle character vector arguments. o The alphabet links on top of HTML function indices with more than 100 entries now contain only the letters which are really first letters of...
2000 Jun 12
5
Compile Problems
...rther along but I get several undefiined references that appear to be math functions and it errors out at this: lib/libvorbis.a(lpc.o)(.text+0x46e): more undefined references to `pow' follow lib/libvorbis.a(lpc.o): In function `_vlpc_de_helper': lpc.o(.text+0x762): undefined reference to `hypot' collect2: ld returned 1 exit status make[1]: *** [vorbize] Error 1 make[1]: Leaving directory `/usr/src/vorbize-0.1' make: *** [all] Error 2 Could anyone tell me what I'm doing wrong ? Thanks Karl --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project ho...
2018 Feb 06
2
libc++ cross-compile linux-armv7 and math function problems
...;::fminl' has not been declared inline _LIBCPP_INLINE_VISIBILITY long double fmin(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return ::fminl(__lcpp_x, __lcpp_y);} ^~ ../projects/libcxx/include/math.h: In function 'long double hypot(long double, long double)': ../projects/libcxx/include/math.h:1233:114: error: '::hypotl' has not been declared inline _LIBCPP_INLINE_VISIBILITY long double hypot(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return ::hypotl(__lcpp_x, __lcpp_y);}...