Since 4/27/2012 1:18:44 AM, dmarsh3 has written 10 articles and participated in 34 conversations. dmarsh3 signature: dmarsh3
dmarsh3's articles:
Items(10) /1
typedefing a struct1525 (9/13/2007 11:43:19 PM) comp.lang.c Is there any functional difference (or any other reason to prefer one over the other) between these two methods: typedef struct mystruct { int a; int b; } mystruct; struct mystruct { int a; ... David
operations on complex numbers in C992726 (8/5/2007 11:54:27 PM) comp.lang.c I understand that C99 supports a complex type and complex arithmetic. There is nothing about it in the FAQ and online searches turned up very little except synopses. Can anyone point me toward sources or giv... David
conversion to binary in printf()1534 (1/21/2007 3:21:18 PM) comp.lang.c I accidentally typed %b instead of %d in a printf format string and got a binary representation of the number. Is that standard C or a compiler extension? ... David
complex arithmetic in C991426 (1/10/2007 2:58:01 PM) comp.lang.c Can someone show me or point me to an example of declaring and initializing complex numbers in C99? Also, in looking at complex.h, I don't see any library calls for + - * or /. How are the basic arithmetic o... David
code critique926 (9/11/2006 3:13:42 PM) comp.programming The programming assignment is to convert a string to an integer consisting of the ASCII encodings of the indivdual characters. For example, "abc" would convert to 979899. My solution, WHICH HAS ALREADY BEEN ... David
please check my code (homework)1025 (5/12/2006 12:53:37 AM) comp.programming Assignment includes implementing the following hashing algorithm in C: int hashValue = 0; foreach character of the string until null hashValue is bit shifted 4 bits to the left and add in the current ch... David
Anderson-Darling statistic1331 (4/4/2006 7:40:50 PM) comp.programming I'm trying to implement the Anderson-Darling test for the normal distribution. It indicates whether a set of data are normally distributed. My code is below and the formula can be seen at this web site: htt... David
Gamma function929 (12/22/2005 12:07:42 AM) comp.programming Anybody see any problems with this? It's the simplest solution I've seen for the Gamma function. /* calculate the gamma function: 6 S(q[n] * z^n) n=0 Gamma... David
please check my homework3529 (10/25/2005 8:29:12 PM) comp.programming This is a homework assignment for extra credit. The statistical material has not been covered in class. Is my bidist() function correct? It seems to work with the examples I have tried, but I would appreciat... David
testing whether a double is a whole number317 (7/3/2005 1:01:17 AM) comp.lang.c The program calculates the continued fraction representation of the input: #include #include int main(int argc, char* argv[]) { double diff, n, r, i; if(argc != 2) exit(EXIT_FAILURE); n = s... David
testing whether a double is a whole number317 (7/3/2005 1:01:17 AM) comp.lang.c The program calculates the continued fraction representation of the input: #include #include int main(int argc, char* argv[]) { double diff, n, r, i; if(argc != 2) exit(EXIT_FAILURE); n = s... dmarsh3(44)
please check my homework3529 (10/25/2005 8:29:12 PM) comp.programming This is a homework assignment for extra credit. The statistical material has not been covered in class. Is my bidist() function correct? It seems to work with the examples I have tried, but I would appreciat... dmarsh3(44)
Gamma function929 (12/22/2005 12:07:42 AM) comp.programming Anybody see any problems with this? It's the simplest solution I've seen for the Gamma function. /* calculate the gamma function: 6 S(q[n] * z^n) n=0 Gamma... dmarsh3(44)
Anderson-Darling statistic1331 (4/4/2006 7:40:50 PM) comp.programming I'm trying to implement the Anderson-Darling test for the normal distribution. It indicates whether a set of data are normally distributed. My code is below and the formula can be seen at this web site: htt... dmarsh3(44)
C Statistics library?443 (4/7/2006 3:38:13 PM) comp.lang.c Hi, I was wondering if anyone knows about a statistics package that may come with or is loadable in C? I'm doing some minor frequencies and other small mathematical statistics on a set of a few hundred numbers... craigwharding(3)
please check my code (homework)1025 (5/12/2006 12:53:37 AM) comp.programming Assignment includes implementing the following hashing algorithm in C: int hashValue = 0; foreach character of the string until null hashValue is bit shifted 4 bits to the left and add in the current ch... dmarsh3(44)
code critique926 (9/11/2006 3:13:42 PM) comp.programming The programming assignment is to convert a string to an integer consisting of the ASCII encodings of the indivdual characters. For example, "abc" would convert to 979899. My solution, WHICH HAS ALREADY BEEN ... dmarsh3(44)
operations on complex numbers in C992726 (8/5/2007 11:54:27 PM) comp.lang.c I understand that C99 supports a complex type and complex arithmetic. There is nothing about it in the FAQ and online searches turned up very little except synopses. Can anyone point me toward sources or giv... dmarsh3(44)
Array Overflow Prevention423 (9/27/2007 11:35:35 AM) comp.lang.c /** A palindrome is a number that is the same whether it is read from left-to-right or right-to-left. For example, 121 and 34543 are both palindromes. It turns out that nearly every integer can be transformed... tarique(2)